Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
X2Paddle
提交
d8bb8920
X
X2Paddle
项目概览
PaddlePaddle
/
X2Paddle
大约 1 年 前同步成功
通知
328
Star
698
Fork
167
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
26
列表
看板
标记
里程碑
合并请求
4
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
X2Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
26
Issue
26
列表
看板
标记
里程碑
合并请求
4
合并请求
4
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
d8bb8920
编写于
8月 11, 2020
作者:
S
SunAhong1993
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
rename
上级
c57ae16c
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
4 addition
and
4 deletion
+4
-4
x2paddle/op_mapper/pytorch2paddle/pytorch_op_mapper.py
x2paddle/op_mapper/pytorch2paddle/pytorch_op_mapper.py
+1
-1
x2paddle/optimizer/linear_pass.py
x2paddle/optimizer/linear_pass.py
+1
-1
x2paddle/optimizer/optimizer.py
x2paddle/optimizer/optimizer.py
+1
-1
x2paddle/optimizer/passes.py
x2paddle/optimizer/passes.py
+1
-1
未找到文件。
x2paddle/op_mapper/pytorch2paddle/pytorch_op_mapper.py
浏览文件 @
d8bb8920
...
@@ -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.p
addle_graph
import
PaddleGraph
from
x2paddle.core.p
rogram
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
...
...
x2paddle/optimizer/linear_pass.py
浏览文件 @
d8bb8920
...
@@ -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.p
addle_graph
import
PaddleLayer
,
PaddleGraph
from
x2paddle.core.p
rogram
import
PaddleLayer
,
PaddleGraph
from
x2paddle.optimizer.passes
import
Pass
,
Matcher
,
PyTorchMatcher
from
x2paddle.optimizer.passes
import
Pass
,
Matcher
,
PyTorchMatcher
...
...
x2paddle/optimizer/optimizer.py
浏览文件 @
d8bb8920
...
@@ -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
x2paddle/optimizer/passes.py
浏览文件 @
d8bb8920
...
@@ -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.p
addle_graph
import
PaddleGraph
from
x2paddle.core.p
rogram
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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录