diff options
author | Jen Herting <jen@herting.cc> | 2021-12-02 15:53:49 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-02 14:53:49 -0600 |
commit | ca32b08825ece2e59d631d1fe4c302aa7f7c4f5a (patch) | |
tree | a2202cbed0e4953828115a1e945407e77ef27388 | |
parent | 1cdb764422dd71e5c432a9ceb6d14f081bc69a08 (diff) | |
download | spack-ca32b08825ece2e59d631d1fe4c302aa7f7c4f5a.tar.gz spack-ca32b08825ece2e59d631d1fe4c302aa7f7c4f5a.tar.bz2 spack-ca32b08825ece2e59d631d1fe4c302aa7f7c4f5a.tar.xz spack-ca32b08825ece2e59d631d1fe4c302aa7f7c4f5a.zip |
New package: py-vector-quantize-pytorch (#27759)
* [py-vector-quantize-pytorch] New package
* [py-vector-quantize-pytorch] flake8
* [py-vector-quantize-pytorch] removed unnecessary dependency
Co-authored-by: Sid Pendelberry <sid@rit.edu>
-rw-r--r-- | var/spack/repos/builtin/packages/py-vector-quantize-pytorch/package.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-vector-quantize-pytorch/package.py b/var/spack/repos/builtin/packages/py-vector-quantize-pytorch/package.py new file mode 100644 index 0000000000..747060c868 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-vector-quantize-pytorch/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 PyVectorQuantizePytorch(PythonPackage): + """A vector quantization library originally transcribed + from Deepmind's tensorflow implementation, made + conveniently into a package. It uses exponential moving + averages to update the dictionary.""" + + homepage = "https://github.com/lucidrains/vector-quantize-pytorch" + pypi = "vector_quantize_pytorch/vector_quantize_pytorch-0.3.9.tar.gz" + + version('0.3.9', sha256='783ca76251299f0e3eb244062bc05c4416bb29157e57077e4a8969c5277f05ee') + + depends_on('py-setuptools', type='build') + depends_on('py-einops', type=('build', 'run')) + depends_on('py-torch', type=('build', 'run')) |