Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
X2Paddle
提交
981bdfaa
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看板
提交
981bdfaa
编写于
9月 19, 2020
作者:
C
channingss
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix the bug
上级
3e0a37d1
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
5 addition
and
5 deletion
+5
-5
x2paddle/op_mapper/pytorch2paddle/aten.py
x2paddle/op_mapper/pytorch2paddle/aten.py
+5
-5
x2paddle/optimizer/pytorch_optimizer/__init__.py
x2paddle/optimizer/pytorch_optimizer/__init__.py
+0
-0
未找到文件。
x2paddle/op_mapper/pytorch2paddle/aten.py
浏览文件 @
981bdfaa
...
...
@@ -423,7 +423,7 @@ def aten_avg_pool2d(mapper, graph, node):
graph
.
add_layer
(
"prim.assert"
,
inputs
=
{},
outputs
=
[
inputs_name
[
6
]],
outputs
=
[
inputs_name
[
6
]
+
"_assert"
],
type
=
"eq"
,
key
=
mapper
.
attrs
[
inputs_name
[
6
]],
value
=
None
)
...
...
@@ -1473,7 +1473,7 @@ def aten_flatten(mapper, graph, node):
graph
.
add_layer
(
"prim.assert"
,
inputs
=
{},
outputs
=
[
inputs_name
[
1
]],
outputs
=
[
inputs_name
[
1
]
+
"_assert"
],
type
=
'eq'
,
key
=
mapper
.
attrs
[
inputs_name
[
1
]],
value
=
1
)
...
...
@@ -1481,7 +1481,7 @@ def aten_flatten(mapper, graph, node):
graph
.
add_layer
(
"prim.assert"
,
inputs
=
{},
outputs
=
[
inputs_name
[
2
]],
outputs
=
[
inputs_name
[
2
]
+
"_assert"
],
type
=
'eq'
,
key
=
mapper
.
attrs
[
inputs_name
[
2
]],
value
=-
1
)
...
...
@@ -2378,7 +2378,7 @@ def aten_max_pool2d(mapper, graph, node):
graph
.
add_layer
(
"prim.assert"
,
inputs
=
{},
outputs
=
[
inputs_name
[
4
]],
outputs
=
[
inputs_name
[
4
]
+
"_assert"
],
type
=
"eq"
,
key
=
mapper
.
attrs
[
inputs_name
[
4
]],
value
=
[
1
,
[
1
,
1
]])
...
...
@@ -3912,7 +3912,7 @@ def aten_upsample_bilinear2d(mapper, graph, node):
type
=
"eq"
)
layer_inputs
[
"scale_factor"
]
=
inputs_name
[
3
]
layer_attrs
[
"align_mode"
]
=
0
layer_attrs
[
"mode"
]
=
"bilinear"
layer_attrs
[
"mode"
]
=
string
(
"bilinear"
)
graph
.
add_layer
(
"paddle.nn.functional.interpolate"
,
inputs
=
layer_inputs
,
...
...
x2paddle/optimizer/pytorch_optimizer/__init__.py
0 → 100644
浏览文件 @
981bdfaa
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录