py-ema-pytorch: new package (#47052)

Co-authored-by: Alex C Leute <acl2809@rit.edu>
This commit is contained in:
Jen Herting 2024-10-18 12:59:36 -04:00 committed by GitHub
parent cfae194fbd
commit 53385f12da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,22 @@
# Copyright 2013-2024 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 PyEmaPytorch(PythonPackage):
"""Easy way to keep track of exponential moving average version of your
pytorch module"""
homepage = "https://github.com/lucidrains/ema-pytorch"
pypi = "ema_pytorch/ema_pytorch-0.5.1.tar.gz"
license("MIT", checked_by="alex391")
version("0.5.1", sha256="e825212a44e8faae5d2cf2a1349961c4416cba0496ffa64d37718d8b06f206b2")
depends_on("py-setuptools", type="build")
depends_on("py-torch@1.6:", type=("build", "run"))