Skip to content

Commit

Permalink
Disable bgemm when weight_mat->c == 1 in armv7
Browse files Browse the repository at this point in the history
  • Loading branch information
daquexian committed Aug 21, 2019
1 parent 934d215 commit ce6e843
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dabnn/layers/BinConv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,15 @@ bool BinConv::direct_conv_compatible() const {

bool BinConv::gemm_compatible() const {
#ifdef __ARM_NEON
#ifdef __aarch64__
return true;
#else
// If weight_mat->c == 1 (weight_mat has 64 channels), we use bconv_64
// in aarch64 for the fastest speed, however, bconv_64 is not implemented
// in armv7
// TODO: Implement bconv_64 for armv7
return weight_mat->c != 1;
#endif
#else
return false;
#endif
Expand Down

0 comments on commit ce6e843

Please sign in to comment.