(self)
| 185 | test_script_save(net, test_data) |
| 186 | |
| 187 | def test_ill_input_shape(self): |
| 188 | net = HoVerNet(mode=HoVerNet.Mode.FAST) |
| 189 | with eval_mode(net): |
| 190 | with self.assertRaises(ValueError): |
| 191 | net.forward(torch.randn(1, 3, 270, 260)) |
| 192 | |
| 193 | def test_kernels_strides(self): |
| 194 | net = HoVerNet(mode=HoVerNet.Mode.FAST, out_classes=2) |