module documentation

Undocumented

Class Metadata Undocumented
Function get_metadata Extract input and output metadata from a supported model file.
Function _get_metadata_ir Extract metadata from an OpenVINO IR model.
Function _get_metadata_onnx Extract metadata from an ONNX model.
Function _get_metadata_tflite Extract metadata from a TFLite model.
def get_metadata(model_path: Path) -> Metadata:

Extract input and output metadata from a supported model file.

Parameters
model_path:PathPath to an ONNX, OpenVINO IR, or TFLite model.
Returns
MetadataInput and output shapes and dtypes for the model.
Raises
ValueErrorIf the model format is unsupported.
def _get_metadata_ir(bin_path: Path, xml_path: Path) -> Metadata:

Extract metadata from an OpenVINO IR model.

def _get_metadata_onnx(onnx_path: Path) -> Metadata:

Extract metadata from an ONNX model.

def _get_metadata_tflite(model_path: Path) -> Metadata:

Extract metadata from a TFLite model.