We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 209c5ac commit 702ee4fCopy full SHA for 702ee4f
.lintrunner.toml
@@ -392,10 +392,7 @@ command = [
392
"lintrunner_adapters",
393
"run",
394
"grep_linter",
395
- "--pattern=\\bfrom torch\\.ao\\.quantization\\.quantizer(?:\\.[A-Za-z0-9_]+)*\\b",
396
- "--pattern=\\bfrom torch\\.ao\\.quantization\\.observer(?:\\.[A-Za-z0-9_]+)*\\b",
397
- "--pattern=\\bfrom torch\\.ao\\.quantization\\.quantize_pt2e(?:\\.[A-Za-z0-9_]+)*\\b",
398
- "--pattern=\\bfrom torch\\.ao\\.quantization\\.pt2e(?:\\.[A-Za-z0-9_]+)*\\b",
+ "--pattern=\\bfrom torch\\.ao\\.quantization\\.(?:quantizer|observer|quantize_pt2e|pt2e)(?:\\.[A-Za-z0-9_]+)*\\b",
399
"--linter-name=TorchAOImport",
400
"--error-name=Prohibited torch.ao.quantization import",
401
"""--error-description=\
0 commit comments