Skip to content

Commit 7b477ab

Browse files
Add linter to register schema upgraders for torch_call_dispatcher
ghstack-source-id: 3d43625 Pull Request resolved: #166997
1 parent 2317b9c commit 7b477ab

File tree

6 files changed

+841
-0
lines changed

6 files changed

+841
-0
lines changed

.lintrunner.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1777,3 +1777,17 @@ command = [
17771777
'--',
17781778
'@{{PATHSFILE}}'
17791779
]
1780+
1781+
[[linter]]
1782+
code = 'STABLE_NATIVE_FUNCTION_SCHEMA'
1783+
include_patterns = [
1784+
'aten/src/ATen/native/native_functions.yaml',
1785+
'torch/csrc/stable/ops.h',
1786+
'torch/csrc/stable/native_ops.txt',
1787+
]
1788+
command = [
1789+
'python3',
1790+
'tools/linter/adapters/native_function_schema_linter.py',
1791+
'--',
1792+
'@{{PATHSFILE}}'
1793+
]

0 commit comments

Comments
 (0)