Commit 73ca0f5b authored by Shucai Xiao's avatar Shucai Xiao
Browse files

clang format

parent 760dd7b6
......@@ -513,9 +513,8 @@ TEST_CASE(shape_gather_test)
TEST_CASE(transpose_gather_test)
{
migraphx::program p;
auto make_contiguous = [&p](migraphx::instruction_ref ins)
{
if (ins->get_shape().standard())
auto make_contiguous = [&p](migraphx::instruction_ref ins) {
if(ins->get_shape().standard())
{
return ins;
}
......@@ -529,7 +528,8 @@ TEST_CASE(transpose_gather_test)
auto tr_data = p.add_instruction(migraphx::op::transpose{{0, 2, 1, 3}}, data);
auto tr_ind = p.add_instruction(migraphx::op::transpose{{0, 2, 1, 3}}, ind);
int axis = 1;
p.add_instruction(migraphx::op::gather{axis}, make_contiguous(tr_data), make_contiguous(tr_ind));
p.add_instruction(
migraphx::op::gather{axis}, make_contiguous(tr_data), make_contiguous(tr_ind));
auto prog = migraphx::parse_onnx("transpose_gather.onnx");
......
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