File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1218,24 +1218,24 @@ def _serialize_opset_imports_into(
12181218 opset_ids .add (domain = domain , version = version )
12191219
12201220
1221- def _serialize_metadata_props_into (
1221+ def _serialize_string_string_maps (
12221222 string_string_entries : proto_containers .RepeatedCompositeFieldContainer [
12231223 onnx .StringStringEntryProto
12241224 ],
12251225 from_ : Mapping [str , str ],
12261226) -> None :
1227- """Serialize metadata properties into a repeated field of string-string entries.
1227+ """Serialize a <str, str> mapping into a repeated field of string-string entries.
12281228
12291229 Args:
12301230 string_string_entries: The repeated field to serialize into.
1231- from_: The mapping of metadata properties to serialize.
1231+ from_: The mapping of a <str, str> mapping to serialize.
12321232 """
12331233 # Sort names for deterministic serialization
12341234 for key in sorted (from_ ):
12351235 string_string_entries .add (key = key , value = from_ [key ])
12361236
12371237
1238- _serialize_string_string_maps = _serialize_metadata_props_into
1238+ _serialize_metadata_props_into = _serialize_string_string_maps
12391239
12401240
12411241def _maybe_add_quantization_annotation (
You can’t perform that action at this time.
0 commit comments