Skip to content

Commit

Permalink
fix: minor improvement in mean for paddle backend
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksondm33 committed Feb 22, 2024
1 parent eeecaf7 commit be5768e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ivy/functional/backends/paddle/statistical.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def mean(
if 0 in x.shape:
shape = _calculate_reduced_shape(x, axis, keepdims)
ret = paddle.empty(shape)
if paddle.is_complex(x):
elif paddle.is_complex(x):
ret = paddle.complex(
paddle.mean(x.real(), axis=axis, keepdim=keepdims),
paddle.mean(x.imag(), axis=axis, keepdim=keepdims),
Expand Down

0 comments on commit be5768e

Please sign in to comment.