()
| 384 | np.float16, np.float32, np.float64]) |
| 385 | def test_tensor_from_dlpack(np_type): |
| 386 | def make_array(): |
| 387 | base = np.arange(24, dtype=np_type).reshape((4, 6)) |
| 388 | array = base[::2, 1::2] |
| 389 | assert not array.flags['C_CONTIGUOUS'] |
| 390 | return array |
| 391 | |
| 392 | # Non-contiguous, strided slice: DLPack carries explicit strides, so this |
| 393 | # should not need a copy on export. |
no outgoing calls
no test coverage detected