提交 23e71d1a 编写于 作者: S Shubham Singh 提交者: Sergey Slashchinin

fixes #17187 probably

Added Eltwise Layer Support
上级 03bee143
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册