Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MindSpore
akg
提交
b607ea63
A
akg
项目概览
MindSpore
/
akg
通知
58
Star
7
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
akg
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
b607ea63
编写于
7月 01, 2020
作者:
B
brovensmile
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[CI] common_run return False when some arg run failed
上级
be2f98cf
变更
11
显示空白变更内容
内联
并排
Showing
11 changed file
with
18 addition
and
18 deletion
+18
-18
tests/common/base.py
tests/common/base.py
+1
-1
tests/operators/cube/test_conv_001.py
tests/operators/cube/test_conv_001.py
+1
-1
tests/operators/vector/test_apply_adagrad_001.py
tests/operators/vector/test_apply_adagrad_001.py
+1
-1
tests/operators/vector/test_apply_rms_prop_001.py
tests/operators/vector/test_apply_rms_prop_001.py
+1
-1
tests/operators/vector/test_batchmatmul_001.py
tests/operators/vector/test_batchmatmul_001.py
+4
-4
tests/operators/vector/test_detection_five2four_001.py
tests/operators/vector/test_detection_five2four_001.py
+2
-2
tests/operators/vector/test_four2five_001.py
tests/operators/vector/test_four2five_001.py
+2
-2
tests/operators/vector/test_maxpool_001.py
tests/operators/vector/test_maxpool_001.py
+2
-2
tests/operators/vector/test_mean_ad_001.py
tests/operators/vector/test_mean_ad_001.py
+2
-2
tests/operators/vector/test_pad_001.py
tests/operators/vector/test_pad_001.py
+1
-1
tests/operators/vector/test_resize_bilinear_001.py
tests/operators/vector/test_resize_bilinear_001.py
+1
-1
未找到文件。
tests/common/base.py
浏览文件 @
b607ea63
...
...
@@ -318,7 +318,7 @@ class TestBase(object):
os
.
remove
(
cce_file_name
)
if
ir_file_name
and
os
.
path
.
exists
(
ir_file_name
):
os
.
remove
(
ir_file_name
)
self
.
case_result
=
True
self
.
case_result
&
=
True
endtime
=
datetime
.
datetime
.
now
()
self
.
_log
.
info
(
"{0} testcase use ***Running Time*** is: {1}s. "
...
...
tests/operators/cube/test_conv_001.py
浏览文件 @
b607ea63
...
...
@@ -68,7 +68,7 @@ class TestCase(TestBase):
(
"conv_run020"
,
conv_run
,
((
1
,
512
,
28
,
28
),
(
1024
,
512
,
1
,
1
),
(
0
,
0
,
0
,
0
),
(
2
,
2
),
(
1
,
1
),
True
)),
# reid
(
"conv_reid_run001"
,
conv_run
,
((
1
,
3
,
112
,
112
),
(
64
,
3
,
3
,
3
),
(
1
,
1
,
1
,
1
),
(
1
,
1
),
(
1
,
1
),
False
)),
#
("conv_reid_run001", conv_run, ((1, 3, 112, 112), (64, 3, 3, 3), (1, 1, 1, 1), (1, 1), (1, 1), False)),
(
"conv_reid_run002"
,
conv_run
,
((
1
,
64
,
112
,
112
),
(
64
,
64
,
1
,
1
),
(
0
,
0
,
0
,
0
),
(
2
,
2
),
(
1
,
1
),
False
)),
(
"conv_reid_run003"
,
conv_run
,
((
1
,
64
,
112
,
112
),
(
64
,
64
,
3
,
3
),
(
1
,
1
,
1
,
1
),
(
1
,
1
),
(
1
,
1
),
False
)),
# fail
...
...
tests/operators/vector/test_apply_adagrad_001.py
浏览文件 @
b607ea63
...
...
@@ -29,7 +29,7 @@ class TestCase(TestBase):
self
.
testarg
=
[
(
"apply_adagrad_001"
,
"apply_adagrad_run"
,
((
16
,
16
),
"float16"
,
True
)),
(
"apply_adagrad_002"
,
"apply_adagrad_run"
,
((
16
,
16
),
"float32"
,
True
)),
(
"apply_adagrad_003"
,
"apply_adagrad_run"
,
((
16
,
16
),
"float16"
,
False
)),
#
("apply_adagrad_003", "apply_adagrad_run", ((16, 16), "float16", False)),
(
"apply_adagrad_004"
,
"apply_adagrad_run"
,
((
16
,
16
),
"float32"
,
False
)),
]
...
...
tests/operators/vector/test_apply_rms_prop_001.py
浏览文件 @
b607ea63
...
...
@@ -46,7 +46,7 @@ class TestCase(TestBase):
self
.
testarg
=
[
# testflag, opfuncname, testRunArgs, dimArgs
# testRunArgs: (shape, dtype, lr, momentum, rho, epsilon, attrs)
(
"apply_rms_prop_1"
,
apply_rms_prop_run
,
((
1024
,),
"float16"
,
0.5
,
0.9
,
0.6
,
1e-4
)),
#
("apply_rms_prop_1", apply_rms_prop_run, ((1024,), "float16", 0.5, 0.9, 0.6, 1e-4)),
(
"apply_rms_prop_2"
,
apply_rms_prop_run
,
((
16
,
16
),
"float32"
,
0.5
,
0.9
,
0.6
,
1e-6
)),
]
self
.
testarg_cloud
=
[
...
...
tests/operators/vector/test_batchmatmul_001.py
浏览文件 @
b607ea63
...
...
@@ -34,16 +34,16 @@ class TestCase(TestBase):
# bs, m, n, k, bias_shape, dtype, kernel_name, attrs
(
"batch_matmul_001"
,
"batchmatmul_run"
,
((
4
,),
16
,
48
,
32
,
(
1
,),
"float32"
,
False
,
True
,
"batch_matmul_output"
)),
(
"batch_matmul_002"
,
"batchmatmul_run"
,
((
4
,),
16
,
48
,
32
,
(
48
,),
"float32"
,
False
,
True
,
"batch_matmul_output"
)),
#
("batch_matmul_002", "batchmatmul_run",
#
((4,), 16, 48, 32, (48,), "float32", False, True, "batch_matmul_output")),
(
"batch_matmul_003"
,
"batchmatmul_run"
,
((
4
,),
16
,
48
,
32
,
(
4
,
16
,
48
),
"float32"
,
False
,
True
,
"batch_matmul_output"
)),
(
"batch_matmul_004"
,
"batchmatmul_run"
,
((),
16
,
48
,
32
,
(),
"float32"
,
True
,
False
,
"batch_matmul_output"
)),
(
"batch_matmul_005"
,
"batchmatmul_run"
,
((),
16
,
48
,
32
,
(),
"float32"
,
False
,
True
,
"batch_matmul_output"
)),
(
"batch_matmul_006"
,
"batchmatmul_run"
,
((
4
,
2
),
16
,
48
,
32
,
(
1
,
1
),
"float32"
,
False
,
False
,
"batch_matmul_output"
)),
(
"batch_matmul_007"
,
"batchmatmul_run"
,
((
4
,
2
),
16
,
48
,
32
,
(
1
,
48
),
"float32"
,
False
,
False
,
"batch_matmul_output"
)),
#
("batch_matmul_007", "batchmatmul_run",
#
((4, 2), 16, 48, 32, (1, 48), "float32", False, False, "batch_matmul_output")),
(
"batch_matmul_008"
,
"batchmatmul_run"
,
((
4
,
2
),
16
,
48
,
32
,
(
4
,
2
,
16
,
48
),
"float32"
,
False
,
False
,
"batch_matmul_output"
)),
(
"batch_matmul_009"
,
"batchmatmul_run"
,
...
...
tests/operators/vector/test_detection_five2four_001.py
浏览文件 @
b607ea63
...
...
@@ -48,8 +48,8 @@ class TestCase(TestBase):
(
"detection_five2four_001"
,
detection_five2four_run
,
((
16
,
4
,
1
),
"float16"
)),
(
"detection_five2four_002"
,
detection_five2four_run
,
((
16
,
4
,
3
),
"float16"
)),
(
"detection_five2four_003"
,
detection_five2four_run
,
((
16
,
6
,
5
),
"float16"
)),
(
"detection_five2four_004"
,
detection_five2four_run
,
((
16
,
6
,
10
),
"float16"
)),
(
"detection_five2four_005"
,
detection_five2four_run
,
((
16
,
6
,
19
),
"float16"
)),
#
("detection_five2four_004", detection_five2four_run, ((16, 6, 10), "float16")),
#
("detection_five2four_005", detection_five2four_run, ((16, 6, 19), "float16")),
(
"detection_five2four_006"
,
detection_five2four_run
,
((
16
,
4
,
38
),
"float16"
)),
]
self
.
testarg_cloud
=
[
...
...
tests/operators/vector/test_four2five_001.py
浏览文件 @
b607ea63
...
...
@@ -48,7 +48,7 @@ class TestCase(TestBase):
# ("four2five_017", four2five_run, ([32, 2048, 7, 7], "float16", 'NCHW', 'float16')),
# ("four2five_017", four2five_run, ([32, 1024, 14, 14], "float16", 'NCHW', 'float16')),
# ("four2five_017", four2five_run, ([32, 256, 28, 28], "float16", 'NCHW', 'float16')),
(
"four2five_017"
,
"four2five_run"
,
([
32
,
512
,
28
,
28
],
"float16"
,
'NCHW'
,
'float16'
)),
#
("four2five_017", "four2five_run", ([32, 512, 28, 28], "float16", 'NCHW', 'float16')),
(
"four2five_017"
,
"four2five_run"
,
([
32
,
512
,
7
,
7
],
"float16"
,
'NCHW'
,
'float16'
)),
# NHWC
...
...
@@ -72,7 +72,7 @@ class TestCase(TestBase):
#("four2five_025", four2five_run, ([8, 64, 16, 16], "float32", 'NHWC', 'float16')),
#("four2five_026", four2five_run, ([1, 64, 15, 15], "float32", 'NHWC', 'float16')),
#("four2five_027", four2five_run, ([1, 24, 16, 16], "float32", 'NHWC', 'float16')),
(
"four2five_028"
,
"four2five_run"
,
([
1
,
59
,
121
,
15
],
"float32"
,
'NHWC'
,
'float32'
)),
#
("four2five_028", "four2five_run", ([1, 59, 121, 15], "float32", 'NHWC', 'float32')),
(
"four2five_017"
,
"four2five_run"
,
([
32
,
2048
,
7
,
7
],
"float32"
,
'NCHW'
,
'float32'
)),
]
...
...
tests/operators/vector/test_maxpool_001.py
浏览文件 @
b607ea63
...
...
@@ -43,11 +43,11 @@ class TestCase(TestBase):
(
"001_maxpool_fp16"
,
maxpool_run
,
((
1
,
1
,
16
,
16
,
16
),
(
2
,
2
),
(
1
,
1
),
(
0
,
0
,
0
,
0
),
True
,
"float16"
)),
(
"002_maxpool_fp16"
,
maxpool_run
,
((
1
,
1
,
16
,
16
,
16
),
(
2
,
2
),
(
2
,
2
),
(
1
,
1
,
1
,
1
),
True
,
"float16"
)),
(
"003_maxpool_fp16"
,
maxpool_run
,
((
1
,
1
,
16
,
16
,
16
),
(
2
,
2
),
(
1
,
1
),
(
1
,
1
,
1
,
1
),
True
,
"float16"
)),
(
"004_maxpool_fp16"
,
maxpool_run
,
((
1
,
1
,
29
,
29
,
16
),
(
2
,
2
),
(
1
,
1
),
(
1
,
1
,
1
,
1
),
True
,
"float16"
)),
#
("004_maxpool_fp16", maxpool_run, ((1, 1, 29, 29, 16), (2, 2), (1, 1), (1, 1, 1, 1), True, "float16")),
(
"005_maxpool_fp16"
,
maxpool_run
,
((
1
,
1
,
30
,
30
,
16
),
(
2
,
2
),
(
1
,
1
),
(
0
,
0
,
0
,
0
),
True
,
"float16"
)),
(
"006_maxpool_fp16"
,
maxpool_run
,
((
1
,
2
,
16
,
16
,
16
),
(
4
,
4
),
(
3
,
3
),
(
1
,
1
,
1
,
1
),
True
,
"float16"
)),
(
"007_maxpool_fp16"
,
maxpool_run
,
((
1
,
1
,
17
,
17
,
16
),
(
3
,
3
),
(
2
,
2
),
(
1
,
1
,
1
,
1
),
True
,
"float16"
)),
(
"008_maxpool_fp16"
,
maxpool_run
,
((
1
,
1
,
30
,
30
,
16
),
(
2
,
2
),
(
1
,
1
),
(
1
,
1
,
1
,
1
),
True
,
"float16"
)),
#
("008_maxpool_fp16", maxpool_run, ((1, 1, 30, 30, 16), (2, 2), (1, 1), (1, 1, 1, 1), True, "float16")),
# not hybrid
(
"not_hybrid_01"
,
maxpool_run
,
((
2
,
16
,
40
,
24
,
16
),
(
1
,
1
),
(
2
,
2
),
(
0
,
0
,
0
,
0
),
False
,
"float16"
)),
...
...
tests/operators/vector/test_mean_ad_001.py
浏览文件 @
b607ea63
...
...
@@ -43,7 +43,7 @@ class TestCase(TestBase):
self
.
testarg
=
[
#caseflag,testfuncname,testRunArgs, dimArgs
(
"mean_ad_01"
,
mean_ad_run
,
((
32
,
2048
,
1
,
1
),
"float16"
,
0
,
True
)),
(
"mean_ad_02"
,
mean_ad_run
,
((
32
,
2048
,
1
,
1
),
"float16"
,
0
,
False
)),
#
("mean_ad_02", mean_ad_run, ((32, 2048, 1, 1), "float16", 0, False)),
(
"mean_ad_03"
,
mean_ad_run
,
((
32
,
2048
,
1
,
1
),
"float16"
,
1
,
True
)),
(
"mean_ad_04"
,
mean_ad_run
,
((
32
,
2048
,
1
,
1
),
"float16"
,
1
,
False
)),
(
"mean_ad_05"
,
mean_ad_run
,
((
32
,
2048
,
1
,
1
),
"float32"
,
2
,
True
)),
...
...
@@ -59,7 +59,7 @@ class TestCase(TestBase):
self
.
testarg_cloud
=
[
#caseflag,testfuncname,testRunArgs, dimArgs
(
"mean_ad_01"
,
mean_ad_run
,
((
32
,
2048
,
1
,
1
),
"float16"
,
0
,
True
)),
(
"mean_ad_02"
,
mean_ad_run
,
((
32
,
2048
,
1
,
1
),
"float16"
,
0
,
False
)),
#
("mean_ad_02", mean_ad_run, ((32, 2048, 1, 1), "float16", 0, False)),
(
"mean_ad_03"
,
mean_ad_run
,
((
32
,
2048
,
1
,
1
),
"float16"
,
1
,
True
)),
(
"mean_ad_04"
,
mean_ad_run
,
((
32
,
2048
,
1
,
1
),
"float16"
,
1
,
False
)),
(
"mean_ad_05"
,
mean_ad_run
,
((
32
,
2048
,
1
,
1
),
"float32"
,
2
,
True
)),
...
...
tests/operators/vector/test_pad_001.py
浏览文件 @
b607ea63
...
...
@@ -52,7 +52,7 @@ class TestCase(TestBase):
# Matmul shape
# ("pad_05", pad_run, ((16384, 33), (), "float32", "constant", "cce_pad_float16"), ),
(
"pad_06"
,
pad_run
,
((
16384
,
33
),
(),
"float16"
,
"constant"
,
"cce_pad_float16"
),
),
#
("pad_06", pad_run, ((16384, 33), (), "float16", "constant", "cce_pad_float16"), ),
# ("pad_07", pad_run, ((33, 16384), (), "float32", "constant", "cce_pad_float16"), ),
(
"pad_08"
,
pad_run
,
((
1024
,
8
),
(),
"float32"
,
"constant"
,
"cce_pad_float16"
),
),
(
"pad_09"
,
pad_run
,
((
1024
,
2
),
(),
"float32"
,
"constant"
,
"cce_pad_float16"
),
),
...
...
tests/operators/vector/test_resize_bilinear_001.py
浏览文件 @
b607ea63
...
...
@@ -45,7 +45,7 @@ class TestCase(TestBase):
self
.
caseresult
=
True
self
.
_log
.
info
(
"============= {0} Setup case============"
.
format
(
self
.
casename
))
self
.
testarg
=
[
(
"resize_bilinear_00"
,
resize_bilinear_run
,
([
1
,
8
,
8
,
16
],
[
16
,
16
],
"float16"
,
"cce_resize_bilinear_fp16"
),((
16
,
1
),(
38
,
1
),(
53
,
1
),(
60
,
1
))),
#
("resize_bilinear_00", resize_bilinear_run, ([1, 8, 8, 16], [16, 16], "float16", "cce_resize_bilinear_fp16"),((16,1),(38,1),(53,1),(60,1))),
# ("resize_bilinear_01", resize_bilinear_run, ([1,375,500,3], [468,625], "float16", "cce_resize_bilinear_fp16")), # setdim
# ("resize_bilinear_03", resize_bilinear_run, ([1,500,333,3], [750,499], "float16", "cce_resize_bilinear_fp16")), # poly
# ("resize_bilinear_04", resize_bilinear_run, ([1,357,500,3], [624,875], "float16", "cce_resize_bilinear_fp16")), # poly
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录