Skip to content

Commit

Permalink
Add comments for dabnn optimizer
Browse files Browse the repository at this point in the history
  • Loading branch information
daquexian committed May 15, 2019
1 parent da4e14a commit d55df70
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/onnx2bnn/OnnxConverter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,12 @@ void OnnxConverter::Convert(const ONNX_NAMESPACE::ModelProto &model_proto,
const bool strict) {
GOOGLE_PROTOBUF_VERIFY_VERSION;

// We recognize binary convolutions in our custom ONNX optimizers.
// Please check out
// https://github.com/daquexian/onnx/blob/optimizer_for_bnn/onnx/optimizer/passes/dabnn_bconv_soft.h
// and
// https://github.com/daquexian/onnx/blob/optimizer_for_bnn/onnx/optimizer/passes/dabnn_bconv_strict.h
// for details.
vector<string> optimizers{"eliminate_nop_pad", "dabnn_bconv_strict"};
if (!strict) {
optimizers.push_back("dabnn_bconv_soft");
Expand Down

0 comments on commit d55df70

Please sign in to comment.