summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew W Elble <aweits@rit.edu>2020-04-10 14:13:51 -0400
committerGitHub <noreply@github.com>2020-04-10 13:13:51 -0500
commitc01a968ada8ffcfd0afd352b55b601b2573eafd6 (patch)
tree610ec42a7f4326f7aed129ccb9006d646d1c24f9
parent42b63e6b7eade3d51f693e085857468bc56a2df9 (diff)
downloadspack-c01a968ada8ffcfd0afd352b55b601b2573eafd6.tar.gz
spack-c01a968ada8ffcfd0afd352b55b601b2573eafd6.tar.bz2
spack-c01a968ada8ffcfd0afd352b55b601b2573eafd6.tar.xz
spack-c01a968ada8ffcfd0afd352b55b601b2573eafd6.zip
new package: py-torchsummary (#15990)
* new package: py-torchsummary * add numpy
-rw-r--r--var/spack/repos/builtin/packages/py-torchsummary/package.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-torchsummary/package.py b/var/spack/repos/builtin/packages/py-torchsummary/package.py
new file mode 100644
index 0000000000..af1e39bcfb
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-torchsummary/package.py
@@ -0,0 +1,21 @@
+# Copyright 2013-2020 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)
+
+
+class PyTorchsummary(PythonPackage):
+ """Keras has a neat API to view the visualization of the model
+ which is very helpful while debugging your network. Here is a
+ barebone code to try and mimic the same in PyTorch. The aim is to
+ provide information complementary to, what is not provided by
+ print(your_model) in PyTorch."""
+
+ homepage = "https://github.com/sksq96/pytorch-summary"
+ url = "https://pypi.io/packages/source/t/torchsummary/torchsummary-1.5.1.tar.gz"
+
+ version('1.5.1', sha256='981bf689e22e0cf7f95c746002f20a24ad26aa6b9d861134a14bc6ce92230590')
+
+ depends_on('py-setuptools', type='build')
+ depends_on('py-torch', type=('build', 'run'))
+ depends_on('py-numpy', type=('build', 'run'))