(self)
| 2883 | assert not isinstance(v, np.ndarray) |
| 2884 | |
| 2885 | def test_zeros_like(self) -> None: |
| 2886 | orig = Variable( |
| 2887 | dims=("x", "y"), data=[[1.5, 2.0], [3.1, 4.3]], attrs={"foo": "bar"} |
| 2888 | ) |
| 2889 | assert_identical(zeros_like(orig), full_like(orig, 0)) |
| 2890 | assert_identical(zeros_like(orig, dtype=int), full_like(orig, 0, dtype=int)) |
| 2891 | |
| 2892 | def test_ones_like(self) -> None: |
| 2893 | orig = Variable( |
nothing calls this directly
no test coverage detected