python3Packages.pytorch-pfn-extras: init at 0.5.6

This commit is contained in:
Samuel Ainsworth 2022-02-17 08:48:22 +00:00
parent bca2c20339
commit 47f62faffe
2 changed files with 57 additions and 0 deletions

@ -0,0 +1,55 @@
{ buildPythonPackage
, fetchFromGitHub
, lib
, numpy
, onnx
, pytestCheckHook
, pytorch
, typing-extensions
}:
buildPythonPackage rec {
pname = "pytorch-pfn-extras";
version = "0.5.6";
src = fetchFromGitHub {
owner = "pfnet";
repo = pname;
rev = "v${version}";
sha256 = "1ch4vhz3zjanj5advqsj51yy7idrp8yvydvcg4ymwa3wsfjrx58g";
};
propagatedBuildInputs = [ numpy pytorch typing-extensions ];
checkInputs = [ onnx pytestCheckHook ];
pythonImportsCheck = [ "pytorch_pfn_extras" ];
disabledTestPaths = [
# Requires optuna which is currently (2022-02-16) marked as broken.
"tests/pytorch_pfn_extras_tests/test_config_types.py"
# Requires CUDA access which is not possible in the nix environment.
"tests/pytorch_pfn_extras_tests/cuda_tests/test_allocator.py"
"tests/pytorch_pfn_extras_tests/nn_tests/modules_tests/test_lazy_batchnorm.py"
"tests/pytorch_pfn_extras_tests/nn_tests/modules_tests/test_lazy_conv.py"
"tests/pytorch_pfn_extras_tests/nn_tests/modules_tests/test_lazy_linear.py"
"tests/pytorch_pfn_extras_tests/nn_tests/modules_tests/test_lazy.py"
"tests/pytorch_pfn_extras_tests/profiler_tests/test_record.py"
"tests/pytorch_pfn_extras_tests/runtime_tests/test_to.py"
"tests/pytorch_pfn_extras_tests/test_handler.py"
"tests/pytorch_pfn_extras_tests/test_logic.py"
"tests/pytorch_pfn_extras_tests/test_reporter.py"
"tests/pytorch_pfn_extras_tests/training_tests/test_trainer.py"
"tests/pytorch_pfn_extras_tests/utils_tests/test_checkpoint.py"
"tests/pytorch_pfn_extras_tests/utils_tests/test_comparer.py"
"tests/pytorch_pfn_extras_tests/utils_tests/test_new_comparer.py"
];
meta = with lib; {
description = "Supplementary components to accelerate research and development in PyTorch";
homepage = "https://github.com/pfnet/pytorch-pfn-extras";
license = licenses.mit;
maintainers = with maintainers; [ samuela ];
};
}

@ -8227,6 +8227,8 @@ in {
pytorch-metric-learning = callPackage ../development/python-modules/pytorch-metric-learning { };
pytorch-pfn-extras = callPackage ../development/python-modules/pytorch-pfn-extras { };
pytorchWithCuda = self.pytorch.override {
cudaSupport = true;
};