diff --git a/x2paddle/optimizer/linear_pass.py b/x2paddle/optimizer/linear_pass.py index e0267f92b86128685d84f33ce2d4f8500da69ac3..e7a4a76a207ec76c3361381e4ff7c70c1fd238c9 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 8b80d8a09f36f56aa3bcecf45f036c47029b879d..9f10a7ed8aa987ae3ec283320ee40d8cd9fd24a6 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):