#include "verify_program.hpp" #include #include #include struct test_convert : verify_program { migraphx::program create_program() const { migraphx::program p; auto* mm = p.get_main_module(); migraphx::shape sa{migraphx::shape::float_type, {8, 24}}; migraphx::shape sb{migraphx::shape::float_type, {24, 6}}; auto pa = mm->add_parameter("a", sa); auto pb = mm->add_parameter("b", sb); auto ia = mm->add_instruction(migraphx::op::convert{migraphx::shape::int8_type}, pa); auto ib = mm->add_instruction(migraphx::op::convert{migraphx::shape::int8_type}, pb); mm->add_instruction(migraphx::op::quant_dot{}, ia, ib); return p; }; };