Commit a9b042f4 authored by charlie's avatar charlie
Browse files

Fix tests and parsing

parent 43708207
......@@ -83,7 +83,7 @@ struct parse_matmul : op_parser<parse_matmul>
instruction_ref dot_res = info.add_instruction(make_op(opd.op_name), a0, a1);
// squeeze the appended or prepended dimensions
int64_t num_axis = static_cast<int64_t>(dot_res->get_shape().lens().size());
int64_t num_axis = static_cast<int64_t>(dot_res->get_shape().ndim());
if(is_a_prepended)
{
dot_res =
......
......@@ -3352,7 +3352,7 @@ TEST_CASE(matmulinteger_dyn_error)
{
migraphx::onnx_options options;
options.default_dyn_dim_value = {1, 4, 0};
EXPECT(test::throws([&] { migraphx::parse_onnx("matmulinteger_dyn_error.onnx"); }));
EXPECT(test::throws([&] { migraphx::parse_onnx("matmulinteger_dyn_error.onnx", options); }));
}
TEST_CASE(max_test)
......
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