Fix bug in ONNX Gather op

This commit is contained in:
Liubov Batanina 2020-08-06 15:47:34 +03:00
parent 1067cd0649
commit 6226ea0085

View File

@ -1395,6 +1395,7 @@ void ONNXImporter::populateNet(Net dstNet)
inpShape.erase(inpShape.begin() + axis);
layerParams.type = "Reshape";
layerParams.set("axis", 0);
layerParams.set("dim", DictValue::arrayInt(&inpShape[0], inpShape.size()));
node_proto.set_input(0, sliceLp.name);
}