From a5641ca4a766ceca4cf92e855a38bf9512c0be77 Mon Sep 17 00:00:00 2001 From: SunAhong1993 Date: Mon, 1 Mar 2021 10:15:10 +0800 Subject: [PATCH] fix --- x2paddle/optimizer/optimizer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x2paddle/optimizer/optimizer.py b/x2paddle/optimizer/optimizer.py index 850677b..448449b 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: -- GitLab