tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
python312Packages.torchprofile: init at 0.0.3
Pol Dellaiera
1 year ago
41c9bb72
157d7e23
+50
2 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
torchprofile
default.nix
top-level
python-packages.nix
+48
pkgs/development/python-modules/torchprofile/default.nix
···
1
1
+
{
2
2
+
lib,
3
3
+
buildPythonPackage,
4
4
+
fetchFromGitHub,
5
5
+
setuptools,
6
6
+
numpy,
7
7
+
torch,
8
8
+
torchvision,
9
9
+
}:
10
10
+
11
11
+
buildPythonPackage rec {
12
12
+
pname = "torchprofile";
13
13
+
version = "0.0.3";
14
14
+
pyproject = true;
15
15
+
16
16
+
src = fetchFromGitHub {
17
17
+
owner = "zhijian-liu";
18
18
+
repo = "torchprofile";
19
19
+
rev = "refs/tags/v${version}";
20
20
+
hash = "sha256-6vxZHQwBjKpy288wcANdJ9gmvIOZloLv+iN76TtqYAI=";
21
21
+
};
22
22
+
23
23
+
build-system = [
24
24
+
setuptools
25
25
+
];
26
26
+
27
27
+
pythonRelaxDeps = [
28
28
+
"torchvision"
29
29
+
];
30
30
+
31
31
+
dependencies = [
32
32
+
numpy
33
33
+
torch
34
34
+
torchvision
35
35
+
];
36
36
+
37
37
+
pythonImportsCheck = [
38
38
+
"torchprofile"
39
39
+
];
40
40
+
41
41
+
meta = {
42
42
+
changelog = "https://github.com/zhijian-liu/torchprofile/releases/tag/v${version}";
43
43
+
description = "General and accurate MACs / FLOPs profiler for PyTorch models";
44
44
+
homepage = "https://github.com/zhijian-liu/torchprofile";
45
45
+
license = lib.licenses.mit;
46
46
+
maintainers = with lib.maintainers; [ drupol ];
47
47
+
};
48
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
15924
+
torchprofile = callPackage ../development/python-modules/torchprofile { };
15925
15925
+
15924
15926
torpy = callPackage ../development/python-modules/torpy { };
15925
15927
15926
15928
torrent-parser = callPackage ../development/python-modules/torrent-parser { };