Skip to content

Commit

Permalink
Fix build error in linux
Browse files Browse the repository at this point in the history
  • Loading branch information
daquexian committed Nov 10, 2019
1 parent c7c41be commit 9e375c9
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 @@ -239,7 +239,7 @@ std::vector<std::string> OnnxConverter::Convert(
shape.push_back(1);
continue;
}
const auto &dim = dims[i];
const auto &dim = dims.Get(i);
if (dim.value_case() ==
ONNX_NAMESPACE::TensorShapeProto_Dimension::kDimValue) {
shape.push_back(static_cast<uint32_t>(dim.dim_value()));
Expand Down

0 comments on commit 9e375c9

Please sign in to comment.