Browse Source

paste oops

tags/20180427
nihui 8 years ago
parent
commit
b27cd92dfa
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      tools/onnx/onnx2ncnn.cpp

+ 1
- 1
tools/onnx/onnx2ncnn.cpp View File

@@ -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);
}


Loading…
Cancel
Save