new package: py-torchsummary (#15990)
* new package: py-torchsummary * add numpy
This commit is contained in:
parent
42b63e6b7e
commit
c01a968ada
21
var/spack/repos/builtin/packages/py-torchsummary/package.py
Normal file
21
var/spack/repos/builtin/packages/py-torchsummary/package.py
Normal file
@ -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'))
|
Loading…
Reference in New Issue
Block a user