未验证 提交 325f5921 编写于 作者: A Allen Guo 提交者: GitHub

clean unittest.skipIf 5/N (#44288)

上级 0a848e3e
......@@ -20,8 +20,6 @@ import paddle.static
from paddle.fluid.tests.unittests.ipu.op_test_ipu import IPUOpTest
@unittest.skipIf(not paddle.is_compiled_with_ipu(),
"core is not compiled with IPU")
class TestBase(IPUOpTest):
def setUp(self):
......
......@@ -21,8 +21,6 @@ from paddle.fluid.tests.unittests.ipu.op_test_ipu import IPUOpTest
import paddle.nn.functional as F
@unittest.skipIf(not paddle.is_compiled_with_ipu(),
"core is not compiled with IPU")
class TestBase(IPUOpTest):
def setUp(self):
......
......@@ -22,8 +22,6 @@ import paddle.static
from paddle.fluid.tests.unittests.ipu.op_test_ipu import IPUOpTest
@unittest.skipIf(not paddle.is_compiled_with_ipu(),
"core is not compiled with IPU")
@unittest.skipIf(IPUOpTest.use_ipumodel(), "skip for ipumodel")
class TestBase(IPUOpTest):
......@@ -36,6 +34,7 @@ class TestBase(IPUOpTest):
self.model_path = os.path.join(self.temp_dir.name, "weight_decay")
def tearDown(self):
super().tearDown()
self.temp_dir.cleanup()
def set_atol(self):
......
......@@ -20,8 +20,6 @@ import paddle.static
from paddle.fluid.tests.unittests.ipu.op_test_ipu import IPUOpTest
@unittest.skipIf(not paddle.is_compiled_with_ipu(),
"core is not compiled with IPU")
class TestWeightSharing(IPUOpTest):
def setUp(self):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册