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);