summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorSangu Mbekelu <60823467+Sangu-Mbekelu@users.noreply.github.com>2023-03-08 10:12:27 -0500
committerGitHub <noreply@github.com>2023-03-08 09:12:27 -0600
commit2777ca83eb3e90ea8ef2f92208dd8dbf67cba404 (patch)
tree41745d3e7ea5801a82276e3622d3727d797db2bc /var
parenta2423f573676d58a4f303e6b17fe2c6cf48e506c (diff)
downloadspack-2777ca83eb3e90ea8ef2f92208dd8dbf67cba404.tar.gz
spack-2777ca83eb3e90ea8ef2f92208dd8dbf67cba404.tar.bz2
spack-2777ca83eb3e90ea8ef2f92208dd8dbf67cba404.tar.xz
spack-2777ca83eb3e90ea8ef2f92208dd8dbf67cba404.zip
new py-thop package (#35889)
* "new py-thop package" * [@spackbot] updating style on behalf of Sangu-Mbekelu * Update package.py modified the url and dependencies --------- Co-authored-by: Sangu Mbekelu <s.mbekelu9@gmail.com>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-thop/package.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-thop/package.py b/var/spack/repos/builtin/packages/py-thop/package.py
new file mode 100644
index 0000000000..349886a042
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-thop/package.py
@@ -0,0 +1,22 @@
+# 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 PyThop(PythonPackage):
+ """A tool to count the FLOPs of PyTorch model."""
+
+ homepage = "https://github.com/Lyken17/pytorch-OpCounter/"
+ url = "https://pypi.io/packages/py3/t/thop/thop-0.1.1.post2209072238-py3-none-any.whl"
+
+ version(
+ "0.1.1.post2209072238",
+ sha256="01473c225231927d2ad718351f78ebf7cffe6af3bed464c4f1ba1ef0f7cdda27",
+ expand=False,
+ )
+
+ depends_on("py-torch", type=("build", "run"))