(self)
| 24 | |
| 25 | class TestDeviceView: |
| 26 | def test_basic(self): |
| 27 | with DeviceArray(shape=(1, 4, 2), dtype=np.float32) as arr: |
| 28 | v = DeviceView(arr.ptr, arr.shape, arr.dtype) |
| 29 | assert v.ptr == arr.ptr |
| 30 | assert v.shape == arr.shape |
| 31 | assert v.dtype == arr.dtype |
| 32 | assert v.nbytes == arr.nbytes |
| 33 | |
| 34 | def test_with_int_ptr(self): |
| 35 | ptr = 74892 |
nothing calls this directly
no test coverage detected