mirror of
https://github.com/opencv/opencv.git
synced 2024-11-27 20:50:25 +08:00
Fix bug in ONNX Gather op
This commit is contained in:
parent
1067cd0649
commit
6226ea0085
@ -1395,6 +1395,7 @@ void ONNXImporter::populateNet(Net dstNet)
|
|||||||
|
|
||||||
inpShape.erase(inpShape.begin() + axis);
|
inpShape.erase(inpShape.begin() + axis);
|
||||||
layerParams.type = "Reshape";
|
layerParams.type = "Reshape";
|
||||||
|
layerParams.set("axis", 0);
|
||||||
layerParams.set("dim", DictValue::arrayInt(&inpShape[0], inpShape.size()));
|
layerParams.set("dim", DictValue::arrayInt(&inpShape[0], inpShape.size()));
|
||||||
node_proto.set_input(0, sliceLp.name);
|
node_proto.set_input(0, sliceLp.name);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user