class
ModelArgs
PythonModel configuration for the conversion process.
ModelArgs()Model configuration for the conversion process.
attribute
path
Pythonpath: Path = Field(default_factory=lambda : ..., description='Path to target model file')Path to the model file.
attribute
subgraph
Pythonsubgraph: int = Field(0, ge=0, description='Subgraph index')Subgraph index to process.
attribute
type
Pythontype: ModelType | None = Field(None, description='Model file format: tflite or litert; without it, the file extension decides')Model file format, tflite or litert.
Without it, the format comes from the file extension.
attribute
name
Pythonname: str = Field('model', description='Model name')Name of the model.
attribute
description
Pythondescription: str | None = Field(None, description='Description of the model')Optional description of the model.
attribute
version
Pythonversion: str | None = Field(None, description='Model version; without it, the LiteRT schema version the model file records')Version of the model, recorded in the generated
documentation. Without it, the LiteRT schema version the model file
records (3) is shown.