Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix typos in axis checking #27

Merged
merged 11 commits into from
Sep 9, 2021
2 changes: 1 addition & 1 deletion python/paddle/tensor/fft.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def _check_fft_axes(x, axes):
"Length of fft axes should not be larger than the rank of input. "
"Received, len of axes: {}, rank of x: {}".format(len(axes), ndim))
for axis in axes:
if not isinstance(size, int) or axis < -ndim or axis >= ndim:
if not isinstance(axis, int) or axis < -ndim or axis >= ndim:
raise ValueError("FFT axes {} contains invalid value ({})".format(
axes, axis))

Expand Down