Skip to content

Commit 336627a

Browse files
committed
Merge pull request opencv#18048 from l-bat:onnx_torchvision
2 parents 1067cd0 + 6226ea0 commit 336627a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/dnn/src/onnx/onnx_importer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1395,6 +1395,7 @@ void ONNXImporter::populateNet(Net dstNet)
13951395

13961396
inpShape.erase(inpShape.begin() + axis);
13971397
layerParams.type = "Reshape";
1398+
layerParams.set("axis", 0);
13981399
layerParams.set("dim", DictValue::arrayInt(&inpShape[0], inpShape.size()));
13991400
node_proto.set_input(0, sliceLp.name);
14001401
}

0 commit comments

Comments
 (0)