mirror of
https://github.com/opencv/opencv.git
synced 2025-06-11 20:09:23 +08:00
add support for tf.add_n operation
This commit is contained in:
parent
341e2fa72d
commit
a34c02a001
@ -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…
Reference in New Issue
Block a user