Commit a4615ecf authored by Brian Pickrell's avatar Brian Pickrell
Browse files

Onnx test fixes: corrected op name and restored the abs instruction mistakenly...

Onnx test fixes: corrected op name and restored the abs instruction mistakenly removed from reduce_L1 test file
parent 8dd8f565
...@@ -4629,7 +4629,7 @@ def reducel1_dyn_test(): ...@@ -4629,7 +4629,7 @@ def reducel1_dyn_test():
y = helper.make_tensor_value_info('y', TensorProto.FLOAT, [None]) y = helper.make_tensor_value_info('y', TensorProto.FLOAT, [None])
axes = [-2] axes = [-2]
node = onnx.helper.make_node('ReduceL1_dyn', node = onnx.helper.make_node('ReduceL1',
inputs=['x'], inputs=['x'],
outputs=['y'], outputs=['y'],
axes=axes, axes=axes,
......
...@@ -4431,7 +4431,8 @@ TEST_CASE(reducel1_dyn_test) ...@@ -4431,7 +4431,8 @@ TEST_CASE(reducel1_dyn_test)
auto l0 = mm->add_parameter( auto l0 = mm->add_parameter(
"x", "x",
migraphx::shape{migraphx::shape::float_type, {{3, 3, 0}, {3, 5, 0}, {4, 6, 5}, {5, 7, 6}}}); migraphx::shape{migraphx::shape::float_type, {{3, 3, 0}, {3, 5, 0}, {4, 6, 5}, {5, 7, 6}}});
auto sum_l0 = mm->add_instruction(migraphx::make_op("reduce_sum", {{"axes", {-2}}}), l0); auto abs_l0 = mm->add_instruction(migraphx::make_op("abs"), l0);
auto sum_l0 = mm->add_instruction(migraphx::make_op("reduce_sum", {{"axes", {-2}}}), abs_l0);
auto sq_l0 = mm->add_instruction(migraphx::make_op("squeeze", {{"axes", {-2}}}), sum_l0); auto sq_l0 = mm->add_instruction(migraphx::make_op("squeeze", {{"axes", {-2}}}), sum_l0);
mm->add_return({sq_l0}); mm->add_return({sq_l0});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment