未验证 提交 78431dc7 编写于 作者: G gongweibao 提交者: GitHub

Add detail log on parallel dygraph unit test when failed. (#20660)

上级 dbc2bb33
......@@ -5,6 +5,8 @@ set(dist_ENVS http_proxy="" https_proxy="")
file(GLOB DIST_TEST_OPS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "test_dist_*.py")
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})
#remove distribute unittests.
list(APPEND MIXED_DIST_TEST_OPS test_dgc_op)
......
......@@ -17,6 +17,9 @@ import unittest
from test_dist_base import TestDistBase
import paddle.fluid as fluid
import os
flag_name = os.path.splitext(__file__)[0]
class TestParallelDygraphMnist(TestDistBase):
def _setup_config(self):
......@@ -26,7 +29,11 @@ class TestParallelDygraphMnist(TestDistBase):
def test_mnist(self):
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__":
......
......@@ -17,6 +17,9 @@ import unittest
from test_dist_base import TestDistBase
import paddle.fluid as fluid
import os
flag_name = os.path.splitext(__file__)[0]
class TestParallelDygraphSeResNeXt(TestDistBase):
def _setup_config(self):
......@@ -26,7 +29,11 @@ class TestParallelDygraphSeResNeXt(TestDistBase):
def test_se_resnext(self):
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__":
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册