mirror of
https://github.com/opencv/opencv.git
synced 2025-08-06 06:26:29 +08:00
Merge pull request #18317 from sl-sergei:restored_pr_17629
This commit is contained in:
commit
4b24ddd70d
@ -680,7 +680,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);
|
||||
|
Loading…
Reference in New Issue
Block a user