From: Liubov Batanina Date: Thu, 6 Aug 2020 12:47:34 +0000 (+0300) Subject: Fix bug in ONNX Gather op X-Git-Tag: submit/tizen/20210224.033012~2^2~15^2~75^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6226ea00859eb49b8b83ea80db42aa6a2f58fa9a;p=platform%2Fupstream%2Fopencv.git Fix bug in ONNX Gather op --- diff --git a/modules/dnn/src/onnx/onnx_importer.cpp b/modules/dnn/src/onnx/onnx_importer.cpp index 407dcdc570..f6dc285fad 100644 --- a/modules/dnn/src/onnx/onnx_importer.cpp +++ b/modules/dnn/src/onnx/onnx_importer.cpp @@ -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); }