Skip to content

Commit

Permalink
测试提交
Browse files Browse the repository at this point in the history
  • Loading branch information
liqitong-a committed Mar 17, 2022
1 parent 142c58f commit 85a9ee3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions python/paddle/tensor/linalg.py
Original file line number Diff line number Diff line change
Expand Up @@ -3053,9 +3053,8 @@ def corrcoef(x, rowvar=True, ddof=False, name=None):

# Clip to [-1, 1]. This does not guarantee
if paddle.is_complex(c):
c_real = paddle.clip(c.real(), -1, 1)
c_imag = paddle.clip(c.imag(), -1, 1)
return paddle.complex(c_real, c_imag)
return paddle.complex(
paddle.clip(c.real(), -1, 1), paddle.clip(c.imag(), -1, 1))
else:
c = paddle.clip(c, -1, 1)

Expand Down

0 comments on commit 85a9ee3

Please sign in to comment.