File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ def find_multiple(n: int, *args: int) -> int:
179
179
return n + k - (n % k )
180
180
181
181
182
- def _register_custom_op (lib , implicit = True ):
182
+ def _register_custom_op (lib , decomposed = True ):
183
183
"""This decorator is used to preserve some high level operators for torch.export.export
184
184
while still allow them to be decomposed for inductor path
185
185
@@ -207,7 +207,7 @@ def _the_op_that_needs_to_be_preserved(...)
207
207
from torch ._inductor .decomposition import register_decomposition
208
208
209
209
dispatch_key = (
210
- "CompositeImplicitAutograd" if implicit else "CompositeExplicitAutograd"
210
+ "CompositeImplicitAutograd" if decomposed else "CompositeExplicitAutograd"
211
211
)
212
212
213
213
def decorator (fn ):
@@ -229,7 +229,7 @@ def decorator(fn):
229
229
230
230
lib_namespace = lib .ns
231
231
op = getattr (getattr (torch .ops , lib_namespace ), op_name )
232
- if implicit :
232
+ if decomposed :
233
233
register_decomposition ([op ])(fn )
234
234
return op
235
235
else :
You can’t perform that action at this time.
0 commit comments