create

fun create(engine: <Error class: unknown class>, name: String = "LiteRtLmModel"): LiteRtLmModel

Creates a LiteRtLmModel instance with a pre-created Engine. The caller is responsible for closing the Engine.


fun create(engine: LiteRtLmEngine, name: String = "LiteRtLmModel"): LiteRtLmModel

Creates a LiteRtLmModel instance with a custom LiteRtLmEngine. Used primarily for testing.


fun create(config: <Error class: unknown class>, name: String = "LiteRtLmModel"): LiteRtLmModel

Creates a LiteRtLmModel instance that owns the Engine. The Engine will be closed when this model is closed.