Skip to content

Commit

Permalink
fined im2col mat size
Browse files Browse the repository at this point in the history
  • Loading branch information
daquexian committed May 29, 2019
1 parent 1dbc2ca commit 56a3847
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dabnn/layers/BinConv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ BinConv::BinConv(NetCP net, const std::string &name, css input, css weight,
}
const auto col_mat_name = "col_mat";
if (mat_map.find(col_mat_name) == mat_map.end()) {
const auto len = output_mat->h * output_mat->w * weight_mat->h * weight_mat->w * input_mat->elem_c;
mat_map[col_mat_name] =
std::make_shared<Mat>(999999, bnn::DataType::Bit);
std::make_shared<Mat>(len, bnn::DataType::Bit);
}

padded_mat = mat(pad_name);
Expand Down

0 comments on commit 56a3847

Please sign in to comment.