Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
X2Paddle
提交
5d9d02db
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看板
提交
5d9d02db
编写于
8月 15, 2022
作者:
W
wjj19950828
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fixed bug
上级
f0d02885
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
6 addition
and
5 deletion
+6
-5
tests/onnx/test_auto_scan_averagepool_10.py
tests/onnx/test_auto_scan_averagepool_10.py
+5
-4
tests/onnx/test_auto_scan_averagepool_7.py
tests/onnx/test_auto_scan_averagepool_7.py
+1
-1
未找到文件。
tests/onnx/test_auto_scan_averagepool_10.py
浏览文件 @
5d9d02db
...
@@ -30,8 +30,9 @@ class TestAveragePoolConvert(OPConvertAutoScanTest):
...
@@ -30,8 +30,9 @@ class TestAveragePoolConvert(OPConvertAutoScanTest):
input_shape
=
draw
(
input_shape
=
draw
(
st
.
lists
(
st
.
lists
(
st
.
integers
(
st
.
integers
(
min_value
=
10
,
max_value
=
20
),
min_size
=
4
,
max_size
=
4
))
min_value
=
20
,
max_value
=
30
),
min_size
=
4
,
max_size
=
4
))
# BS = 1
input_shape
[
0
]
=
1
kernel_size
=
draw
(
kernel_size
=
draw
(
st
.
lists
(
st
.
lists
(
st
.
integers
(
st
.
integers
(
...
@@ -40,7 +41,7 @@ class TestAveragePoolConvert(OPConvertAutoScanTest):
...
@@ -40,7 +41,7 @@ class TestAveragePoolConvert(OPConvertAutoScanTest):
strides
=
draw
(
strides
=
draw
(
st
.
lists
(
st
.
lists
(
st
.
integers
(
st
.
integers
(
min_value
=
1
,
max_value
=
5
),
min_size
=
2
,
max_size
=
2
))
min_value
=
1
,
max_value
=
2
),
min_size
=
2
,
max_size
=
2
))
if
draw
(
st
.
booleans
()):
if
draw
(
st
.
booleans
()):
auto_pad
=
"NOTSET"
auto_pad
=
"NOTSET"
...
@@ -96,7 +97,7 @@ class TestAveragePoolConvert(OPConvertAutoScanTest):
...
@@ -96,7 +97,7 @@ class TestAveragePoolConvert(OPConvertAutoScanTest):
return
(
config
,
attrs
)
return
(
config
,
attrs
)
def
test
(
self
):
def
test
(
self
):
self
.
run_and_statis
(
max_examples
=
30
)
self
.
run_and_statis
(
max_examples
=
30
0
)
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
...
...
tests/onnx/test_auto_scan_averagepool_7.py
浏览文件 @
5d9d02db
...
@@ -40,7 +40,7 @@ class TestAveragePoolConvert(OPConvertAutoScanTest):
...
@@ -40,7 +40,7 @@ class TestAveragePoolConvert(OPConvertAutoScanTest):
strides
=
draw
(
strides
=
draw
(
st
.
lists
(
st
.
lists
(
st
.
integers
(
st
.
integers
(
min_value
=
1
,
max_value
=
5
),
min_size
=
2
,
max_size
=
2
))
min_value
=
1
,
max_value
=
2
),
min_size
=
2
,
max_size
=
2
))
if
draw
(
st
.
booleans
()):
if
draw
(
st
.
booleans
()):
auto_pad
=
"NOTSET"
auto_pad
=
"NOTSET"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录