We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e58ee9 commit 9601828Copy full SHA for 9601828
Dockerfile.tmpl
@@ -559,7 +559,8 @@ RUN pip install pytorch-ignite \
559
tables \
560
openpyxl \
561
timm \
562
- pycolmap && \
+ pycolmap \
563
+ torchinfo && \
564
/tmp/clean-layer.sh
565
566
# Download base easyocr models.
tests/test_torchinfo.py
@@ -0,0 +1,11 @@
1
+import unittest
2
+
3
+import torch.nn as tnn
4
5
+from torchinfo import summary
6
7
+class TestTorchinfo(unittest.TestCase):
8
+ def test_info(self):
9
+ model = tnn.Linear(5,3)
10
+ s = summary(model)
11
+ self.assertEqual(1, len(s.summary_list))
0 commit comments