From a7fdf1da3a8485dbf7a6cfae8e709ee51377479d Mon Sep 17 00:00:00 2001 From: SunAhong1993 Date: Tue, 11 Aug 2020 20:32:37 +0800 Subject: [PATCH] fix --- x2paddle/optimizer/linear_pass.py | 1 - x2paddle/optimizer/passes.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/x2paddle/optimizer/linear_pass.py b/x2paddle/optimizer/linear_pass.py index e0267f9..e7a4a76 100644 --- a/x2paddle/optimizer/linear_pass.py +++ b/x2paddle/optimizer/linear_pass.py @@ -20,7 +20,6 @@ from x2paddle.optimizer.passes import Pass, Matcher, PyTorchMatcher class LinearPass(Pass): def __init__(self): - self.linear_index = 0 super(LinearPass, self).__init__() def build_pattern(self): diff --git a/x2paddle/optimizer/passes.py b/x2paddle/optimizer/passes.py index 8b80d8a..9f10a7e 100644 --- a/x2paddle/optimizer/passes.py +++ b/x2paddle/optimizer/passes.py @@ -23,7 +23,7 @@ class Pass(object): class Matcher(object): def __init__(self): - self.unique_id_layer = dict() + pass class PyTorchMatcher(Matcher): -- GitLab