From 5ba3040245fc0398160767aff59a3029ee139201 Mon Sep 17 00:00:00 2001 From: Yuang Liu Date: Fri, 21 Apr 2023 09:41:45 +0800 Subject: [PATCH] fix fused bias grad add nan (#53129) --- .../kernels/fusion/gpu/fused_linear_param_grad_add_kernel.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/phi/kernels/fusion/gpu/fused_linear_param_grad_add_kernel.cu b/paddle/phi/kernels/fusion/gpu/fused_linear_param_grad_add_kernel.cu index f39cc8acdc3..0840b6927a4 100644 --- a/paddle/phi/kernels/fusion/gpu/fused_linear_param_grad_add_kernel.cu +++ b/paddle/phi/kernels/fusion/gpu/fused_linear_param_grad_add_kernel.cu @@ -44,7 +44,7 @@ void FusedLinearParamGradAddImpl(const Context &ctx, DenseTensor *dbias_out) { constexpr bool kIsMultiPrecision = !std::is_same::value; - const bool fuse_bias_grad = kIsMultiPrecision && dweight_out; + const bool fuse_bias_grad = false; // kIsMultiPrecision && dweight_out; if (dweight_out) { phi::funcs::ComputeFusedGemmEpilogueBackward( ctx, -- GitLab