fix onnx normalize expand ghost shape

This commit is contained in:
nihuini
2021-03-03 17:21:45 +08:00
parent c910574b5b
commit f7cbcaa72b
+4
View File
@@ -1204,6 +1204,10 @@ static void fuse_normalize(onnx::GraphProto* mutable_graph, std::map<std::string
node_reference[node_shape->output(0)] -= 1;
}
node_reference[node3->output(0)] -= 1;
if (node3->input_size() == 2)
{
node_reference[node3->input(1)] -= 1;
}
blob_names.erase(node->output(0));
blob_names.erase(node2->output(0));