Skip to content

Commit 23e71d1

Browse files
shubhamcodezsl-sergei
authored andcommitted
fixes opencv#17187 probably
Added Eltwise Layer Support
1 parent 03bee14 commit 23e71d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/dnn/src/onnx/onnx_importer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ void ONNXImporter::populateNet(Net dstNet)
653653
LayerParams constParams;
654654
constParams.name = layerParams.name + "/const";
655655
constParams.type = "Const";
656-
constParams.blobs.push_back(blob);
656+
constParams.blobs.push_back((isSub ? -1 : 1) * blob);
657657
int id = dstNet.addLayer(constParams.name, constParams.type, constParams);
658658
layer_id.insert(std::make_pair(constParams.name, LayerInfo(id, 0)));
659659
outShapes[constParams.name] = shape(blob);

0 commit comments

Comments
 (0)