python3Packages.pytorch-metric-learning: move cudaSupport logic to package
Use the same pattern as all the majority of packages using cuda
This commit is contained in:
parent
da07f98d58
commit
c6424f784c
@ -4,6 +4,7 @@
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
isPy27,
|
||||
config,
|
||||
|
||||
# build-system
|
||||
setuptools,
|
||||
@ -19,7 +20,7 @@
|
||||
tensorboard,
|
||||
|
||||
# tests
|
||||
cudaSupport,
|
||||
cudaSupport ? config.cudaSupport,
|
||||
pytestCheckHook,
|
||||
torchvision
|
||||
}:
|
||||
|
@ -12812,9 +12812,7 @@ self: super: with self; {
|
||||
|
||||
pytorch-lightning = callPackage ../development/python-modules/pytorch-lightning { };
|
||||
|
||||
pytorch-metric-learning = callPackage ../development/python-modules/pytorch-metric-learning {
|
||||
inherit (pkgs.config) cudaSupport;
|
||||
};
|
||||
pytorch-metric-learning = callPackage ../development/python-modules/pytorch-metric-learning { };
|
||||
|
||||
pytorch-msssim = callPackage ../development/python-modules/pytorch-msssim { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user