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

Method test_script

tests/networks/nets/test_milmodel.py:84–88  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

82 )
83
84 def test_script(self):
85 input_param, input_shape, expected_shape = TEST_CASE_MILMODEL[0]
86 net = MILModel(**input_param)
87 test_data = torch.randn(input_shape, dtype=torch.float)
88 test_script_save(net, test_data)
89
90
91if __name__ == "__main__":

Callers

nothing calls this directly

Calls 2

MILModelClass · 0.90
test_script_saveFunction · 0.90

Tested by

no test coverage detected