(self)
| 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( |
| 2894 | dims=("x", "y"), data=[[1.5, 2.0], [3.1, 4.3]], attrs={"foo": "bar"} |
| 2895 | ) |
| 2896 | assert_identical(ones_like(orig), full_like(orig, 1)) |
| 2897 | assert_identical(ones_like(orig, dtype=int), full_like(orig, 1, dtype=int)) |
| 2898 | |
| 2899 | def test_numpy_ndarray_subclass(self): |
| 2900 | class SubclassedArray(np.ndarray): |
nothing calls this directly
no test coverage detected