MCPcopy Create free account
hub / github.com/apache/arrow / make_array

Function make_array

python/pyarrow/tests/test_dlpack.py:386–390  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

384 np.float16, np.float32, np.float64])
385def 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.

Callers 2

test_tensor_from_dlpackFunction · 0.85
ToStringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected