Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
27
def
create_buffer(t, data, shape):
28
a = array.array(t, data)
29
m = memoryview(a.tobytes())
30
return
m.cast(t, shape)
31
32
33
def
test_add_op():
Callers
1
test_add_op
Function · 0.70
Calls
2
array
Method · 0.80
cast
Method · 0.80
Tested by
no test coverage detected