Skip to content

Commit 702ee4f

Browse files
committed
up
1 parent 209c5ac commit 702ee4f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.lintrunner.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -392,10 +392,7 @@ command = [
392392
"lintrunner_adapters",
393393
"run",
394394
"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",
395+
"--pattern=\\bfrom torch\\.ao\\.quantization\\.(?:quantizer|observer|quantize_pt2e|pt2e)(?:\\.[A-Za-z0-9_]+)*\\b",
399396
"--linter-name=TorchAOImport",
400397
"--error-name=Prohibited torch.ao.quantization import",
401398
"""--error-description=\

0 commit comments

Comments
 (0)