File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments