(self, input_param, img, out, expected_shape)
| 67 | class TestAsDiscrete(unittest.TestCase): |
| 68 | @parameterized.expand(TEST_CASES) |
| 69 | def test_value_shape(self, input_param, img, out, expected_shape): |
| 70 | result = AsDiscrete(**input_param)(img) |
| 71 | assert_allclose(result, out, rtol=1e-3, type_test="tensor") |
| 72 | self.assertTupleEqual(result.shape, expected_shape) |
| 73 | |
| 74 | def test_additional(self): |
| 75 | for p in TEST_NDARRAYS: |
nothing calls this directly
no test coverage detected