From c2f39431aa3d5e73d8a9aa2204fde39119062961 Mon Sep 17 00:00:00 2001 From: Aurelius84 Date: Thu, 6 Feb 2020 08:38:26 +0800 Subject: [PATCH] add skip_check_grad_ci of var_conv_2d (#22451) * add skip_check_grad_ci of var_conv_2d test=develop * modify check_shape_white_list test=develop --- python/paddle/fluid/tests/unittests/test_var_conv_2d.py | 5 ++++- .../tests/unittests/white_list/check_shape_white_list.py | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/python/paddle/fluid/tests/unittests/test_var_conv_2d.py b/python/paddle/fluid/tests/unittests/test_var_conv_2d.py index 0a2dbf72712..db5debdb432 100644 --- a/python/paddle/fluid/tests/unittests/test_var_conv_2d.py +++ b/python/paddle/fluid/tests/unittests/test_var_conv_2d.py @@ -16,7 +16,7 @@ from __future__ import print_function import unittest import numpy as np -from op_test import OpTest +from op_test import OpTest, skip_check_grad_ci class TestVarConv2dOp(OpTest): @@ -244,6 +244,9 @@ class TestVarConv2dOpCase5(TestVarConv2dOp): col) +@skip_check_grad_ci( + reason="[skip shape check] Use shape of input_channel, row and col all is 1 to test special LoDTensor." +) class TestVarConv2dOpCase6(TestVarConv2dOp): def set_data(self): input_channel = 1 diff --git a/python/paddle/fluid/tests/unittests/white_list/check_shape_white_list.py b/python/paddle/fluid/tests/unittests/white_list/check_shape_white_list.py index 82d86fd2e5a..f2f70bf874b 100644 --- a/python/paddle/fluid/tests/unittests/white_list/check_shape_white_list.py +++ b/python/paddle/fluid/tests/unittests/white_list/check_shape_white_list.py @@ -35,5 +35,4 @@ NEED_TO_FIX_OP_LIST = [ 'spp', 'squared_l2_distance', 'tree_conv', - 'var_conv_2d', ] -- GitLab