Skip to content

Commit 0abd9ff

Browse files
authored
fix mea get pad no default return bug (#54647)
1 parent e93e48e commit 0abd9ff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

paddle/phi/kernels/funcs/get_pad_lse.cu.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ phi::DenseTensor get_pad_lse(const phi::GPUContext& dev_ctx,
9191
ViewSliceHelper<T><<<grid, block, 0, dev_ctx.stream()>>>(
9292
in_data, stride, in_dim[2], out_second_dim);
9393
return *lse;
94+
} else {
95+
return *lse;
9496
}
9597
}
9698
} // namespace funcs

0 commit comments

Comments
 (0)