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

Function test_nonzero

test/py/test_gpu.py:81–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79
80
81def test_nonzero():
82 p = migraphx.parse_onnx("nonzero_dynamic_test.onnx")
83 print(p)
84 print("Compiling ...")
85 p.compile(migraphx.get_target("gpu"))
86 print(p)
87 params = {}
88
89 shapes = p.get_parameter_shapes()
90 params["data"] = migraphx.create_argument(
91 migraphx.shape(type='bool_type', lens=shapes["data"].lens()),
92 [1, 1, 0, 1])
93
94 r = p.run(params)
95 print(r)
96
97
98def test_fp16_imagescaler():

Callers 1

test_gpu.pyFile · 0.70

Calls 7

get_targetMethod · 0.80
lensMethod · 0.80
printFunction · 0.50
compileMethod · 0.45
get_parameter_shapesMethod · 0.45
shapeMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected