Skip to content

Commit

Permalink
Support gemm in last layer
Browse files Browse the repository at this point in the history
  • Loading branch information
daquexian committed Oct 23, 2019
1 parent d1c6ad5 commit dd4c7f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions tools/onnx2bnn/OnnxConverter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ std::vector<std::string> OnnxConverter::Convert(
// for details.
vector<string> optimizers{"eliminate_nop_pad",
"extract_constant_to_initializer",
"dabnn_convert_gemm_with_reshape_or_flatten_to_conv_and_reshape",
"dabnn_bconv_strict"};
if (level == Level::kModerate || level == Level::kAggressive) {
optimizers.push_back("dabnn_bconv_moderate");
Expand Down

0 comments on commit dd4c7f8

Please sign in to comment.