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

Method test_script

tests/networks/nets/test_basic_unet.py:95–98  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

93 self.assertEqual(result.shape, expected_shape)
94
95 def test_script(self):
96 net = BasicUNet(spatial_dims=2, in_channels=1, out_channels=3)
97 test_data = torch.randn(16, 1, 32, 32)
98 test_script_save(net, test_data)
99
100
101if __name__ == "__main__":

Callers

nothing calls this directly

Calls 2

BasicUNetClass · 0.90
test_script_saveFunction · 0.90

Tested by

no test coverage detected