(self, test_data, expected_shape)
| 35 | class TestToTensor(unittest.TestCase): |
| 36 | @parameterized.expand(TESTS) |
| 37 | def test_array_input(self, test_data, expected_shape): |
| 38 | result = ToTensor(dtype=torch.float32, device="cpu", wrap_sequence=True)(test_data) |
| 39 | self.assertTrue(isinstance(result, torch.Tensor)) |
| 40 | assert_allclose(result, test_data, type_test=False) |
| 41 | self.assertTupleEqual(result.shape, expected_shape) |
| 42 | |
| 43 | @parameterized.expand(TESTS_SINGLE) |
| 44 | def test_single_input(self, test_data): |
nothing calls this directly
no test coverage detected