Skip to content

Commit dbb6922

Browse files
committed
Fix
1 parent 70a18ae commit dbb6922

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

paddle/phi/kernels/impl/matmul_kernel_impl.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2002,6 +2002,7 @@ void MatmulKernel(const Context& ctx,
20022002
bool transpose_y,
20032003
DenseTensor* out) {
20042004
if (x.numel() == 0 || y.numel() == 0) {
2005+
// input shape [1, 1, 5, 0], [1, 1, 0, 5], result shape is [1, 1, 5, 5]
20052006
phi::Full<T, Context>(
20062007
ctx, phi::IntArray(common::vectorize(out->dims())), 0, out);
20072008
return;

0 commit comments

Comments
 (0)