Commit e39d55d1 authored by Khalique's avatar Khalique
Browse files

revert brace change, changed type for output_alias

parent 3c089942
......@@ -17,7 +17,7 @@ struct hip_clip
shape compute_shape(std::vector<shape> inputs) const;
argument
compute(context& ctx, const shape& output_shape, const std::vector<argument>& args) const;
int output_alias(const std::vector<shape>& shapes) const { return shapes.size() - 1; }
std::ptrdiff_t output_alias(const std::vector<shape>& shapes) const { return shapes.size() - 1; }
};
} // namespace gpu
......
......@@ -1315,7 +1315,7 @@ struct test_clip : verify_program<test_clip>
{
migraphx::program p;
auto x = p.add_parameter("x", migraphx::shape{migraphx::shape::float_type, {3}});
p.add_instruction(migraphx::op::clip(6.0, 0.0), x);
p.add_instruction(migraphx::op::clip{6.0, 0.0}, x);
return p;
}
};
......
......@@ -798,7 +798,7 @@ TEST_CASE(clip_test)
{
migraphx::program p;
auto l0 = p.add_parameter("0", migraphx::shape{migraphx::shape::float_type, {3}});
p.add_instruction(migraphx::op::clip(6.0, 0.0), l0);
p.add_instruction(migraphx::op::clip{6.0, 0.0}, l0);
auto prog = migraphx::parse_onnx("clip_test.onnx");
EXPECT(p == prog);
......
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