-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python312Packages.torchbench: init at 0.0.31
- Loading branch information
Showing
2 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ | ||
lib, | ||
buildPythonPackage, | ||
fetchPypi, | ||
setuptools, | ||
numpy, | ||
opencv4, | ||
sotabenchapi, | ||
torch, | ||
torchvision, | ||
tqdm, | ||
}: | ||
|
||
let | ||
version = "0.0.31"; | ||
pname = "torchbench"; | ||
in | ||
buildPythonPackage { | ||
inherit pname version; | ||
pyproject = true; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
hash = "sha256-EBZzcnRT50KREIOPrr/OZTJ4639ZUEejcelh3QSBcZ8="; | ||
}; | ||
|
||
# requirements.txt is missing in the Pypi archive and this makes the setup.py script fails | ||
postPatch = '' | ||
touch requirements.txt | ||
''; | ||
|
||
build-system = [ | ||
setuptools | ||
]; | ||
|
||
dependencies = [ | ||
numpy | ||
opencv4 | ||
sotabenchapi | ||
torch | ||
torchvision | ||
tqdm | ||
]; | ||
|
||
pythonImportsCheck = [ | ||
"torchbench" | ||
]; | ||
|
||
# No tests | ||
doCheck = false; | ||
|
||
meta = { | ||
description = "Easily benchmark machine learning models in PyTorch"; | ||
homepage = "https://github.com/paperswithcode/torchbench"; | ||
license = lib.licenses.asl20; | ||
maintainers = with lib.maintainers; [ drupol ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters