Skip to content

Commit

Permalink
Merge pull request #106 from descriptinc/ag/real
Browse files Browse the repository at this point in the history
Fix to use `real` instead of `real()`
  • Loading branch information
anjoola authored Feb 1, 2024
2 parents a1a2c86 + 41c08ff commit 7776c29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/core/test_grad.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def _test_audio_grad(attr: str, target=True, kwargs: dict = {}):
if result.stft_data is not None:
result.istft()
if result.audio_data.dtype.is_complex:
result.audio_data.real().sum().backward()
result.audio_data.real.sum().backward()
else:
result.audio_data.sum().backward()
else:
Expand Down

0 comments on commit 7776c29

Please sign in to comment.