diff --git a/x2paddle/optimizer/optimizer.py b/x2paddle/optimizer/optimizer.py index 850677b5fcd2b3556762bbec2e4bc611e273d4f0..448449b68389ce577ddcaedac8115abc71f1cdf7 100644 --- a/x2paddle/optimizer/optimizer.py +++ b/x2paddle/optimizer/optimizer.py @@ -60,7 +60,7 @@ class GraphOptimizer(object): def optimize(self, graph): for pass_name in self.passes: pass_ = PassManager.lookup(pass_name)() - if pass_name.endswith("_eliminate_pass"): + if pass_name.endswith("_eliminate_pass") or pass_name.endswith("_conv2d_add_fuse_pass"): pass_.apply(graph) else: while True: