The proper name for a python package is the one in the setuptools setup() call, which can also be seen on pypi. Correct: https://pypi.org/project/torch/ Wrong: https://pypi.org/project/pytorch/ Includes a treewide rename of the attribute and creates aliases for the old name.
38 lines
789 B
Nix
38 lines
789 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, isPy27
|
|
, pytest-runner
|
|
, pytestCheckHook
|
|
, torch
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "torchgpipe";
|
|
version = "0.0.7";
|
|
|
|
disabled = isPy27;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kakaobrain";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0ki0njhmz1i3pkpr3y6h6ac7p5qh1kih06mknc2s18mfw34f2l55";
|
|
};
|
|
|
|
propagatedBuildInputs = [ torch ];
|
|
|
|
checkInputs = [ pytest-runner pytestCheckHook ];
|
|
disabledTests = [
|
|
"test_inplace_on_requires_grad"
|
|
"test_input_requiring_grad"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|