Skip to content

Commit b3db32b

Browse files
Update onnxscript/_internal/converter.py
Co-authored-by: Justin Chu <[email protected]>
1 parent 0834bec commit b3db32b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

onnxscript/_internal/converter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ def _to_onnx_attr_ref(
354354
msg = f"Unsupported attribute type {pytype!r}."
355355
fail(info.msg(msg) if info else msg)
356356
attr_type = ir.AttributeType(ta.pytype_to_attrtype(pytype))
357-
return ir.Attr(attrname, attr_type, None, val.value.name)
357+
return ir.Attr(attrname, attr_type, value=None, ref_attr_name=val.value.name)
358358

359359
def _to_onnx_var(
360360
self,

0 commit comments

Comments
 (0)