git: 5f5ff3f52512 - main - misc/py-torchsummary: New port: PyTorch: Model summary in PyTorch
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 19 Sep 2025 07:36:30 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=5f5ff3f5251236224dd9d1f9cb665e82b8e55084
commit 5f5ff3f5251236224dd9d1f9cb665e82b8e55084
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-09-19 04:30:45 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-09-19 07:36:17 +0000
misc/py-torchsummary: New port: PyTorch: Model summary in PyTorch
---
misc/Makefile | 1 +
misc/py-torchsummary/Makefile | 21 +++++++++++++++++++++
misc/py-torchsummary/distinfo | 3 +++
misc/py-torchsummary/pkg-descr | 2 ++
4 files changed, 27 insertions(+)
diff --git a/misc/Makefile b/misc/Makefile
index bfe8cae6b2b6..8d448e094152 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -567,6 +567,7 @@
SUBDIR += py-torchao
SUBDIR += py-torchdata
SUBDIR += py-torchmetrics
+ SUBDIR += py-torchsummary
SUBDIR += py-torchvision
SUBDIR += py-tqdm
SUBDIR += py-transformers
diff --git a/misc/py-torchsummary/Makefile b/misc/py-torchsummary/Makefile
new file mode 100644
index 000000000000..9ca5d9f08613
--- /dev/null
+++ b/misc/py-torchsummary/Makefile
@@ -0,0 +1,21 @@
+PORTNAME= torchsummary
+DISTVERSION= 1.5.1
+CATEGORIES= misc # machine-learning
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= PyTorch: Model summary in PyTorch
+WWW= https://github.com/sksq96/pytorch-summary
+
+LICENSE= MIT
+
+RUN_DEPENDS= ${PYNUMPY} \
+ ${PYTHON_PKGNAMEPREFIX}pytorch>0:misc/py-pytorch@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= distutils autoplist
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/misc/py-torchsummary/distinfo b/misc/py-torchsummary/distinfo
new file mode 100644
index 000000000000..1aced87a57d1
--- /dev/null
+++ b/misc/py-torchsummary/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1758229967
+SHA256 (torchsummary-1.5.1.tar.gz) = 981bf689e22e0cf7f95c746002f20a24ad26aa6b9d861134a14bc6ce92230590
+SIZE (torchsummary-1.5.1.tar.gz) = 3749
diff --git a/misc/py-torchsummary/pkg-descr b/misc/py-torchsummary/pkg-descr
new file mode 100644
index 000000000000..2e23fe04a93e
--- /dev/null
+++ b/misc/py-torchsummary/pkg-descr
@@ -0,0 +1,2 @@
+torchsummary is a Python module that produces model summary in PyTorch similar
+to `model.summary()` in Keras.