Skip to content

Commit 6c327ef

Browse files
ezyangfacebook-github-bot
authored andcommitted
matches_jit_signatures is dead (#53637)
Summary: Pull Request resolved: #53637 Signed-off-by: Edward Z. Yang <[email protected]> Test Plan: Imported from OSS Reviewed By: albanD Differential Revision: D26920687 Pulled By: ezyang fbshipit-source-id: 288bd9dca63da04ccc633d939833066a3305a68a
1 parent 6366658 commit 6c327ef

File tree

3 files changed

+0
-17
lines changed

3 files changed

+0
-17
lines changed

aten/src/ATen/native/README.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -365,20 +365,6 @@ you're a function that simply does not interact with any devices. In
365365
that case, code generation of the device guard can be disabled by adding
366366
`device_guard: False` to your function definition.
367367

368-
### `matches_jit_signature`
369-
370-
```
371-
matches_jit_signature: False
372-
```
373-
374-
This will indicate that the func syntax does not follow the JIT signature schema.
375-
If you are a triggering an assert related to JIT signature compliance
376-
try adding this field and setting it to False. In general, this serves as a means
377-
of tracking an ongoing schema unification with the goal of aligning func syntax
378-
with other components of PyTorch in order to reduce overall complexity.
379-
If you find yourself having to set this field to False add @gchanan to your PR's
380-
set of reviewers.
381-
382368
### `manual_kernel_registration`
383369

384370
```

tools/codegen/gen.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,6 @@ def compute_declaration_yaml(f: NativeFunction) -> object:
628628
('overload_name', str(f.func.name.overload_name)),
629629
('manual_kernel_registration', f.manual_kernel_registration),
630630
('category_override', f.category_override if f.category_override is not None else ''),
631-
('matches_jit_signature', True),
632631
('schema_string', f'aten::{f.func}'),
633632
('arguments', arguments),
634633
('schema_order_cpp_signature', schema_order_cpp_signature),

tools/shared/cwrap_common.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ def set_declaration_defaults(declaration):
2525
# This happens for legacy TH bindings like
2626
# _thnn_conv_depthwise2d_backward
2727
declaration['schema_string'] = ''
28-
if 'matches_jit_signature' not in declaration:
29-
declaration['matches_jit_signature'] = False
3028
declaration.setdefault('arguments', [])
3129
declaration.setdefault('return', 'void')
3230
if 'cname' not in declaration:

0 commit comments

Comments
 (0)