Commit 74d5607e authored by Shucai Xiao's avatar Shucai Xiao
Browse files

optimize the parse_gemm operator.

parent 84290a10
...@@ -501,7 +501,8 @@ struct onnx_parser ...@@ -501,7 +501,8 @@ struct onnx_parser
out_lens.back() = l2->get_shape().lens().back(); out_lens.back() = l2->get_shape().lens().back();
auto l3 = args[2]; auto l3 = args[2];
if(!std::equal( if(!std::equal(
out_lens.begin(), out_lens.end(), args[2]->get_shape().lens().begin())) out_lens.begin(), out_lens.end(), args[2]->get_shape().lens().begin()) &&
out_lens.size() > 2)
{ {
l3 = prog.add_instruction(op::multibroadcast{out_lens}, args[2]); l3 = prog.add_instruction(op::multibroadcast{out_lens}, args[2]);
} }
......
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