b940bd9174414ecef9ac99736ce1b2acaf7362d8,torchsummary/tests/unit_tests/torchsummary_test.py,,,#,46
Before Change
self.assertEqual(total_params, 31120)
self.assertEqual(trainable_params, 31120)
if __name__ == "__main__":
unittest.main(buffer=True)
After Change
from torchsummary.tests.test_models.test_model import SingleInputNet, MultipleInputNet, MultipleInputNetDifferentDtypes
import torch
gpu_if_available = "cuda:0" if torch.cuda.is_available() else "cpu"
class torchsummaryTests(unittest.TestCase):
def test_single_input(self):
model = SingleInputNet()
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 6
Instances
Project Name: sksq96/pytorch-summary
Commit Name: b940bd9174414ecef9ac99736ce1b2acaf7362d8
Time: 2020-01-11
Author: greenmon@kaist.ac.kr
File Name: torchsummary/tests/unit_tests/torchsummary_test.py
Class Name:
Method Name:
Project Name: kymatio/kymatio
Commit Name: 45bc77266ba893c3ec65cc8661a1b66abe354671
Time: 2018-12-14
Author: janden@flatironinstitute.org
File Name: kymatio/scattering3d/tests/test_scattering3d.py
Class Name:
Method Name:
Project Name: kymatio/kymatio
Commit Name: e6dcaf3ba63d53af821212f442a679cd7b60f9be
Time: 2018-11-21
Author: janden@flatironinstitute.org
File Name: examples/1d/compute_speed.py
Class Name:
Method Name:
Project Name: pytorch/pytorch
Commit Name: 1b35b1a0c4efa0cb14441a53d5f9d50c15484b26
Time: 2021-03-05
Author: hong@topbug.net
File Name: test/distributed/algorithms/ddp_comm_hooks/test_ddp_hooks.py
Class Name:
Method Name: