Skip to content

Commit a4c35fb

Browse files
committed
reorder
1 parent c934e52 commit a4c35fb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

onnxscript/ir/serde.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -656,17 +656,17 @@ def _deserialize_graph(
656656
# Do not include shape or type as we need to respect the ONNX file
657657
# if the shape or type is not provided as ValueInfoProto
658658
# The shape/type information will be filled in in the subsequent ValueInfoProto
659-
# deserialization step
659+
# deserialization step (deserialize_value_info_proto)
660660
const_value=tensor,
661661
)
662662
if initializer_name in value_info:
663663
# This is where we fill in the shape and type information for the initializer
664664
deserialize_value_info_proto(value_info[initializer_name], initializer_value)
665-
values[initializer_name] = initializer_value # type: ignore[index]
666665
if initializer_value.name in quantization_annotations:
667666
_deserialize_quantization_annotation(
668667
quantization_annotations[initializer_value.name], initializer_value
669668
)
669+
values[initializer_name] = initializer_value
670670
initializer_values.append(initializer_value)
671671

672672
# Deserialize nodes with all known values

0 commit comments

Comments
 (0)