lol

python312Packages.torchprofile: init at 0.0.3

+50
+48
pkgs/development/python-modules/torchprofile/default.nix
··· 1 + { 2 + lib, 3 + buildPythonPackage, 4 + fetchFromGitHub, 5 + setuptools, 6 + numpy, 7 + torch, 8 + torchvision, 9 + }: 10 + 11 + buildPythonPackage rec { 12 + pname = "torchprofile"; 13 + version = "0.0.3"; 14 + pyproject = true; 15 + 16 + src = fetchFromGitHub { 17 + owner = "zhijian-liu"; 18 + repo = "torchprofile"; 19 + rev = "refs/tags/v${version}"; 20 + hash = "sha256-6vxZHQwBjKpy288wcANdJ9gmvIOZloLv+iN76TtqYAI="; 21 + }; 22 + 23 + build-system = [ 24 + setuptools 25 + ]; 26 + 27 + pythonRelaxDeps = [ 28 + "torchvision" 29 + ]; 30 + 31 + dependencies = [ 32 + numpy 33 + torch 34 + torchvision 35 + ]; 36 + 37 + pythonImportsCheck = [ 38 + "torchprofile" 39 + ]; 40 + 41 + meta = { 42 + changelog = "https://github.com/zhijian-liu/torchprofile/releases/tag/v${version}"; 43 + description = "General and accurate MACs / FLOPs profiler for PyTorch models"; 44 + homepage = "https://github.com/zhijian-liu/torchprofile"; 45 + license = lib.licenses.mit; 46 + maintainers = with lib.maintainers; [ drupol ]; 47 + }; 48 + }
+2
pkgs/top-level/python-packages.nix
··· 15921 15921 # Used by streamlit, 2021-01-29 15922 15922 tornado_5 = callPackage ../development/python-modules/tornado/5.nix { }; 15923 15923 15924 + torchprofile = callPackage ../development/python-modules/torchprofile { }; 15925 + 15924 15926 torpy = callPackage ../development/python-modules/torpy { }; 15925 15927 15926 15928 torrent-parser = callPackage ../development/python-modules/torrent-parser { };