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

Function test_shape

test/py/test_array.py:83–88  ·  view source on GitHub ↗
(shape)

Source from the content-addressed store, hash-verified

81
82
83def test_shape(shape):
84 data = list(range(nelements(shape)))
85 m = create_buffer('f', data, shape)
86 a = migraphx.argument(m)
87 check_shapes(a, m)
88 assert_eq(a.tolist(), data)
89
90
91def test_input():

Callers 1

test_inputFunction · 0.85

Calls 6

assert_eqFunction · 0.85
argumentMethod · 0.80
nelementsFunction · 0.70
create_bufferFunction · 0.70
check_shapesFunction · 0.70
rangeFunction · 0.50

Tested by

no test coverage detected