Skip to content

Commit

Permalink
Fix bug: output_mat is not inited in bgemm
Browse files Browse the repository at this point in the history
  • Loading branch information
daquexian committed May 29, 2019
1 parent 8559844 commit 5af2ec3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dabnn/layers/BinConv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ void BinConv::forward_impl() const {
pad(*input_mat, pad_h, pad_w, *padded_mat);
bconv_3x3(*padded_mat, *weight_mat, *output_mat, stride_h);
} else if (gemm_compatible()) {
output_mat->fill<float>(0.f);
bnn::im2col(*input_mat, weight_mat->h, weight_mat->w, pad_h, pad_w,
stride_h, stride_w, 1, 1, *col_mat);
const int m = weight_mat->n;
Expand Down

0 comments on commit 5af2ec3

Please sign in to comment.