#include TEST_CASE(softplus_nd_test) { migraphx::program p; auto* mm = p.get_main_module(); std::vector input_lens{3, 4, 5}; auto input_type = migraphx::shape::half_type; auto x = mm->add_parameter("x", migraphx::shape{input_type, input_lens}); auto mb_ones = mm->add_instruction(migraphx::make_op("multibroadcast", {{"out_lens", input_lens}}), mm->add_literal(migraphx::literal{migraphx::shape{input_type}, {1}})); auto exp = mm->add_instruction(migraphx::make_op("exp"), x); auto add = mm->add_instruction(migraphx::make_op("add"), exp, mb_ones); mm->add_instruction(migraphx::make_op("log"), add); auto prog = optimize_onnx("softplus_nd_test.onnx"); EXPECT(p == prog); }