From 0abd9ffdf30c76c3d118ce5cb7d951e1c2be9200 Mon Sep 17 00:00:00 2001 From: Chitsing KUI Date: Thu, 15 Jun 2023 17:01:39 +0800 Subject: [PATCH] fix mea get pad no default return bug (#54647) --- paddle/phi/kernels/funcs/get_pad_lse.cu.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/paddle/phi/kernels/funcs/get_pad_lse.cu.h b/paddle/phi/kernels/funcs/get_pad_lse.cu.h index 7ae92545c549d..0fb582f342a65 100644 --- a/paddle/phi/kernels/funcs/get_pad_lse.cu.h +++ b/paddle/phi/kernels/funcs/get_pad_lse.cu.h @@ -91,6 +91,8 @@ phi::DenseTensor get_pad_lse(const phi::GPUContext& dev_ctx, ViewSliceHelper<<>>( in_data, stride, in_dim[2], out_second_dim); return *lse; + } else { + return *lse; } } } // namespace funcs