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

Method test_ill_args

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

Source from the content-addressed store, hash-verified

72 self.assertEqual(result.shape, expected_shape)
73
74 def test_ill_args(self):
75 with self.assertRaises(ValueError):
76 MILModel(
77 num_classes=5,
78 pretrained=False,
79 backbone="resnet50",
80 backbone_num_features=2048,
81 mil_mode="att_trans_pyramid",
82 )
83
84 def test_script(self):
85 input_param, input_shape, expected_shape = TEST_CASE_MILMODEL[0]

Callers

nothing calls this directly

Calls 1

MILModelClass · 0.90

Tested by

no test coverage detected