From f17bd1786a771a108e5f491f8e8604121ca01cb0 Mon Sep 17 00:00:00 2001 From: lijianshe02 <48898730+lijianshe02@users.noreply.github.com> Date: Tue, 24 Dec 2019 18:17:02 +0800 Subject: [PATCH] add decorator skip_check_grad_ci for test_group_norm (#21910) * add decorator skip_check_grad_ci for test_group_norm test=develop --- .../paddle/fluid/tests/unittests/test_group_norm_op.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/python/paddle/fluid/tests/unittests/test_group_norm_op.py b/python/paddle/fluid/tests/unittests/test_group_norm_op.py index 6f3961fc03..eb69e283a3 100644 --- a/python/paddle/fluid/tests/unittests/test_group_norm_op.py +++ b/python/paddle/fluid/tests/unittests/test_group_norm_op.py @@ -19,7 +19,7 @@ import numpy as np from operator import mul import paddle.fluid.core as core import paddle.fluid as fluid -from op_test import OpTest +from op_test import OpTest, skip_check_grad_ci from testsuite import create_op @@ -151,6 +151,10 @@ class TestGroupNormOpBigEps3(TestGroupNormOp): self.attrs['epsilon'] = 0.5 +@skip_check_grad_ci( + reason='''This test case is used to ensure whether the gradient checking results between CPU and GPU + are consistent when using the same inputs, thus, it doesn't need to call check_grad.''' +) class TestGroupNormOpLargeData(TestGroupNormOp): def init_test_case(self): self.shape = (2, 32, 64, 64) @@ -190,6 +194,10 @@ class TestGroupNormOpBigEps3_With_NHWC(TestGroupNormOp): self.data_format = "NHWC" +@skip_check_grad_ci( + reason='''This test case is used to ensure whether the gradient checking results between CPU and GPU + are consistent when using the same inputs, thus, it doesn't need to call check_grad.''' +) class TestGroupNormOpLargeData_With_NHWC(TestGroupNormOp): def init_test_case(self): self.shape = (2, 64, 32, 32) # NCHW -- GitLab