mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 17:44:04 +08:00
Merge pull request #15911 from l-bat:fix_reducel2
This commit is contained in:
commit
1f57eb93fd
@ -784,6 +784,8 @@ void ONNXImporter::populateNet(Net dstNet)
|
|||||||
CV_Assert_N(node_proto.input_size() == 1, layerParams.has("axes"));
|
CV_Assert_N(node_proto.input_size() == 1, layerParams.has("axes"));
|
||||||
CV_Assert(graph_proto.node_size() > li + 1 && graph_proto.node(li + 1).op_type() == "Div");
|
CV_Assert(graph_proto.node_size() > li + 1 && graph_proto.node(li + 1).op_type() == "Div");
|
||||||
++li;
|
++li;
|
||||||
|
node_proto = graph_proto.node(li);
|
||||||
|
layerParams.name = node_proto.output(0);
|
||||||
layerParams.type = "Normalize";
|
layerParams.type = "Normalize";
|
||||||
|
|
||||||
DictValue axes_dict = layerParams.get("axes");
|
DictValue axes_dict = layerParams.get("axes");
|
||||||
|
Loading…
Reference in New Issue
Block a user