"docs/vscode:/vscode.git/clone" did not exist on "d654eff441aa7faafef279b798e64d5dd4f7de57"
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> ...@@ -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); instruction_ref dot_res = info.add_instruction(make_op(opd.op_name), a0, a1);
// squeeze the appended or prepended dimensions // 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) if(is_a_prepended)
{ {
dot_res = dot_res =
......
...@@ -3352,7 +3352,7 @@ TEST_CASE(matmulinteger_dyn_error) ...@@ -3352,7 +3352,7 @@ TEST_CASE(matmulinteger_dyn_error)
{ {
migraphx::onnx_options options; migraphx::onnx_options options;
options.default_dyn_dim_value = {1, 4, 0}; 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) 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