From f2063178adb7611d3a60f5a78918fa09627e7cd4 Mon Sep 17 00:00:00 2001 From: "G. Ramalingam" Date: Thu, 19 Dec 2024 09:51:35 -0800 Subject: [PATCH] Add missing close parenthesis in conversion to script (#1978) The tool for converting onnx model to onnxscript code has a missing parenthesis when generating external data tensor descriptor. --- onnxscript/backend/onnx_export.py | 1 + 1 file changed, 1 insertion(+) diff --git a/onnxscript/backend/onnx_export.py b/onnxscript/backend/onnx_export.py index 47720951e..c8a6a9a64 100644 --- a/onnxscript/backend/onnx_export.py +++ b/onnxscript/backend/onnx_export.py @@ -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)))