From 854e8071def93d8e31cdbd23677ad7dc25f0282d Mon Sep 17 00:00:00 2001 From: xiongkun Date: Fri, 23 Dec 2022 07:29:16 +0000 Subject: [PATCH] Revert "make bilinear interpolate stable. (#48644)" This reverts commit e1e8bf72031f77adfd44c843bfdc0f4b9541a62e. --- .../kernels/gpu/interpolate_grad_kernel.cu | 42 +++++++------------ 1 file changed, 14 insertions(+), 28 deletions(-) diff --git a/paddle/phi/kernels/gpu/interpolate_grad_kernel.cu b/paddle/phi/kernels/gpu/interpolate_grad_kernel.cu index e9f3643f66940..9a9d2e80abfb0 100644 --- a/paddle/phi/kernels/gpu/interpolate_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/interpolate_grad_kernel.cu @@ -25,8 +25,6 @@ #include "paddle/phi/kernels/funcs/math_function.h" #include "paddle/phi/kernels/primitive/datamover_primitives.h" -DECLARE_bool(cudnn_deterministic); - namespace phi { template @@ -1039,12 +1037,6 @@ static void Interpolate2DCUDABwd( #endif if (optimize_flag & is_nchw) { - if (FLAGS_cudnn_deterministic) { - VLOG(2) - << "Run grad kernel of bilinear interpolate 2d with single thread."; - config.block_per_grid = 1; - config.thread_per_block = 1; - } KeBilinearInterpBwShareMemory<< - <<>>( - input_grad_data, - in_h, - in_w, - out_h, - out_w, - n, - c, - ratio_h, - ratio_w, - output_grad_data, - align_type_value); + <<>>(input_grad_data, + in_h, + in_w, + out_h, + out_w, + n, + c, + ratio_h, + ratio_w, + output_grad_data, + align_type_value); } else { int64_t cw = c * out_w; auto interp_divmods = funcs::FastDivModForInterpolate(c, out_chw, cw);