Commit b1301bb4 authored by Shucai Xiao's avatar Shucai Xiao
Browse files

refine a test example

parent 19e87ea1
...@@ -57,8 +57,8 @@ TEST_CASE(tanh_shape) ...@@ -57,8 +57,8 @@ TEST_CASE(tanh_shape)
{ {
if(ins->name() == "hip::allocate") if(ins->name() == "hip::allocate")
{ {
migraphx::shape wrong_s{migraphx::shape::float_type, {3, 2}, {1, 3}}; migraphx::shape new_s{migraphx::shape::float_type, {3, 2}, {1, 3}};
ins->replace(wrong_s); migraphx::instruction::replace(ins, ins->get_operator(), new_s, ins->inputs());
} }
} }
EXPECT(p1 != p2); EXPECT(p1 != p2);
......
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