(self)
| 90 | assert shape == np.from_dlpack(x).shape |
| 91 | |
| 92 | def test_dlpack_device(self): |
| 93 | x = np.arange(5) |
| 94 | assert x.__dlpack_device__() == (1, 0) |
| 95 | y = np.from_dlpack(x) |
| 96 | assert y.__dlpack_device__() == (1, 0) |
| 97 | z = y[::2] |
| 98 | assert z.__dlpack_device__() == (1, 0) |
| 99 | |
| 100 | def dlpack_deleter_exception(self): |
| 101 | x = np.arange(5) |
nothing calls this directly
no test coverage detected