Merge pull request #153318 from storvik/torchinfo
This commit is contained in:
commit
b17f868724
43
pkgs/development/python-modules/torchinfo/default.nix
Normal file
43
pkgs/development/python-modules/torchinfo/default.nix
Normal file
@ -0,0 +1,43 @@
|
||||
{ lib
|
||||
, fetchPypi
|
||||
, python
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, pytorch
|
||||
, pytestCheckHook
|
||||
, torchvision
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "torchinfo";
|
||||
version = "1.6.2";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-vf3TADqIX4RtCU3dN/lBK4aRg3wud/KkK9u5XGnBbO4=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pytorch
|
||||
torchvision
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# Skip as it downloads pretrained weights (require network access)
|
||||
"test_eval_order_doesnt_matter"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "torchvision" ];
|
||||
|
||||
meta = {
|
||||
description = "API to visualize pytorch models";
|
||||
homepage = "https://github.com/TylerYep/torchinfo";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ petterstorvik ];
|
||||
};
|
||||
}
|
@ -9769,6 +9769,8 @@ in {
|
||||
|
||||
torchgpipe = callPackage ../development/python-modules/torchgpipe { };
|
||||
|
||||
torchinfo = callPackage ../development/python-modules/torchinfo { };
|
||||
|
||||
torchvision = callPackage ../development/python-modules/torchvision { };
|
||||
|
||||
torchvision-bin = callPackage ../development/python-modules/torchvision/bin.nix { };
|
||||
|
Loading…
Reference in New Issue
Block a user