Skip to content

Commit

Permalink
Add missing close parenthesis in conversion to script (#1978)
Browse files Browse the repository at this point in the history
The tool for converting onnx model to onnxscript code has a missing
parenthesis when generating external data tensor descriptor.
  • Loading branch information
gramalingam authored Dec 19, 2024
1 parent f0769c3 commit f206317
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions onnxscript/backend/onnx_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ def _translate_attributes(self, node):
text += f", offset={metadata.offset!r}"
if metadata.length:
text += f", length={metadata.length!r}"
text += ")"
attributes.append((at.name, text))
continue
attributes.append((at.name, repr(value)))
Expand Down

0 comments on commit f206317

Please sign in to comment.