The following issues were found
torch/fft/__init__.py
2 issues
Line: 1
Column: 1
import sys
import torch
from torch._C import _add_docstr, _fft # type: ignore[attr-defined]
from torch._torch_docs import factory_common_args, common_args
__all__ = ['fft', 'ifft', 'fft2', 'ifft2', 'fftn', 'ifftn',
'rfft', 'irfft', 'rfft2', 'irfft2', 'rfftn', 'irfftn',
'hfft', 'ihfft', 'fftfreq', 'rfftfreq', 'fftshift', 'ifftshift',
Reported by Pylint.
Line: 1
Column: 1
import sys
import torch
from torch._C import _add_docstr, _fft # type: ignore[attr-defined]
from torch._torch_docs import factory_common_args, common_args
__all__ = ['fft', 'ifft', 'fft2', 'ifft2', 'fftn', 'ifftn',
'rfft', 'irfft', 'rfft2', 'irfft2', 'rfftn', 'irfftn',
'hfft', 'ihfft', 'fftfreq', 'rfftfreq', 'fftshift', 'ifftshift',
Reported by Pylint.
torch/for_onnx/__init__.py
2 issues
Line: 1
Column: 1
from .onnx import * # noqa: F403
Reported by Pylint.
Line: 1
Column: 1
from .onnx import * # noqa: F403
Reported by Pylint.
torch/fx/experimental/fx2trt/__init__.py
2 issues
Line: 1
Column: 1
from .converters import * # noqa: F403
Reported by Pylint.
Line: 1
Column: 1
from .converters import * # noqa: F403
Reported by Pylint.
torch/cpu/amp/__init__.py
2 issues
Line: 1
Column: 1
from .autocast_mode import autocast
Reported by Pylint.
Line: 1
Column: 1
from .autocast_mode import autocast
Reported by Pylint.
torch/cpu/__init__.py
2 issues
Line: 1
Column: 1
from . import amp
Reported by Pylint.
Line: 1
Column: 1
from . import amp
Reported by Pylint.
test/test_package.py
2 issues
Line: 13
Column: 5
if __name__ == "__main__":
from torch.testing._internal.common_utils import run_tests
run_tests()
Reported by Pylint.
Line: 1
Column: 1
def load_tests(loader, standard_tests, pattern):
"""Load all tests from `test/pacakge/`
"""
if pattern is None:
# Use the default pattern if none is specified by the test loader.
pattern = "test*.py"
package_tests = loader.discover("package", pattern=pattern)
standard_tests.addTests(package_tests)
return standard_tests
Reported by Pylint.
torch/autograd/_functions/__init__.py
2 issues
Line: 1
Column: 1
from .tensor import * # noqa: F403
Reported by Pylint.
Line: 1
Column: 1
from .tensor import * # noqa: F403
Reported by Pylint.
torch/ao/nn/sparse/quantized/dynamic/__init__.py
2 issues
Line: 1
Column: 1
from .linear import Linear
__all__ = [
"Linear",
]
Reported by Pylint.
Line: 1
Column: 1
from .linear import Linear
__all__ = [
"Linear",
]
Reported by Pylint.
torch/ao/nn/sparse/__init__.py
2 issues
Line: 1
Column: 1
from . import quantized
Reported by Pylint.
Line: 1
Column: 1
from . import quantized
Reported by Pylint.
torch/_storage_docs.py
2 issues
Line: 24
Column: 23
def add_docstr_all(method, docstr):
for cls_name in storage_classes:
cls = getattr(torch._C, cls_name)
try:
add_docstr(getattr(cls, method), docstr)
except AttributeError:
pass
Reported by Pylint.
Line: 22
Column: 1
]
def add_docstr_all(method, docstr):
for cls_name in storage_classes:
cls = getattr(torch._C, cls_name)
try:
add_docstr(getattr(cls, method), docstr)
except AttributeError:
Reported by Pylint.