Loading pkgs/development/python-modules/pytorch-memlab/default.nix 0 → 100644 +49 −0 Original line number Diff line number Diff line { lib, buildPythonPackage, fetchFromGitHub, calmsize, pandas, torch, pytestCheckHook, setuptools, }: buildPythonPackage rec { pname = "pytorch-memlab"; version = "0.3.0"; pyproject = true; src = fetchFromGitHub { owner = "Stonesjtu"; repo = "pytorch_memlab"; tag = version; hash = "sha256-wNgbipvi3vYr9Ka9hA7I+C4y8Nf6AiZXUoXX+qKtZ+I="; }; build-system = [ setuptools ]; nativeCheckInputs = [ pytestCheckHook ]; dependencies = [ calmsize pandas torch ]; pythonImportsCheck = [ "pytorch_memlab" ]; # These tests require CUDA disabledTestPaths = [ "test/test_courtesy.py" "test/test_line_profiler.py" ]; meta = { description = "Simple and accurate CUDA memory management laboratory for pytorch"; homepage = "https://github.com/Stonesjtu/pytorch_memlab"; changelog = "https://github.com/Stonesjtu/pytorch_memlab/releases/tag/${version}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ jherland ]; }; } pkgs/top-level/python-packages.nix +2 −0 Original line number Diff line number Diff line Loading @@ -14777,6 +14777,8 @@ self: super: with self; { pytorch-lightning = callPackage ../development/python-modules/pytorch-lightning { }; pytorch-memlab = callPackage ../development/python-modules/pytorch-memlab { }; pytorch-metric-learning = callPackage ../development/python-modules/pytorch-metric-learning { }; pytorch-msssim = callPackage ../development/python-modules/pytorch-msssim { }; Loading
pkgs/development/python-modules/pytorch-memlab/default.nix 0 → 100644 +49 −0 Original line number Diff line number Diff line { lib, buildPythonPackage, fetchFromGitHub, calmsize, pandas, torch, pytestCheckHook, setuptools, }: buildPythonPackage rec { pname = "pytorch-memlab"; version = "0.3.0"; pyproject = true; src = fetchFromGitHub { owner = "Stonesjtu"; repo = "pytorch_memlab"; tag = version; hash = "sha256-wNgbipvi3vYr9Ka9hA7I+C4y8Nf6AiZXUoXX+qKtZ+I="; }; build-system = [ setuptools ]; nativeCheckInputs = [ pytestCheckHook ]; dependencies = [ calmsize pandas torch ]; pythonImportsCheck = [ "pytorch_memlab" ]; # These tests require CUDA disabledTestPaths = [ "test/test_courtesy.py" "test/test_line_profiler.py" ]; meta = { description = "Simple and accurate CUDA memory management laboratory for pytorch"; homepage = "https://github.com/Stonesjtu/pytorch_memlab"; changelog = "https://github.com/Stonesjtu/pytorch_memlab/releases/tag/${version}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ jherland ]; }; }
pkgs/top-level/python-packages.nix +2 −0 Original line number Diff line number Diff line Loading @@ -14777,6 +14777,8 @@ self: super: with self; { pytorch-lightning = callPackage ../development/python-modules/pytorch-lightning { }; pytorch-memlab = callPackage ../development/python-modules/pytorch-memlab { }; pytorch-metric-learning = callPackage ../development/python-modules/pytorch-metric-learning { }; pytorch-msssim = callPackage ../development/python-modules/pytorch-msssim { };