diff options
author | Jen Herting <jen@herting.cc> | 2021-07-13 22:38:12 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-13 21:38:12 -0500 |
commit | f095383caf16aa95fcc0e222cc73b0fc97d40794 (patch) | |
tree | cb00aecb7dafeb805bc1704c2446adcc36f55073 /var | |
parent | 94767ea57364a387d138fa68baf493b0ab03291b (diff) | |
download | spack-f095383caf16aa95fcc0e222cc73b0fc97d40794.tar.gz spack-f095383caf16aa95fcc0e222cc73b0fc97d40794.tar.bz2 spack-f095383caf16aa95fcc0e222cc73b0fc97d40794.tar.xz spack-f095383caf16aa95fcc0e222cc73b0fc97d40794.zip |
New package: py-torchmeta (#24596)
* first build of py-torchmeta
* updated versions for torchvision and torch
* [py-torchmeta] using pil provider
Co-authored-by: Sid Pendelberry <sid@rit.edu>
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/py-torchmeta/package.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-torchmeta/package.py b/var/spack/repos/builtin/packages/py-torchmeta/package.py new file mode 100644 index 0000000000..e2400926ab --- /dev/null +++ b/var/spack/repos/builtin/packages/py-torchmeta/package.py @@ -0,0 +1,28 @@ +# 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 PyTorchmeta(PythonPackage): + """A collection of extensions and data-loaders for few-shot learning & + meta-learning in PyTorch. Torchmeta contains popular meta-learning + benchmarks, fully compatible with both torchvision and PyTorch's DataLoader.""" + + homepage = "https://github.com/tristandeleu/pytorch-meta" + pypi = "torchmeta/torchmeta-1.7.0.tar.gz" + + version('1.7.0', sha256='148d42b6a1ec27970408f7bcb97cf1cb203f8699214e06424fe43d78faa848d9') + + depends_on('python@3.6:', type=('build', 'run')) + depends_on('py-setuptools', type='build') + depends_on('py-numpy@1.14:', type=('build', 'run')) + depends_on('py-torch@1.4.0:1.8.999', type=('build', 'run')) + depends_on('py-torchvision@0.5.0:0.9.999', type=('build', 'run')) + depends_on('pil@7.0:', type=('build', 'run')) + depends_on('py-h5py', type=('build', 'run')) + depends_on('py-tqdm@4.0.0:', type=('build', 'run')) + depends_on('py-requests', type=('build', 'run')) + depends_on('py-ordered-set', type=('build', 'run')) |