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

Method test_kernels_strides

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

Source from the content-addressed store, hash-verified

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)
195 with eval_mode(net):
196 self.assertEqual(check_kernels(net, HoVerNet.Mode.FAST), False)
197
198 net = HoVerNet(mode=HoVerNet.Mode.ORIGINAL, out_classes=2)
199 with eval_mode(net):
200 self.assertEqual(check_kernels(net, HoVerNet.Mode.ORIGINAL), False)
201
202 def test_freeze_encoder(self):
203 net = HoVerNet(mode=HoVerNet.Mode.FAST, freeze_encoder=True)

Callers

nothing calls this directly

Calls 3

HoVerNetClass · 0.90
eval_modeFunction · 0.90
check_kernelsFunction · 0.85

Tested by

no test coverage detected