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

Method test_script

tests/networks/nets/test_segresnet.py:95–99  ·  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 input_param, input_shape, expected_shape = TEST_CASE_SEGRESNET_VAE[0]
97 net = SegResNetVAE(**input_param)
98 test_data = torch.randn(input_shape)
99 test_script_save(net, test_data)
100
101
102if __name__ == "__main__":

Callers

nothing calls this directly

Calls 2

SegResNetVAEClass · 0.90
test_script_saveFunction · 0.90

Tested by

no test coverage detected