Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
机器未来
Paddle
提交
eb45bb4e
P
Paddle
项目概览
机器未来
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
eb45bb4e
编写于
1月 26, 2022
作者:
Y
yaozhixin
提交者:
GitHub
1月 26, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update uts p3 (#39214)
上级
33b3e28a
变更
18
显示空白变更内容
内联
并排
Showing
18 changed file
with
48 addition
and
48 deletion
+48
-48
python/paddle/fluid/tests/unittests/ipu/test_pool_max_op_ipu.py
.../paddle/fluid/tests/unittests/ipu/test_pool_max_op_ipu.py
+2
-2
python/paddle/fluid/tests/unittests/ipu/test_pow_op_ipu.py
python/paddle/fluid/tests/unittests/ipu/test_pow_op_ipu.py
+4
-4
python/paddle/fluid/tests/unittests/ipu/test_reduce_x_op_ipu.py
.../paddle/fluid/tests/unittests/ipu/test_reduce_x_op_ipu.py
+2
-2
python/paddle/fluid/tests/unittests/ipu/test_reshape_inplace_op_ipu.py
.../fluid/tests/unittests/ipu/test_reshape_inplace_op_ipu.py
+2
-2
python/paddle/fluid/tests/unittests/ipu/test_reshape_op_ipu.py
...n/paddle/fluid/tests/unittests/ipu/test_reshape_op_ipu.py
+2
-2
python/paddle/fluid/tests/unittests/ipu/test_save_load.py
python/paddle/fluid/tests/unittests/ipu/test_save_load.py
+3
-2
python/paddle/fluid/tests/unittests/ipu/test_scale_op_ipu.py
python/paddle/fluid/tests/unittests/ipu/test_scale_op_ipu.py
+4
-4
python/paddle/fluid/tests/unittests/ipu/test_set_batch_size_ipu.py
...ddle/fluid/tests/unittests/ipu/test_set_batch_size_ipu.py
+3
-4
python/paddle/fluid/tests/unittests/ipu/test_sgd_optimizer.py
...on/paddle/fluid/tests/unittests/ipu/test_sgd_optimizer.py
+2
-2
python/paddle/fluid/tests/unittests/ipu/test_slice_op_ipu.py
python/paddle/fluid/tests/unittests/ipu/test_slice_op_ipu.py
+4
-4
python/paddle/fluid/tests/unittests/ipu/test_softmax_op_ipu.py
...n/paddle/fluid/tests/unittests/ipu/test_softmax_op_ipu.py
+2
-2
python/paddle/fluid/tests/unittests/ipu/test_squeeze_op_ipu.py
...n/paddle/fluid/tests/unittests/ipu/test_squeeze_op_ipu.py
+3
-3
python/paddle/fluid/tests/unittests/ipu/test_stack_op_ipu.py
python/paddle/fluid/tests/unittests/ipu/test_stack_op_ipu.py
+2
-2
python/paddle/fluid/tests/unittests/ipu/test_sum_op_ipu.py
python/paddle/fluid/tests/unittests/ipu/test_sum_op_ipu.py
+5
-5
python/paddle/fluid/tests/unittests/ipu/test_topk_op_ipu.py
python/paddle/fluid/tests/unittests/ipu/test_topk_op_ipu.py
+2
-2
python/paddle/fluid/tests/unittests/ipu/test_transpose_op_ipu.py
...paddle/fluid/tests/unittests/ipu/test_transpose_op_ipu.py
+2
-2
python/paddle/fluid/tests/unittests/ipu/test_unsqueeze_op_ipu.py
...paddle/fluid/tests/unittests/ipu/test_unsqueeze_op_ipu.py
+2
-2
python/paddle/fluid/tests/unittests/ipu/test_varname_inplace.py
.../paddle/fluid/tests/unittests/ipu/test_varname_inplace.py
+2
-2
未找到文件。
python/paddle/fluid/tests/unittests/ipu/test_pool_max_op_ipu.py
浏览文件 @
eb45bb4e
...
...
@@ -87,8 +87,8 @@ class TestBase(IPUOpTest):
if
run_ipu
:
feed_list
=
self
.
feed_list
ipu_strategy
=
compiler
.
get_ipu_s
trategy
()
ipu_strategy
.
is_training
=
self
.
is_training
ipu_strategy
=
paddle
.
static
.
IpuS
trategy
()
ipu_strategy
.
SetGraphConfig
(
is_training
=
self
.
is_training
)
program
=
compiler
.
IPUCompiledProgram
(
main_prog
,
ipu_strategy
=
ipu_strategy
).
compile
(
feed_list
,
fetch_list
)
...
...
python/paddle/fluid/tests/unittests/ipu/test_pow_op_ipu.py
浏览文件 @
eb45bb4e
...
...
@@ -78,8 +78,8 @@ class TestBase(IPUOpTest):
if
run_ipu
:
feed_list
=
self
.
feed_list
ipu_strategy
=
compiler
.
get_ipu_s
trategy
()
ipu_strategy
.
is_training
=
self
.
is_training
ipu_strategy
=
paddle
.
static
.
IpuS
trategy
()
ipu_strategy
.
SetGraphConfig
(
is_training
=
self
.
is_training
)
program
=
compiler
.
IPUCompiledProgram
(
main_prog
,
ipu_strategy
=
ipu_strategy
).
compile
(
feed_list
,
fetch_list
)
...
...
@@ -141,8 +141,8 @@ class TestCase1(TestBase):
if
run_ipu
:
feed_list
=
self
.
feed_list
ipu_strategy
=
compiler
.
get_ipu_s
trategy
()
ipu_strategy
.
is_training
=
self
.
is_training
ipu_strategy
=
paddle
.
static
.
IpuS
trategy
()
ipu_strategy
.
SetGraphConfig
(
is_training
=
self
.
is_training
)
program
=
compiler
.
IPUCompiledProgram
(
main_prog
,
ipu_strategy
=
ipu_strategy
).
compile
(
feed_list
,
fetch_list
)
...
...
python/paddle/fluid/tests/unittests/ipu/test_reduce_x_op_ipu.py
浏览文件 @
eb45bb4e
...
...
@@ -71,8 +71,8 @@ class TestMean(IPUOpTest):
if
run_ipu
:
feed_list
=
self
.
feed_list
ipu_strategy
=
compiler
.
get_ipu_s
trategy
()
ipu_strategy
.
is_training
=
self
.
is_training
ipu_strategy
=
paddle
.
static
.
IpuS
trategy
()
ipu_strategy
.
SetGraphConfig
(
is_training
=
self
.
is_training
)
program
=
compiler
.
IPUCompiledProgram
(
main_prog
,
ipu_strategy
=
ipu_strategy
).
compile
(
feed_list
,
fetch_list
)
...
...
python/paddle/fluid/tests/unittests/ipu/test_reshape_inplace_op_ipu.py
浏览文件 @
eb45bb4e
...
...
@@ -82,8 +82,8 @@ class TestBase(IPUOpTest):
if
run_ipu
:
feed_list
=
self
.
feed_list
ipu_strategy
=
compiler
.
get_ipu_s
trategy
()
ipu_strategy
.
is_training
=
self
.
is_training
ipu_strategy
=
paddle
.
static
.
IpuS
trategy
()
ipu_strategy
.
SetGraphConfig
(
is_training
=
self
.
is_training
)
program
=
compiler
.
IPUCompiledProgram
(
main_prog
,
ipu_strategy
=
ipu_strategy
).
compile
(
feed_list
,
fetch_list
)
...
...
python/paddle/fluid/tests/unittests/ipu/test_reshape_op_ipu.py
浏览文件 @
eb45bb4e
...
...
@@ -76,8 +76,8 @@ class TestBase(IPUOpTest):
if
run_ipu
:
feed_list
=
self
.
feed_list
ipu_strategy
=
compiler
.
get_ipu_s
trategy
()
ipu_strategy
.
is_training
=
self
.
is_training
ipu_strategy
=
paddle
.
static
.
IpuS
trategy
()
ipu_strategy
.
SetGraphConfig
(
is_training
=
self
.
is_training
)
program
=
compiler
.
IPUCompiledProgram
(
main_prog
,
ipu_strategy
=
ipu_strategy
).
compile
(
feed_list
,
fetch_list
)
...
...
python/paddle/fluid/tests/unittests/ipu/test_save_load.py
浏览文件 @
eb45bb4e
...
...
@@ -93,8 +93,9 @@ class TestBase(IPUOpTest):
if
not
save_otherwise_load
:
paddle
.
static
.
load
(
main_prog
,
"model/model"
)
ipu_strategy
=
compiler
.
get_ipu_strategy
()
ipu_strategy
.
is_training
=
self
.
attrs
[
'is_training'
]
ipu_strategy
=
paddle
.
static
.
IpuStrategy
()
ipu_strategy
.
SetGraphConfig
(
is_training
=
self
.
attrs
[
'is_training'
])
program
=
compiler
.
IPUCompiledProgram
(
main_prog
,
ipu_strategy
=
ipu_strategy
).
compile
(
self
.
feed_list
,
fetch_list
)
...
...
python/paddle/fluid/tests/unittests/ipu/test_scale_op_ipu.py
浏览文件 @
eb45bb4e
...
...
@@ -82,8 +82,8 @@ class TestBase(IPUOpTest):
if
run_ipu
:
feed_list
=
self
.
feed_list
ipu_strategy
=
compiler
.
get_ipu_s
trategy
()
ipu_strategy
.
is_training
=
self
.
is_training
ipu_strategy
=
paddle
.
static
.
IpuS
trategy
()
ipu_strategy
.
SetGraphConfig
(
is_training
=
self
.
is_training
)
program
=
compiler
.
IPUCompiledProgram
(
main_prog
,
ipu_strategy
=
ipu_strategy
).
compile
(
feed_list
,
fetch_list
)
...
...
@@ -175,8 +175,8 @@ class TestCase4(TestBase):
if
run_ipu
:
feed_list
=
self
.
feed_list
ipu_strategy
=
compiler
.
get_ipu_s
trategy
()
ipu_strategy
.
is_training
=
self
.
is_training
ipu_strategy
=
paddle
.
static
.
IpuS
trategy
()
ipu_strategy
.
SetGraphConfig
(
is_training
=
self
.
is_training
)
program
=
compiler
.
IPUCompiledProgram
(
main_prog
,
ipu_strategy
=
ipu_strategy
).
compile
(
feed_list
,
fetch_list
)
...
...
python/paddle/fluid/tests/unittests/ipu/test_set_batch_size_ipu.py
浏览文件 @
eb45bb4e
...
...
@@ -81,10 +81,9 @@ class TestBase(IPUOpTest):
if
run_ipu
:
feed_list
=
self
.
feed_list
ipu_strategy
=
compiler
.
get_ipu_strategy
()
ipu_strategy
.
is_training
=
self
.
is_training
# set batch size
ipu_strategy
.
batch_size
=
2
ipu_strategy
=
paddle
.
static
.
IpuStrategy
()
ipu_strategy
.
SetGraphConfig
(
batch_size
=
2
,
is_training
=
self
.
is_training
)
program
=
compiler
.
IPUCompiledProgram
(
main_prog
,
ipu_strategy
=
ipu_strategy
).
compile
(
feed_list
,
fetch_list
)
...
...
python/paddle/fluid/tests/unittests/ipu/test_sgd_optimizer.py
浏览文件 @
eb45bb4e
...
...
@@ -59,8 +59,8 @@ class TestSGD(unittest.TestCase):
if
run_ipu
:
feed_list
=
[
image
.
name
]
fetch_list
=
[
loss
.
name
]
ipu_strategy
=
compiler
.
get_ipu_s
trategy
()
ipu_strategy
.
is_training
=
True
ipu_strategy
=
paddle
.
static
.
IpuS
trategy
()
ipu_strategy
.
SetGraphConfig
(
is_training
=
True
)
program
=
compiler
.
IPUCompiledProgram
(
main_prog
,
ipu_strategy
=
ipu_strategy
).
compile
(
feed_list
,
fetch_list
)
...
...
python/paddle/fluid/tests/unittests/ipu/test_slice_op_ipu.py
浏览文件 @
eb45bb4e
...
...
@@ -80,8 +80,8 @@ class TestBase(IPUOpTest):
if
run_ipu
:
feed_list
=
self
.
feed_list
ipu_strategy
=
compiler
.
get_ipu_s
trategy
()
ipu_strategy
.
is_training
=
self
.
is_training
ipu_strategy
=
paddle
.
static
.
IpuS
trategy
()
ipu_strategy
.
SetGraphConfig
(
is_training
=
self
.
is_training
)
program
=
compiler
.
IPUCompiledProgram
(
main_prog
,
ipu_strategy
=
ipu_strategy
).
compile
(
feed_list
,
fetch_list
)
...
...
@@ -159,8 +159,8 @@ class TestCase2(TestBase):
if
run_ipu
:
feed_list
=
self
.
feed_list
ipu_strategy
=
compiler
.
get_ipu_s
trategy
()
ipu_strategy
.
is_training
=
self
.
is_training
ipu_strategy
=
paddle
.
static
.
IpuS
trategy
()
ipu_strategy
.
SetGraphConfig
(
is_training
=
self
.
is_training
)
program
=
compiler
.
IPUCompiledProgram
(
main_prog
,
ipu_strategy
=
ipu_strategy
).
compile
(
feed_list
,
fetch_list
)
...
...
python/paddle/fluid/tests/unittests/ipu/test_softmax_op_ipu.py
浏览文件 @
eb45bb4e
...
...
@@ -77,8 +77,8 @@ class TestBase(IPUOpTest):
if
run_ipu
:
feed_list
=
self
.
feed_list
ipu_strategy
=
compiler
.
get_ipu_s
trategy
()
ipu_strategy
.
is_training
=
self
.
is_training
ipu_strategy
=
paddle
.
static
.
IpuS
trategy
()
ipu_strategy
.
SetGraphConfig
(
is_training
=
self
.
is_training
)
program
=
compiler
.
IPUCompiledProgram
(
main_prog
,
ipu_strategy
=
ipu_strategy
).
compile
(
feed_list
,
fetch_list
)
...
...
python/paddle/fluid/tests/unittests/ipu/test_squeeze_op_ipu.py
浏览文件 @
eb45bb4e
...
...
@@ -77,11 +77,11 @@ class TestBase(IPUOpTest):
if
run_ipu
:
feed_list
=
self
.
feed_list
ipu_strategy
=
compiler
.
get_ipu_s
trategy
()
ipu_strategy
.
is_training
=
self
.
is_training
ipu_strategy
=
paddle
.
static
.
IpuS
trategy
()
ipu_strategy
.
SetGraphConfig
(
is_training
=
self
.
is_training
)
program
=
compiler
.
IPUCompiledProgram
(
main_prog
,
ipu_strategy
=
ipu_strategy
).
compile
(
feed_list
,
fetch_list
)
i
i
pu_strategy
=
ipu_strategy
).
compile
(
feed_list
,
fetch_list
)
else
:
program
=
main_prog
...
...
python/paddle/fluid/tests/unittests/ipu/test_stack_op_ipu.py
浏览文件 @
eb45bb4e
...
...
@@ -88,8 +88,8 @@ class TestBase(IPUOpTest):
if
run_ipu
:
feed_list
=
self
.
feed_list
ipu_strategy
=
compiler
.
get_ipu_s
trategy
()
ipu_strategy
.
is_training
=
self
.
is_training
ipu_strategy
=
paddle
.
static
.
IpuS
trategy
()
ipu_strategy
.
SetGraphConfig
(
is_training
=
self
.
is_training
)
program
=
compiler
.
IPUCompiledProgram
(
main_prog
,
ipu_strategy
=
ipu_strategy
).
compile
(
feed_list
,
fetch_list
)
...
...
python/paddle/fluid/tests/unittests/ipu/test_sum_op_ipu.py
浏览文件 @
eb45bb4e
...
...
@@ -83,8 +83,8 @@ class TestBase(IPUOpTest):
if
run_ipu
:
feed_list
=
self
.
feed_list
ipu_strategy
=
compiler
.
get_ipu_s
trategy
()
ipu_strategy
.
is_training
=
self
.
is_training
ipu_strategy
=
paddle
.
static
.
IpuS
trategy
()
ipu_strategy
.
SetGraphConfig
(
is_training
=
self
.
is_training
)
program
=
compiler
.
IPUCompiledProgram
(
main_prog
,
ipu_strategy
=
ipu_strategy
).
compile
(
feed_list
,
fetch_list
)
...
...
@@ -149,11 +149,11 @@ class TestCase1(TestBase):
if
run_ipu
:
feed_list
=
self
.
feed_list
ipu_strategy
=
compiler
.
get_ipu_s
trategy
()
ipu_strategy
.
is_training
=
self
.
is_training
ipu_strategy
=
paddle
.
static
.
IpuS
trategy
()
ipu_strategy
.
SetGraphConfig
(
is_training
=
self
.
is_training
)
program
=
compiler
.
IPUCompiledProgram
(
main_prog
,
ipu_strategy
=
ipu_strategy
).
compile
(
feed_list
,
fetch_list
)
i
i
pu_strategy
=
ipu_strategy
).
compile
(
feed_list
,
fetch_list
)
else
:
program
=
main_prog
...
...
python/paddle/fluid/tests/unittests/ipu/test_topk_op_ipu.py
浏览文件 @
eb45bb4e
...
...
@@ -102,8 +102,8 @@ class TestTopKOp(IPUOpTest):
if
run_ipu
:
feed_list
=
self
.
feed_list
ipu_strategy
=
compiler
.
get_ipu_s
trategy
()
ipu_strategy
.
is_training
=
self
.
is_training
ipu_strategy
=
paddle
.
static
.
IpuS
trategy
()
ipu_strategy
.
SetGraphConfig
(
is_training
=
self
.
is_training
)
program
=
compiler
.
IPUCompiledProgram
(
main_prog
,
ipu_strategy
=
ipu_strategy
).
compile
(
feed_list
,
fetch_list
)
...
...
python/paddle/fluid/tests/unittests/ipu/test_transpose_op_ipu.py
浏览文件 @
eb45bb4e
...
...
@@ -78,8 +78,8 @@ class TestBase(IPUOpTest):
if
run_ipu
:
feed_list
=
self
.
feed_list
ipu_strategy
=
compiler
.
get_ipu_s
trategy
()
ipu_strategy
.
is_training
=
self
.
is_training
ipu_strategy
=
paddle
.
static
.
IpuS
trategy
()
ipu_strategy
.
SetGraphConfig
(
is_training
=
self
.
is_training
)
program
=
compiler
.
IPUCompiledProgram
(
main_prog
,
ipu_strategy
=
ipu_strategy
).
compile
(
feed_list
,
fetch_list
)
...
...
python/paddle/fluid/tests/unittests/ipu/test_unsqueeze_op_ipu.py
浏览文件 @
eb45bb4e
...
...
@@ -76,8 +76,8 @@ class TestBase(IPUOpTest):
if
run_ipu
:
feed_list
=
self
.
feed_list
ipu_strategy
=
compiler
.
get_ipu_s
trategy
()
ipu_strategy
.
is_training
=
self
.
is_training
ipu_strategy
=
paddle
.
static
.
IpuS
trategy
()
ipu_strategy
.
SetGraphConfig
(
is_training
=
self
.
is_training
)
program
=
compiler
.
IPUCompiledProgram
(
main_prog
,
ipu_strategy
=
ipu_strategy
).
compile
(
feed_list
,
fetch_list
)
...
...
python/paddle/fluid/tests/unittests/ipu/test_varname_inplace.py
浏览文件 @
eb45bb4e
...
...
@@ -91,8 +91,8 @@ class TestBase(IPUOpTest):
if
run_ipu
:
feed_list
=
self
.
feed_list
ipu_strategy
=
compiler
.
get_ipu_s
trategy
()
ipu_strategy
.
is_training
=
self
.
is_training
ipu_strategy
=
paddle
.
static
.
IpuS
trategy
()
ipu_strategy
.
SetGraphConfig
(
is_training
=
self
.
is_training
)
program
=
compiler
.
IPUCompiledProgram
(
main_prog
,
ipu_strategy
=
ipu_strategy
).
compile
(
feed_list
,
fetch_list
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录