#include "verify_program.hpp" #include #include #include struct test_gather : verify_program { migraphx::program create_program() const { migraphx::program p; migraphx::shape s{migraphx::shape::float_type, {3, 3}}; migraphx::shape s_indices{migraphx::shape::int32_type, {2, 2}}; std::vector indices{1, 2, 2, 1}; auto a0 = p.add_parameter("data", s); auto a1 = p.add_literal(migraphx::literal{s_indices, indices}); int axis = 0; p.add_instruction(migraphx::op::gather{axis}, a0, a1); return p; } };