Skip to content

Commit ec661aa

Browse files
committed
converted_proto
1 parent 48bfc65 commit ec661aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

onnxscript/ir/passes/common/version_converter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def _partial_convert_version(proto: onnx.ModelProto) -> onnx.ModelProto:
7878
)
7979

8080
try:
81-
converted_model = _c_api_utils.call_onnx_api(
81+
converted_proto = _c_api_utils.call_onnx_api(
8282
func=_partial_convert_version, model=model
8383
)
8484
except Exception as e:
@@ -90,7 +90,7 @@ def _partial_convert_version(proto: onnx.ModelProto) -> onnx.ModelProto:
9090
)
9191
return ir.passes.PassResult(model, False)
9292

93-
converted_model = ir.from_proto(converted_model)
93+
converted_model = ir.from_proto(converted_proto)
9494

9595
# Recover the initializers in the converted model
9696
for input in converted_model.graph.inputs:

0 commit comments

Comments
 (0)