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

Function test_output

test/py/test_array.py:104–120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

102
103
104def test_output():
105 p = migraphx.parse_onnx("conv_relu_maxpool_test.onnx")
106 p.compile(migraphx.get_target("gpu"))
107
108 r1 = run(p)[-1]
109 r2 = run(p)[-1]
110 assert_eq(r1, r2)
111 assert_eq(r1.tolist(), r2.tolist())
112
113 check_argument(r1)
114 check_argument(r2)
115
116 m1 = memoryview(r1)
117 m2 = memoryview(r2)
118
119 check_shapes(r1, m1)
120 check_shapes(r2, m2)
121
122
123test_input()

Callers 1

test_array.pyFile · 0.85

Calls 6

assert_eqFunction · 0.85
check_argumentFunction · 0.85
get_targetMethod · 0.80
runFunction · 0.70
check_shapesFunction · 0.70
compileMethod · 0.45

Tested by

no test coverage detected