mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Enable all flake8-logging-format rules (#164655)
These rules are enabled by removing existing suppressions. Pull Request resolved: https://github.com/pytorch/pytorch/pull/164655 Approved by: https://github.com/janeyx99, https://github.com/mlazos
This commit is contained in:
committed by
PyTorch MergeBot
parent
c4f6619330
commit
3255e7872b
@ -72,7 +72,7 @@ try:
|
||||
except ImportError as e:
|
||||
# In FBCode we separate FX out into a separate target for the sake of dev
|
||||
# velocity. These are covered by a separate test target `quantization_fx`
|
||||
log.warning(e)
|
||||
log.warning(e) # noqa:G200
|
||||
|
||||
# PyTorch 2 Export Quantization
|
||||
try:
|
||||
@ -94,7 +94,7 @@ try:
|
||||
except ImportError as e:
|
||||
# In FBCode we separate PT2 out into a separate target for the sake of dev
|
||||
# velocity. These are covered by a separate test target `quantization_pt2e`
|
||||
log.warning(e)
|
||||
log.warning(e) # noqa:G200
|
||||
|
||||
try:
|
||||
from quantization.fx.test_numeric_suite_fx import TestFXGraphMatcher # noqa: F401
|
||||
@ -103,7 +103,7 @@ try:
|
||||
from quantization.fx.test_numeric_suite_fx import TestFXNumericSuiteNShadows # noqa: F401
|
||||
from quantization.fx.test_numeric_suite_fx import TestFXNumericSuiteCoreAPIsModels # noqa: F401
|
||||
except ImportError as e:
|
||||
log.warning(e)
|
||||
log.warning(e) # noqa:G200
|
||||
|
||||
# Test the model report module
|
||||
try:
|
||||
@ -115,19 +115,19 @@ try:
|
||||
from quantization.fx.test_model_report_fx import TestFxDetectOutliers # noqa: F401
|
||||
from quantization.fx.test_model_report_fx import TestFxModelReportVisualizer # noqa: F401
|
||||
except ImportError as e:
|
||||
log.warning(e)
|
||||
log.warning(e) # noqa:G200
|
||||
|
||||
# Equalization for FX mode
|
||||
try:
|
||||
from quantization.fx.test_equalize_fx import TestEqualizeFx # noqa: F401
|
||||
except ImportError as e:
|
||||
log.warning(e)
|
||||
log.warning(e) # noqa:G200
|
||||
|
||||
# Backward Compatibility. Tests serialization and BC for quantized modules.
|
||||
try:
|
||||
from quantization.bc.test_backward_compatibility import TestSerialization # noqa: F401
|
||||
except ImportError as e:
|
||||
log.warning(e)
|
||||
log.warning(e) # noqa:G200
|
||||
|
||||
# JIT Graph Mode Quantization
|
||||
from quantization.jit.test_quantize_jit import TestQuantizeJit # noqa: F401
|
||||
@ -146,29 +146,29 @@ from quantization.ao_migration.test_ao_migration import TestAOMigrationNNIntrins
|
||||
try:
|
||||
from quantization.ao_migration.test_quantization_fx import TestAOMigrationQuantizationFx # noqa: F401
|
||||
except ImportError as e:
|
||||
log.warning(e)
|
||||
log.warning(e) # noqa:G200
|
||||
|
||||
# Experimental functionality
|
||||
try:
|
||||
from quantization.core.experimental.test_bits import TestBitsCPU # noqa: F401
|
||||
except ImportError as e:
|
||||
log.warning(e)
|
||||
log.warning(e) # noqa:G200
|
||||
try:
|
||||
from quantization.core.experimental.test_bits import TestBitsCUDA # noqa: F401
|
||||
except ImportError as e:
|
||||
log.warning(e)
|
||||
log.warning(e) # noqa:G200
|
||||
try:
|
||||
from quantization.core.experimental.test_floatx import TestFloat8DtypeCPU # noqa: F401
|
||||
except ImportError as e:
|
||||
log.warning(e)
|
||||
log.warning(e) # noqa:G200
|
||||
try:
|
||||
from quantization.core.experimental.test_floatx import TestFloat8DtypeCUDA # noqa: F401
|
||||
except ImportError as e:
|
||||
log.warning(e)
|
||||
log.warning(e) # noqa:G200
|
||||
try:
|
||||
from quantization.core.experimental.test_floatx import TestFloat8DtypeCPUOnlyCPU # noqa: F401
|
||||
except ImportError as e:
|
||||
log.warning(e)
|
||||
log.warning(e) # noqa:G200
|
||||
|
||||
if __name__ == '__main__':
|
||||
run_tests()
|
||||
|
Reference in New Issue
Block a user