Skip to content

Commit

Permalink
paste oops
Browse files Browse the repository at this point in the history
  • Loading branch information
nihui committed Apr 7, 2018
1 parent 2cc6abd commit b27cd92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/onnx/onnx2ncnn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ static std::vector<float> get_node_attr_af(const onnx::NodeProto& node, const ch
if (attr.name() == key)
{
v.resize(attr.floats_size());
for (int j=0; j<attr.ints_size(); j++)
for (int j=0; j<attr.floats_size(); j++)
{
v[j] = attr.floats(j);
}
Expand Down

0 comments on commit b27cd92

Please sign in to comment.