summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-vector-quantize-pytorch/package.py
blob: 18fa2fb9fb2de5e0b64ea38b252ea3cea0fa2de0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Copyright 2013-2023 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.package 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"

    license("MIT")

    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"))