diff options
author | Ben Darwin <bcdarwin@gmail.com> | 2020-07-16 15:28:49 -0400 |
---|---|---|
committer | Jon <jonringer@users.noreply.github.com> | 2020-07-16 17:49:23 -0700 |
commit | ea8f8bcc54b65be2bb8defb8ed71a8924fe73521 (patch) | |
tree | 034759cbbaa828b56aea8737d823db466732cc6c /pkgs/development/python-modules/torchgpipe/default.nix | |
parent | 2a45eea7e398e3112edc7ded18f96cce8b0c9784 (diff) | |
download | nixpkgs-ea8f8bcc54b65be2bb8defb8ed71a8924fe73521.tar nixpkgs-ea8f8bcc54b65be2bb8defb8ed71a8924fe73521.tar.gz nixpkgs-ea8f8bcc54b65be2bb8defb8ed71a8924fe73521.tar.bz2 nixpkgs-ea8f8bcc54b65be2bb8defb8ed71a8924fe73521.tar.lz nixpkgs-ea8f8bcc54b65be2bb8defb8ed71a8924fe73521.tar.xz nixpkgs-ea8f8bcc54b65be2bb8defb8ed71a8924fe73521.tar.zst nixpkgs-ea8f8bcc54b65be2bb8defb8ed71a8924fe73521.zip |
python3Packages.torchgpipe: init at 0.0.5
Diffstat (limited to 'pkgs/development/python-modules/torchgpipe/default.nix')
-rw-r--r-- | pkgs/development/python-modules/torchgpipe/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/torchgpipe/default.nix b/pkgs/development/python-modules/torchgpipe/default.nix new file mode 100644 index 00000000000..e7aa53360ed --- /dev/null +++ b/pkgs/development/python-modules/torchgpipe/default.nix @@ -0,0 +1,39 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, isPy27 +, pytest +, pytestrunner +, pytestCheckHook +, pytorch +}: + +buildPythonPackage rec { + pname = "torchgpipe"; + version = "0.0.5"; + + disabled = isPy27; + + src = fetchFromGitHub { + owner = "kakaobrain"; + repo = pname; + rev = "v${version}"; + sha256 = "0mqdavnqb8a320li2r7xw11w2lg03l59xxyg2fxpg4z57v0rbasi"; + }; + + propagatedBuildInputs = [ pytorch ]; + + checkInputs = [ pytest pytestrunner pytestCheckHook ]; + disabledTests = [ "test_inplace_on_requires_grad" ]; + # seems like a harmless failure: + ## AssertionError: + ## Pattern 'a leaf Variable that requires grad has been used in an in-place operation.' + ## does not match 'a leaf Variable that requires grad is being used in an in-place operation.' + + meta = with lib; { + description = "GPipe implemented in Pytorch and optimized for CUDA rather than TPU"; + homepage = "https://torchgpipe.readthedocs.io"; + license = licenses.asl20; + maintainers = [ maintainers.bcdarwin ]; + }; +} |