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