(self)
| 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] |