diff --git a/python/paddle/fluid/tests/unittests/test_bicubic_interp_v2_op.py b/python/paddle/fluid/tests/unittests/test_bicubic_interp_v2_op.py index ed581eb724ffc858eee47b3ff8c5cedb2e428836..98560742135c3a5d0ae0677513625107e90c9c8b 100644 --- a/python/paddle/fluid/tests/unittests/test_bicubic_interp_v2_op.py +++ b/python/paddle/fluid/tests/unittests/test_bicubic_interp_v2_op.py @@ -29,14 +29,14 @@ def bicubic_interp_test(x, OutSize=None, SizeTensor=None, Scale=None, - data_layout='NCHW', + data_layout='kNCHW', out_d=-1, out_h=-1, out_w=-1, scale=[], - interp_method='linear', - align_corners=False, - align_mode=1): + interp_method='bicubic', + align_corners=True, + align_mode=0): if isinstance(scale, float) or isinstance(scale, int): scale_list = [] for _ in range(len(x.shape) - 2): diff --git a/python/paddle/fluid/tests/unittests/test_bilinear_interp_v2_op.py b/python/paddle/fluid/tests/unittests/test_bilinear_interp_v2_op.py index 06c3db0e79dffc6a2f09698def9985d6dbd77b0a..9ef3a508fc358068f53787868974cffa8bfb48e5 100755 --- a/python/paddle/fluid/tests/unittests/test_bilinear_interp_v2_op.py +++ b/python/paddle/fluid/tests/unittests/test_bilinear_interp_v2_op.py @@ -32,9 +32,9 @@ def bilinear_interp_test(x, out_h=-1, out_w=-1, scale=[], - interp_method='linear', - align_corners=False, - align_mode=1): + interp_method='bilinear', + align_corners=True, + align_mode=0): if isinstance(scale, float) or isinstance(scale, int): scale_list = [] for _ in range(len(x.shape) - 2): diff --git a/python/paddle/fluid/tests/unittests/test_linear_interp_v2_op.py b/python/paddle/fluid/tests/unittests/test_linear_interp_v2_op.py index 6782820070ccda205aaff575ed973b52d5f59ceb..ed6b833956b1a9fc5c445531d52424c156845eb1 100755 --- a/python/paddle/fluid/tests/unittests/test_linear_interp_v2_op.py +++ b/python/paddle/fluid/tests/unittests/test_linear_interp_v2_op.py @@ -34,8 +34,8 @@ def linear_interp_test(x, out_w=-1, scale=[], interp_method='linear', - align_corners=False, - align_mode=1): + align_corners=True, + align_mode=0): if isinstance(scale, float) or isinstance(scale, int): scale_list = [] for _ in range(len(x.shape) - 2): diff --git a/python/paddle/fluid/tests/unittests/test_nearest_interp_v2_op.py b/python/paddle/fluid/tests/unittests/test_nearest_interp_v2_op.py index d2735eaf4b4ce99a2f3d5b6adc6c290c456be558..ae58a7fe900e80d40213b7fc87b92f824ef1bc34 100755 --- a/python/paddle/fluid/tests/unittests/test_nearest_interp_v2_op.py +++ b/python/paddle/fluid/tests/unittests/test_nearest_interp_v2_op.py @@ -35,9 +35,9 @@ def nearest_interp_test(x, out_h=-1, out_w=-1, scale=[], - interp_method='linear', - align_corners=False, - align_mode=1): + interp_method='nearest', + align_corners=True, + align_mode=0): if isinstance(scale, float) or isinstance(scale, int): scale_list = [] for _ in range(len(x.shape) - 2): diff --git a/python/paddle/fluid/tests/unittests/test_trilinear_interp_v2_op.py b/python/paddle/fluid/tests/unittests/test_trilinear_interp_v2_op.py index b0bb25319fd43a6705cd80696f9938040bf92d9e..6aace168ec5261f7b3af0910f5d1609f5cb260d9 100755 --- a/python/paddle/fluid/tests/unittests/test_trilinear_interp_v2_op.py +++ b/python/paddle/fluid/tests/unittests/test_trilinear_interp_v2_op.py @@ -35,9 +35,9 @@ def trilinear_interp_test(x, out_h=-1, out_w=-1, scale=[], - interp_method='linear', - align_corners=False, - align_mode=1): + interp_method='trilinear', + align_corners=True, + align_mode=0): if isinstance(scale, float) or isinstance(scale, int): scale_list = [] for _ in range(len(x.shape) - 2):