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

Function test_create_shape_transposed

test/py/test_shape.py:35–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33
34
35def test_create_shape_transposed():
36 s = migraphx.shape(lens=[1, 64, 3, 3], permutation=[0, 2, 3, 1])
37 assert not s.standard()
38 assert s.packed()
39 assert s.transposed()
40 assert s.lens() == [1, 64, 3, 3]
41 assert s.strides() == [64 * 3 * 3, 1, 64 * 3, 64]
42 assert s.ndim() == 4
43
44
45def test_create_shape_broadcast():

Callers

nothing calls this directly

Calls 6

lensMethod · 0.80
ndimMethod · 0.80
shapeMethod · 0.45
standardMethod · 0.45
packedMethod · 0.45
transposedMethod · 0.45

Tested by

no test coverage detected