diff --git a/x2paddle/optimizer/pattern_matcher.py b/x2paddle/optimizer/pattern_matcher.py index 4487f5136e5c2543376634d35d528231576f4c11..0427c40025bd98cfe4ff1b4462f0f07d467ce523 100644 --- a/x2paddle/optimizer/pattern_matcher.py +++ b/x2paddle/optimizer/pattern_matcher.py @@ -173,12 +173,7 @@ class PatternMatcher(object): if layer.kernel != pattern_layer.kernel: return False subgraph_id2layers[layer_id] = layer -# for k, v in subgraph_id2layers.items(): -# print(k) -# print(v.kernel) -# print(v.outputs) -# print("=========") - + if pattern.edges_in.get(pattern_layer_id, 0) != 0: if len(pattern.edges_in[pattern_layer_id]) != \ len(graph.edges_in[layer_id]):