From 01eefa75196769f3a1a7af1e6637173b864fed60 Mon Sep 17 00:00:00 2001 From: Jen Herting Date: Mon, 3 May 2021 12:19:48 -0400 Subject: New package: py-torchmetrics (#23352) * lightning with friends * [py-torchmetrics] added verison 0.2.0 Co-authored-by: Sid Pendelberry --- .../builtin/packages/py-torchmetrics/package.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-torchmetrics/package.py diff --git a/var/spack/repos/builtin/packages/py-torchmetrics/package.py b/var/spack/repos/builtin/packages/py-torchmetrics/package.py new file mode 100644 index 0000000000..c7da4fa0a5 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-torchmetrics/package.py @@ -0,0 +1,22 @@ +# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack import * + + +class PyTorchmetrics(PythonPackage): + """Machine learning metrics for distributed, scalable PyTorch applications.""" + + homepage = "https://github.com/PyTorchLightning/metrics" + pypi = "torchmetrics/torchmetrics-0.3.1.tar.gz" + + version('0.3.1', sha256='78f4057db53f7c219fdf9ec9eed151adad18dd43488a44e5c780806d218e3f1d') + version('0.2.0', sha256='481a28759acd2d77cc088acba6bc7dc4a356c7cb767da2e1495e91e612e2d548') + + depends_on('python@3.6:', type=('build', 'run')) + depends_on('py-setuptools', type='build') + depends_on('py-numpy', type=('build', 'run'), when='@0.3.0:') + depends_on('py-torch@1.3.1:', type=('build', 'run')) + depends_on('py-packaging', type=('build', 'run'), when='@0.3.0:') -- cgit v1.2.3-70-g09d2