#include "verify_program.hpp" #include #include #include struct test_concat_transpose : verify_program { migraphx::program create_program() const { migraphx::program p; auto* mm = p.get_main_module(); int axis = 1; migraphx::shape s0{migraphx::shape::int32_type, {2, 2}}; migraphx::shape s1{migraphx::shape::int32_type, {3, 2}}; migraphx::shape s2{migraphx::shape::int32_type, {2, 4}}; auto l0 = mm->add_parameter("x", s0); auto lp1 = mm->add_parameter("y", s1); auto l1 = mm->add_instruction(migraphx::make_op("transpose", {{"permutation", {1, 0}}}), lp1); auto l2 = mm->add_parameter("z", s2); mm->add_instruction(migraphx::make_op("concat", {{"axis", axis}}), l0, l1, l2); return p; } };