mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
python.pkgs.pytorch: init at 0.1.12
This commit is contained in:
parent
8669fb1f96
commit
567b84dd50
43
pkgs/development/python-modules/pytorch/default.nix
Normal file
43
pkgs/development/python-modules/pytorch/default.nix
Normal file
@ -0,0 +1,43 @@
|
||||
{ buildPythonPackage, fetchFromGitHub, lib, numpy, pyyaml, cffi, cmake,
|
||||
git, stdenv }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.1.12";
|
||||
pname = "pytorch";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pytorch";
|
||||
repo = "pytorch";
|
||||
rev = "v${version}";
|
||||
sha256 = "0r8mf4xya76gz83y5z3hfxh0rydkydafhipl8g7d0bfrgw961jy9";
|
||||
};
|
||||
|
||||
checkPhase = ''
|
||||
${stdenv.shell} test/run_test.sh
|
||||
'';
|
||||
|
||||
buildInputs = [
|
||||
cmake
|
||||
git
|
||||
numpy.blas
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
cffi
|
||||
numpy
|
||||
pyyaml
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
export NO_CUDA=1
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration.";
|
||||
homepage = http://pytorch.org/;
|
||||
license = lib.licenses.bsd3;
|
||||
platforms = lib.platforms.linux;
|
||||
maintainers = with lib.maintainers; [ teh ];
|
||||
};
|
||||
}
|
@ -10762,6 +10762,8 @@ in {
|
||||
};
|
||||
};
|
||||
|
||||
pytorch = callPackage ../development/python-modules/pytorch { };
|
||||
|
||||
python_tvrage = buildPythonPackage (rec {
|
||||
version = "0.4.1";
|
||||
name = "tvrage-${version}";
|
||||
|
Loading…
Reference in New Issue
Block a user