Merge pull request #18048 from l-bat:onnx_torchvision

pull/17919/head
Alexander Alekhin 5 years ago
commit 336627a776
  1. 1
      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);
}

Loading…
Cancel
Save