File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
torch/onnx/_internal/exporter Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -163,9 +163,9 @@ def from_torchlib(cls) -> ONNXRegistry:
163
163
# TODO(justinchuby): Remove this once torchlib is migrated to PyTorch
164
164
torchlib_ops = onnxscript_apis .get_torchlib_ops ()
165
165
166
- for meta in torchlib_ops :
167
- qualified_name = meta .qualified_name
168
- overload_func = meta .function
166
+ for torchlib_meta in torchlib_ops :
167
+ qualified_name = torchlib_meta .qualified_name
168
+ overload_func = torchlib_meta .function
169
169
try :
170
170
# NOTE: This is heavily guarded with try-except because we don't want
171
171
# to fail the entire registry population if one function fails.
@@ -178,7 +178,7 @@ def from_torchlib(cls) -> ONNXRegistry:
178
178
fx_target = target ,
179
179
signature = None ,
180
180
is_custom = False ,
181
- is_complex = meta .is_complex ,
181
+ is_complex = torchlib_meta .is_complex ,
182
182
)
183
183
registry ._register (target , meta )
184
184
except Exception :
You can’t perform that action at this time.
0 commit comments