1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

AddV2 from TensorFlow

This commit is contained in:
Dmitry Kurtaev
2019-12-30 20:06:58 +03:00
committed by Alexander Alekhin
parent 010cc2e58a
commit 5b5c2093bb
2 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -1000,7 +1000,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" || type=="AddN")
else if (type == "BiasAdd" || type == "Add" || type == "AddV2" || type == "Sub" || type=="AddN")
{
bool haveConst = false;
for(int ii = 0; !haveConst && ii < layer.input_size(); ++ii)