opt-einsum: init at 2.3.2

This commit is contained in:
Tom Hunger 2018-12-26 18:26:26 +00:00
parent a2fe6bca05
commit 4411b29065
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,31 @@
{ buildPythonPackage, fetchPypi, lib, numpy, pytest, pytestpep8, pytestcov }:
buildPythonPackage rec {
version = "2.3.2";
pname = "opt_einsum";
src = fetchPypi {
inherit version pname;
sha256 = "0ny3v8x83mzpwmqjdzqhzy2pzwyy4wx01r1h9i29xw3yvas69m6k";
};
checkInputs = [
pytest
pytestpep8
pytestcov
];
checkPhase = ''
pytest
'';
propagatedBuildInputs = [
numpy
];
meta = {
description = "Optimizing NumPy's einsum function with order optimization and GPU support.";
homepage = http://optimized-einsum.readthedocs.io;
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ teh ];
};
}

View File

@ -2416,6 +2416,8 @@ in {
cudaSupport = pkgs.config.cudaSupport or false;
};
opt-einsum = callPackage ../development/python-modules/opt-einsum {};
pytorchWithCuda = self.pytorch.override {
cudaSupport = true;
};