(self, im, indices)
| 29 | class TestTranspose(unittest.TestCase): |
| 30 | @parameterized.expand(TESTS) |
| 31 | def test_transpose(self, im, indices): |
| 32 | tr = Transpose(indices) |
| 33 | out1 = tr(im) |
| 34 | if isinstance(im, torch.Tensor): |
| 35 | im = im.cpu().numpy() |
| 36 | out2 = np.transpose(im, indices) |
| 37 | assert_allclose(out1, out2, type_test=False) |
| 38 | |
| 39 | |
| 40 | if __name__ == "__main__": |
nothing calls this directly
no test coverage detected