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

Function test_input

test/py/test_array.py:91–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

89
90
91def test_input():
92 if sys.version_info >= (3, 0):
93 test_shape([4])
94 test_shape([2, 3])
95 else:
96 data = list(range(4))
97 m = create_buffer('f', data, [4])
98 a1 = migraphx.argument(m)
99 a2 = migraphx.argument(bytearray(a1))
100 check_shapes(a2, m)
101 assert_eq(a1.tolist(), m.tolist())
102
103
104def test_output():

Callers 1

test_array.pyFile · 0.85

Calls 6

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

Tested by

no test coverage detected