MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / create_buffer

Function create_buffer

test/py/test_module_construct.py:27–30  ·  view source on GitHub ↗
(t, data, shape)

Source from the content-addressed store, hash-verified

25
26
27def create_buffer(t, data, shape):
28 a = array.array(t, data)
29 m = memoryview(a.tobytes())
30 return m.cast(t, shape)
31
32
33def test_add_op():

Callers 1

test_add_opFunction · 0.70

Calls 2

arrayMethod · 0.80
castMethod · 0.80

Tested by

no test coverage detected