fixes #17187 probably

Added Eltwise Layer Support
This commit is contained in:
Shubham Singh 2020-06-23 14:36:32 +05:30 committed by Sergey Slashchinin
parent 03bee14372
commit 23e71d1aa2

View File

@ -653,7 +653,7 @@ void ONNXImporter::populateNet(Net dstNet)
LayerParams constParams;
constParams.name = layerParams.name + "/const";
constParams.type = "Const";
constParams.blobs.push_back(blob);
constParams.blobs.push_back((isSub ? -1 : 1) * blob);
int id = dstNet.addLayer(constParams.name, constParams.type, constParams);
layer_id.insert(std::make_pair(constParams.name, LayerInfo(id, 0)));
outShapes[constParams.name] = shape(blob);