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

Method test_script

tests/networks/nets/test_highresnet.py:59–63  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

57
58 @TimedCall(seconds=800, force_quit=True)
59 def test_script(self):
60 input_param, input_shape, expected_shape = TEST_CASE_1
61 net = HighResNet(**input_param)
62 test_data = torch.randn(input_shape)
63 test_script_save(net, test_data, rtol=1e-4, atol=1e-4)
64
65
66if __name__ == "__main__":

Callers

nothing calls this directly

Calls 2

HighResNetClass · 0.90
test_script_saveFunction · 0.90

Tested by

no test coverage detected