Skip to content

Commit

Permalink
fix metadata feature
Browse files Browse the repository at this point in the history
  • Loading branch information
inisis committed Nov 12, 2024
1 parent 8c82f56 commit 13318d6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,8 @@ def export_onnx(graph: Graph, do_type_check=True, **kwargs) -> "onnx.ModelProto"
kwargs["ir_version"] = graph.ir_version

model = onnx.helper.make_model(onnx_graph, **kwargs)
model.metadata_props.extend(graph.metadata_props)
if graph.metadata_props is not None:
model.metadata_props.extend(graph.metadata_props)
model.producer_name = graph.producer_name
model.producer_version = graph.producer_version
return model

0 comments on commit 13318d6

Please sign in to comment.