Skip to content

Commit bfa4699

Browse files
authored
Rename the metadata_props param in Model init (#32)
Previously there was a typo. Corrected in microsoft/onnxscript#2304 Signed-off-by: Justin Chu <[email protected]>
1 parent 4e5b3fb commit bfa4699

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/onnx_ir/_core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2801,7 +2801,7 @@ def __init__(
28012801
model_version: int | None = None,
28022802
doc_string: str | None = None,
28032803
functions: Sequence[Function] = (),
2804-
meta_data_props: dict[str, str] | None = None,
2804+
metadata_props: dict[str, str] | None = None,
28052805
) -> None:
28062806
self.graph: Graph = graph
28072807
self.ir_version = ir_version
@@ -2812,7 +2812,7 @@ def __init__(
28122812
self.doc_string = doc_string
28132813
self._functions = {func.identifier(): func for func in functions}
28142814
self._metadata: _metadata.MetadataStore | None = None
2815-
self._metadata_props: dict[str, str] | None = meta_data_props
2815+
self._metadata_props: dict[str, str] | None = metadata_props
28162816

28172817
@property
28182818
def functions(self) -> dict[_protocols.OperatorIdentifier, Function]:

src/onnx_ir/serde.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ def deserialize_model(proto: onnx.ModelProto) -> _core.Model:
511511
model_version=_get_field(proto, "model_version"),
512512
doc_string=_get_field(proto, "doc_string"),
513513
functions=functions,
514-
meta_data_props=deserialize_metadata_props(proto.metadata_props),
514+
metadata_props=deserialize_metadata_props(proto.metadata_props),
515515
)
516516

517517
# Handle experimental value info for functions created by the dynamo exporter in IR version 9

0 commit comments

Comments
 (0)