Merge pull request #14225 from zuoshaobo:my3.4

pull/14228/head
Alexander Alekhin 6 years ago
commit df1f62b34c
  1. 2
      modules/dnn/src/tensorflow/tf_importer.cpp

@ -942,7 +942,7 @@ void TFImporter::populateNet(Net dstNet)
if (getDataLayout(name, data_layouts) == DATA_LAYOUT_UNKNOWN)
data_layouts[name] = DATA_LAYOUT_NHWC;
}
else if (type == "BiasAdd" || type == "Add" || type == "Sub")
else if (type == "BiasAdd" || type == "Add" || type == "Sub" || type=="AddN")
{
bool haveConst = false;
for(int ii = 0; !haveConst && ii < layer.input_size(); ++ii)

Loading…
Cancel
Save