(x: Union[float, tf.Tensor])
| 45 | ], |
| 46 | ) |
| 47 | def test_to_default_float(x: Union[float, tf.Tensor]) -> None: |
| 48 | default_float_x = to_default_float(x) |
| 49 | _x = x if isinstance(x, float) else float(x.numpy()) |
| 50 | assert default_float_x.numpy() == _x |
| 51 | |
| 52 | |
| 53 | @pytest.mark.parametrize( |
nothing calls this directly
no test coverage detected
searching dependent graphs…