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

[torchlib] Fix _fft_c2r #1844

Draft
wants to merge 18 commits into
base: main
Choose a base branch
from

ahh

af7a47c
Select commit
Loading
Failed to load commit list.
Draft

[torchlib] Fix _fft_c2r #1844

ahh
af7a47c
Select commit
Loading
Failed to load commit list.
GitHub Advanced Security / lintrunner failed Sep 3, 2024 in 6s

13 new alerts including 4 errors

New alerts in code changed by this pull request

  • 4 errors
  • 9 warnings

See annotations below for details.

View all branch alerts.

Annotations

Check warning on line 1 in onnxscript/function_libs/torch_lib/ops/fft.py

See this annotation in the file changed.

Code scanning / lintrunner

RUFF-FORMAT/format Warning

Run lintrunner -a to apply this patch.

Check warning on line 1 in onnxscript/function_libs/torch_lib/ops/fft.py

See this annotation in the file changed.

Code scanning / lintrunner

RUFF/format Warning

Run lintrunner -a to apply this patch.

Check warning on line 13 in onnxscript/function_libs/torch_lib/ops/fft.py

See this annotation in the file changed.

Code scanning / lintrunner

PYLINT/W0611 Warning

Unused Literal imported from typing (unused-import)
See unused-import. To disable, use # pylint: disable=unused-import

Check warning on line 13 in onnxscript/function_libs/torch_lib/ops/fft.py

See this annotation in the file changed.

Code scanning / lintrunner

RUFF/F401 Warning

typing.Literal imported but unused.
See https://docs.astral.sh/ruff/rules/unused-import

Check warning on line 38 in onnxscript/function_libs/torch_lib/ops/fft.py

See this annotation in the file changed.

Code scanning / lintrunner

PYLINT/W0613 Warning

Unused argument 'forward' (unused-argument)
See unused-argument. To disable, use # pylint: disable=unused-argument

Check warning on line 44 in onnxscript/function_libs/torch_lib/ops/fft.py

See this annotation in the file changed.

Code scanning / lintrunner

PYLINT/W0612 Warning

Unused variable 'signal_size' (unused-variable)
See unused-variable. To disable, use # pylint: disable=unused-variable

Check warning on line 44 in onnxscript/function_libs/torch_lib/ops/fft.py

See this annotation in the file changed.

Code scanning / lintrunner

RUFF/F841 Warning

Local variable signal\_size is assigned to but never used.
See https://docs.astral.sh/ruff/rules/unused-variable

Check warning on line 112 in onnxscript/function_libs/torch_lib/ops/fft.py

See this annotation in the file changed.

Code scanning / lintrunner

PYLINT/W0612 Warning

Unused variable 'ortho' (unused-variable)
See unused-variable. To disable, use # pylint: disable=unused-variable

Check warning on line 112 in onnxscript/function_libs/torch_lib/ops/fft.py

See this annotation in the file changed.

Code scanning / lintrunner

RUFF/F841 Warning

Local variable ortho is assigned to but never used.
See https://docs.astral.sh/ruff/rules/unused-variable

Check failure on line 127 in onnxscript/function_libs/torch_lib/ops/fft.py

See this annotation in the file changed.

Code scanning / lintrunner

PYLINT/E0602 Error

Undefined variable '_fftn_onnx_normalization' (undefined-variable)
See undefined-variable. To disable, use # pylint: disable=undefined-variable

Check failure on line 127 in onnxscript/function_libs/torch_lib/ops/fft.py

See this annotation in the file changed.

Code scanning / lintrunner

RUFF/F821 Error

Undefined name \_fftn\_onnx\_normalization.
See https://docs.astral.sh/ruff/rules/undefined-name

Check failure on line 172 in onnxscript/function_libs/torch_lib/ops/fft.py

See this annotation in the file changed.

Code scanning / lintrunner

PYLINT/E1123 Error

Unexpected keyword argument 'inverse' in function call (unexpected-keyword-arg)
See unexpected-keyword-arg. To disable, use # pylint: disable=unexpected-keyword-arg

Check failure on line 172 in onnxscript/function_libs/torch_lib/ops/fft.py

See this annotation in the file changed.

Code scanning / lintrunner

PYLINT/E1120 Error

No value for argument 'forward' in function call (no-value-for-parameter)
See no-value-for-parameter. To disable, use # pylint: disable=no-value-for-parameter