mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-09 13:43:50 +00:00
python312Packages.torchprofile: init at 0.0.3
This commit is contained in:
parent
157d7e23a9
commit
41c9bb7209
48
pkgs/development/python-modules/torchprofile/default.nix
Normal file
48
pkgs/development/python-modules/torchprofile/default.nix
Normal file
@ -0,0 +1,48 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
setuptools,
|
||||
numpy,
|
||||
torch,
|
||||
torchvision,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "torchprofile";
|
||||
version = "0.0.3";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "zhijian-liu";
|
||||
repo = "torchprofile";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-6vxZHQwBjKpy288wcANdJ9gmvIOZloLv+iN76TtqYAI=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
pythonRelaxDeps = [
|
||||
"torchvision"
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
numpy
|
||||
torch
|
||||
torchvision
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"torchprofile"
|
||||
];
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/zhijian-liu/torchprofile/releases/tag/v${version}";
|
||||
description = "General and accurate MACs / FLOPs profiler for PyTorch models";
|
||||
homepage = "https://github.com/zhijian-liu/torchprofile";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ drupol ];
|
||||
};
|
||||
}
|
@ -15921,6 +15921,8 @@ self: super: with self; {
|
||||
# Used by streamlit, 2021-01-29
|
||||
tornado_5 = callPackage ../development/python-modules/tornado/5.nix { };
|
||||
|
||||
torchprofile = callPackage ../development/python-modules/torchprofile { };
|
||||
|
||||
torpy = callPackage ../development/python-modules/torpy { };
|
||||
|
||||
torrent-parser = callPackage ../development/python-modules/torrent-parser { };
|
||||
|
Loading…
Reference in New Issue
Block a user