提交 d8bb8920 编写于 作者: S SunAhong1993

rename

上级 c57ae16c
...@@ -16,7 +16,7 @@ import torch ...@@ -16,7 +16,7 @@ import torch
import numpy as np import numpy as np
from x2paddle.core.op_mapper import OpMapper from x2paddle.core.op_mapper import OpMapper
from x2paddle.core.util import * from x2paddle.core.util import *
from x2paddle.core.paddle_graph import PaddleGraph from x2paddle.core.program import PaddleGraph
from x2paddle.op_mapper.pytorch2paddle import prim from x2paddle.op_mapper.pytorch2paddle import prim
from x2paddle.op_mapper.pytorch2paddle import aten from x2paddle.op_mapper.pytorch2paddle import aten
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
import numpy as np import numpy as np
from x2paddle.core.util import * from x2paddle.core.util import *
from x2paddle.core.paddle_graph import PaddleLayer, PaddleGraph from x2paddle.core.program import PaddleLayer, PaddleGraph
from x2paddle.optimizer.passes import Pass, Matcher, PyTorchMatcher from x2paddle.optimizer.passes import Pass, Matcher, PyTorchMatcher
......
...@@ -45,5 +45,5 @@ class GraphOptimizer(object): ...@@ -45,5 +45,5 @@ class GraphOptimizer(object):
self.current_pass = _pass self.current_pass = _pass
self.current_matcher = matcher self.current_matcher = matcher
graph, _ = self.run(graph) graph, _ = self.run(graph)
print("{} done!".format(pa.__class__.__name__)) print("{} done!".format(_pass.__class__.__name__))
return graph return graph
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from x2paddle.core.paddle_graph import PaddleGraph from x2paddle.core.program import PaddleGraph
class Pass(object): class Pass(object):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册