(self, spatial_dims, in_channels, embed_dim, input_shape, expected_shape)
| 112 | |
| 113 | @parameterized.expand(TEST_CASES_PATCHEMBED) |
| 114 | def test_shape(self, spatial_dims, in_channels, embed_dim, input_shape, expected_shape): |
| 115 | net = OverlapPatchEmbed(spatial_dims=spatial_dims, in_channels=in_channels, embed_dim=embed_dim) |
| 116 | with eval_mode(net): |
| 117 | result = net(torch.randn(input_shape)) |
| 118 | self.assertEqual(result.shape, expected_shape) |
| 119 | |
| 120 | |
| 121 | class TestRestormer(unittest.TestCase): |
nothing calls this directly
no test coverage detected