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

Method test_ill_input_shape

tests/networks/nets/test_hovernet.py:187–191  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 3

forwardMethod · 0.95
HoVerNetClass · 0.90
eval_modeFunction · 0.90

Tested by

no test coverage detected