Skip to content

Commit

Permalink
Fix the wrong index
Browse files Browse the repository at this point in the history
  • Loading branch information
daquexian committed Aug 25, 2019
1 parent ea9909e commit 3fe4210
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/onnx2bnn/OnnxConverter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ void OnnxConverter::CalculateCoeff(const ONNX_NAMESPACE::NodeProto &node,
coeff_a_data[i];
}
if (node2.input_size() == 2) {
const auto &bias = onnx_float_tensors_[node2.input(2)];
const auto &bias = onnx_float_tensors_[node2.input(1)];

FORZ(i, coeff_b_data.size()) {
coeff_b_data[i] += coeff_a_data[i] * bias.data[i];
Expand Down

0 comments on commit 3fe4210

Please sign in to comment.