Model¶
- class onnx_ir.Model(graph, *, ir_version, producer_name=None, producer_version=None, domain=None, model_version=None, doc_string=None, functions=(), metadata_props=None)¶
- Parameters:
- doc_string¶
- domain¶
- graph¶
- ir_version¶
- model_version¶
- producer_name¶
- producer_version¶
- display(*, page=False)¶
Pretty print the object.
- Parameters:
page (bool) – Whether to page the output.
- Return type:
None
- graphs()[source]¶
Get all graphs and subgraphs in the model.
This is a convenience method to traverse the model. Consider using
onnx_ir.traversal.RecursiveGraphIterator
for more advanced traversals on nodes.
- property meta: MetadataStore¶
The metadata store for intermediate analysis.
Write to the
metadata_props
if you would like the metadata to be serialized to the ONNX proto.