add support for tf.add_n operation

pull/14225/head
zuoshaobo 6 years ago
parent 341e2fa72d
commit a34c02a001
  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