提交 a7fdf1da 编写于 作者: S SunAhong1993

fix

上级 5bc026f0
...@@ -20,7 +20,6 @@ from x2paddle.optimizer.passes import Pass, Matcher, PyTorchMatcher ...@@ -20,7 +20,6 @@ from x2paddle.optimizer.passes import Pass, Matcher, PyTorchMatcher
class LinearPass(Pass): class LinearPass(Pass):
def __init__(self): def __init__(self):
self.linear_index = 0
super(LinearPass, self).__init__() super(LinearPass, self).__init__()
def build_pattern(self): def build_pattern(self):
......
...@@ -23,7 +23,7 @@ class Pass(object): ...@@ -23,7 +23,7 @@ class Pass(object):
class Matcher(object): class Matcher(object):
def __init__(self): def __init__(self):
self.unique_id_layer = dict() pass
class PyTorchMatcher(Matcher): class PyTorchMatcher(Matcher):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册