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

Method test_conv

tests/data/meta_tensor/test_meta_tensor.py:202–207  ·  view source on GitHub ↗
(self, device)

Source from the content-addressed store, hash-verified

200
201 @parameterized.expand(TEST_DEVICES)
202 def test_conv(self, device):
203 im, _ = self.get_im((1, 3, 10, 8, 12), device=device)
204 conv = torch.nn.Conv3d(im.shape[1], 5, 3)
205 conv.to(device)
206 out = conv(im)
207 self.check(out, im, shape=False, vals=False, ids=False)
208
209 @parameterized.expand(TESTS)
210 def test_stack(self, device, dtype):

Callers

nothing calls this directly

Calls 2

get_imMethod · 0.95
checkMethod · 0.95

Tested by

no test coverage detected