python3Packages.torchgpipe: init at 0.0.5

This commit is contained in:
Ben Darwin 2020-07-16 15:28:49 -04:00 committed by Jon
parent 2a45eea7e3
commit ea8f8bcc54
2 changed files with 41 additions and 0 deletions

View file

@ -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 ];
};
}

View file

@ -6988,6 +6988,8 @@ in {
torchvision = callPackage ../development/python-modules/torchvision { };
torchgpipe = callPackage ../development/python-modules/torchgpipe { };
jenkinsapi = callPackage ../development/python-modules/jenkinsapi { };
jenkins-job-builder = callPackage ../development/python-modules/jenkins-job-builder { };