(self)
| 47 | assert np.all(host_buf == 4) |
| 48 | |
| 49 | def test_numpy(self): |
| 50 | with DeviceArray((2, 2), dtype=np.float32) as arr: |
| 51 | arr.copy_from(np.ones((2, 2), dtype=np.float32) * 4) |
| 52 | |
| 53 | v = DeviceView(arr.ptr, arr.shape, arr.dtype) |
| 54 | assert np.all(v.numpy() == 4) |
| 55 | |
| 56 | |
| 57 | class ResizeTestCase: |
nothing calls this directly
no test coverage detected