python312Packages.torchsummary: init at 1.5.1
This commit is contained in:
parent
9f7053ffc1
commit
c1388008b4
34
pkgs/development/python-modules/torchsummary/default.nix
Normal file
34
pkgs/development/python-modules/torchsummary/default.nix
Normal file
@ -0,0 +1,34 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
setuptools,
|
||||
torch,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "torchsummary";
|
||||
version = "1.5.1";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-mBv2ieIuDPf5XHRgAvIKJK0mqmudhhE0oUvGzpIjBZA=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [ torch ];
|
||||
|
||||
# no tests in pypi tarball
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "torchsummary" ];
|
||||
|
||||
meta = {
|
||||
description = "Model summary in PyTorch similar to `model.summary()` in Keras";
|
||||
homepage = "https://github.com/sksq96/pytorch-summary";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ tomasajt ];
|
||||
};
|
||||
}
|
@ -15306,6 +15306,8 @@ self: super: with self; {
|
||||
|
||||
torchsde = callPackage ../development/python-modules/torchsde { };
|
||||
|
||||
torchsummary = callPackage ../development/python-modules/torchsummary { };
|
||||
|
||||
torchvision = callPackage ../development/python-modules/torchvision { };
|
||||
|
||||
torchvision-bin = callPackage ../development/python-modules/torchvision/bin.nix {
|
||||
|
Loading…
Reference in New Issue
Block a user