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

Onnx test fixes: Removed a superfluous "abs" op from reducel1_dyn_test....

Onnx test fixes: Removed a superfluous "abs" op from reducel1_dyn_test. Changed output of reducemax_dyn_test to be dynamic.  Includes an updated Onnx test file
parent 15eba3f4
......@@ -4700,7 +4700,7 @@ def reducemax_test():
@onnx_test
def reducemax_dyn_test():
x = helper.make_tensor_value_info('x', TensorProto.FLOAT, [None, 4, 5, 6])
y = helper.make_tensor_value_info('y', TensorProto.FLOAT, [3, 4, 6])
y = helper.make_tensor_value_info('y', TensorProto.FLOAT, [None, 4, 6])
axes = [2]
node = onnx.helper.make_node('ReduceMax',
......
......@@ -4431,8 +4431,7 @@ TEST_CASE(reducel1_dyn_test)
auto l0 = mm->add_parameter(
"x",
migraphx::shape{migraphx::shape::float_type, {{3, 3, 0}, {3, 5, 0}, {4, 6, 5}, {5, 7, 6}}});
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 sum_l0 = mm->add_instruction(migraphx::make_op("reduce_sum", {{"axes", {-2}}}), l0);
auto sq_l0 = mm->add_instruction(migraphx::make_op("squeeze", {{"axes", {-2}}}), sum_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