Companion

object Companion

Functions

Link copied to clipboard
fun create(engine: ERROR CLASS: Symbol not found for Engine, name: String = "LiteRtLmModel"): LiteRtLmModel

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

fun create(config: ERROR CLASS: Symbol not found for EngineConfig, name: String = "LiteRtLmModel"): LiteRtLmModel

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

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

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