python3Packages.torchtnt: init at 0.2.4 (#361470)
This commit is contained in:
@@ -0,0 +1,71 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
|
||||
# build-system
|
||||
setuptools,
|
||||
|
||||
# dependencies
|
||||
fsspec,
|
||||
numpy,
|
||||
packaging,
|
||||
psutil,
|
||||
pyre-extensions,
|
||||
tabulate,
|
||||
tensorboard,
|
||||
torch,
|
||||
tqdm,
|
||||
typing-extensions,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "torchtnt";
|
||||
version = "0.2.4";
|
||||
pyproject = true;
|
||||
|
||||
# no tag / releases on github
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-Js9OcYllr8KT52FYtHKDciBVvPeelNDmfnC12/YcDJs=";
|
||||
};
|
||||
|
||||
# requirements.txt is not included in Pypi archive
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace-fail 'read_requirements("requirements.txt")' "[]" \
|
||||
--replace-fail 'read_requirements("dev-requirements.txt")' "[]"
|
||||
'';
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
fsspec
|
||||
numpy
|
||||
packaging
|
||||
psutil
|
||||
pyre-extensions
|
||||
setuptools
|
||||
tabulate
|
||||
tensorboard
|
||||
torch
|
||||
tqdm
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"torchtnt"
|
||||
];
|
||||
|
||||
# Tests are not included in Pypi archive
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
description = "Lightweight library for PyTorch training tools and utilities";
|
||||
homepage = "https://github.com/pytorch/tnt";
|
||||
license = lib.licenses.bsd3;
|
||||
maintainers = with lib.maintainers; [ nim65s ];
|
||||
};
|
||||
}
|
||||
@@ -16158,6 +16158,8 @@ self: super: with self; {
|
||||
|
||||
torchsummary = callPackage ../development/python-modules/torchsummary { };
|
||||
|
||||
torchtnt = callPackage ../development/python-modules/torchtnt { };
|
||||
|
||||
torchvision = callPackage ../development/python-modules/torchvision { };
|
||||
|
||||
torchvision-bin = callPackage ../development/python-modules/torchvision/bin.nix {
|
||||
|
||||
Reference in New Issue
Block a user