8000 Update · pytorch/pytorch@200da36 · GitHub
[go: up one dir, main page]

Skip to content

Commit 200da36

Browse files
committed
Update
[ghstack-poisoned]
1 parent 5b18961 commit 200da36

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

torch/onnx/_internal/exporter/_registration.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,9 @@ def from_torchlib(cls) -> ONNXRegistry:
163163
# TODO(justinchuby): Remove this once torchlib is migrated to PyTorch
164164
torchlib_ops = onnxscript_apis.get_torchlib_ops()
165165

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
169169
try:
170170
# NOTE: This is heavily guarded with try-except because we don't want
171171
# to fail the entire registry population if one function fails.
@@ -178,7 +178,7 @@ def from_torchlib(cls) -> ONNXRegistry:
178178
fx_target=target,
179179
signature=None,
180180
is_custom=False,
181-
is_complex=meta.is_complex,
181+
is_complex=torchlib_meta.is_complex,
182182
)
183183
registry._register(target, meta)
184184
except Exception:

0 commit comments

Comments
 (0)
0