Skip to content

Commit

Permalink
Fix some missing cases for binconv method
Browse files Browse the repository at this point in the history
  • Loading branch information
daquexian committed Aug 22, 2019
1 parent c472484 commit 28ec3a5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dabnn/layers/BinConv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,13 @@ BinConv::Method BinConv::method() const {
return Method::DIRECT_CONV;
} else if (gemm_compatible()) {
return Method::BGEMM;
} else {
} else if (input_mat->elem_c == 64) {
return Method::BCONV_NAIVE;
} else {
return Method::BGEMM_NAIVE;
}
} else {
if (weight_mat->c == 1) {
if (input_mat->elem_c == 64) {
return Method::BCONV_NAIVE;
} else {
return Method::BGEMM_NAIVE;
Expand Down

0 comments on commit 28ec3a5

Please sign in to comment.