Skip to content

Commit c226046

Browse files
committed
fix: minor improvement in mean for paddle backend
1 parent bd95195 commit c226046

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ivy/functional/backends/paddle/statistical.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def mean(
129129
if 0 in x.shape:
130130
shape = _calculate_reduced_shape(x, axis, keepdims)
131131
ret = paddle.empty(shape)
132-
if paddle.is_complex(x):
132+
elif paddle.is_complex(x):
133133
ret = paddle.complex(
134134
paddle.mean(x.real(), axis=axis, keepdim=keepdims),
135135
paddle.mean(x.imag(), axis=axis, keepdim=keepdims),

0 commit comments

Comments
 (0)