MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / test_script

Method test_script

tests/networks/nets/test_quicknat.py:50–53  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

48 self.assertEqual(result.shape, expected_shape)
49
50 def test_script(self):
51 net = Quicknat(num_classes=1, num_channels=1)
52 test_data = torch.randn(16, 1, 32, 32)
53 test_script_save(net, test_data)
54
55
56if __name__ == "__main__":

Callers

nothing calls this directly

Calls 2

QuicknatClass · 0.90
test_script_saveFunction · 0.90

Tested by

no test coverage detected