Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
78431dc7
P
Paddle
项目概览
PaddlePaddle
/
Paddle
1 年多 前同步成功
通知
2302
Star
20931
Fork
5422
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1423
列表
看板
标记
里程碑
合并请求
543
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1,423
Issue
1,423
列表
看板
标记
里程碑
合并请求
543
合并请求
543
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
78431dc7
编写于
10月 17, 2019
作者:
G
gongweibao
提交者:
GitHub
10月 17, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add detail log on parallel dygraph unit test when failed. (#20660)
上级
dbc2bb33
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
18 addition
and
2 deletion
+18
-2
python/paddle/fluid/tests/unittests/CMakeLists.txt
python/paddle/fluid/tests/unittests/CMakeLists.txt
+2
-0
python/paddle/fluid/tests/unittests/test_parallel_dygraph_mnist.py
...ddle/fluid/tests/unittests/test_parallel_dygraph_mnist.py
+8
-1
python/paddle/fluid/tests/unittests/test_parallel_dygraph_se_resnext.py
...fluid/tests/unittests/test_parallel_dygraph_se_resnext.py
+8
-1
未找到文件。
python/paddle/fluid/tests/unittests/CMakeLists.txt
浏览文件 @
78431dc7
...
@@ -5,6 +5,8 @@ set(dist_ENVS http_proxy="" https_proxy="")
...
@@ -5,6 +5,8 @@ set(dist_ENVS http_proxy="" https_proxy="")
file
(
GLOB DIST_TEST_OPS RELATIVE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
"
"test_dist_*.py"
)
file
(
GLOB DIST_TEST_OPS RELATIVE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
"
"test_dist_*.py"
)
string
(
REPLACE
".py"
""
DIST_TEST_OPS
"
${
DIST_TEST_OPS
}
"
)
string
(
REPLACE
".py"
""
DIST_TEST_OPS
"
${
DIST_TEST_OPS
}
"
)
list
(
APPEND DIST_TEST_OPS test_parallel_dygraph_mnist
)
list
(
APPEND DIST_TEST_OPS test_parallel_dygraph_se_resnext
)
set
(
MIXED_DIST_TEST_OPS
${
DIST_TEST_OPS
}
)
set
(
MIXED_DIST_TEST_OPS
${
DIST_TEST_OPS
}
)
#remove distribute unittests.
#remove distribute unittests.
list
(
APPEND MIXED_DIST_TEST_OPS test_dgc_op
)
list
(
APPEND MIXED_DIST_TEST_OPS test_dgc_op
)
...
...
python/paddle/fluid/tests/unittests/test_parallel_dygraph_mnist.py
浏览文件 @
78431dc7
...
@@ -17,6 +17,9 @@ import unittest
...
@@ -17,6 +17,9 @@ import unittest
from
test_dist_base
import
TestDistBase
from
test_dist_base
import
TestDistBase
import
paddle.fluid
as
fluid
import
paddle.fluid
as
fluid
import
os
flag_name
=
os
.
path
.
splitext
(
__file__
)[
0
]
class
TestParallelDygraphMnist
(
TestDistBase
):
class
TestParallelDygraphMnist
(
TestDistBase
):
def
_setup_config
(
self
):
def
_setup_config
(
self
):
...
@@ -26,7 +29,11 @@ class TestParallelDygraphMnist(TestDistBase):
...
@@ -26,7 +29,11 @@ class TestParallelDygraphMnist(TestDistBase):
def
test_mnist
(
self
):
def
test_mnist
(
self
):
if
fluid
.
core
.
is_compiled_with_cuda
():
if
fluid
.
core
.
is_compiled_with_cuda
():
self
.
check_with_place
(
"parallel_dygraph_mnist.py"
,
delta
=
1e-5
)
self
.
check_with_place
(
"parallel_dygraph_mnist.py"
,
delta
=
1e-5
,
check_error_log
=
True
,
log_name
=
flag_name
)
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
...
...
python/paddle/fluid/tests/unittests/test_parallel_dygraph_se_resnext.py
浏览文件 @
78431dc7
...
@@ -17,6 +17,9 @@ import unittest
...
@@ -17,6 +17,9 @@ import unittest
from
test_dist_base
import
TestDistBase
from
test_dist_base
import
TestDistBase
import
paddle.fluid
as
fluid
import
paddle.fluid
as
fluid
import
os
flag_name
=
os
.
path
.
splitext
(
__file__
)[
0
]
class
TestParallelDygraphSeResNeXt
(
TestDistBase
):
class
TestParallelDygraphSeResNeXt
(
TestDistBase
):
def
_setup_config
(
self
):
def
_setup_config
(
self
):
...
@@ -26,7 +29,11 @@ class TestParallelDygraphSeResNeXt(TestDistBase):
...
@@ -26,7 +29,11 @@ class TestParallelDygraphSeResNeXt(TestDistBase):
def
test_se_resnext
(
self
):
def
test_se_resnext
(
self
):
if
fluid
.
core
.
is_compiled_with_cuda
():
if
fluid
.
core
.
is_compiled_with_cuda
():
self
.
check_with_place
(
"parallel_dygraph_se_resnext.py"
,
delta
=
0.01
)
self
.
check_with_place
(
"parallel_dygraph_se_resnext.py"
,
delta
=
0.01
,
check_error_log
=
True
,
log_name
=
flag_name
)
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录