Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ROCm/AMDMIGraphX
/ test_create_shape
Function
test_create_shape
test/py/test_shape.py:27–32 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
25
26
27
def
test_create_shape():
28
s = migraphx.shape(lens=[1, 64, 3, 3])
29
assert s.standard()
30
assert s.packed()
31
assert s.lens() == [1, 64, 3, 3]
32
assert s.ndim() == 4
33
34
35
def
test_create_shape_transposed():
Callers
1
test_shape.py
File · 0.85
Calls
5
lens
Method · 0.80
ndim
Method · 0.80
shape
Method · 0.45
standard
Method · 0.45
packed
Method · 0.45
Tested by
no test coverage detected