Model

class Model : JniHandle


Model represents a LiteRT model file.

Summary

Public companion functions

Model
Model

Protected functions

open Unit

Clean up resources associated with the handle.

Inherited functions

From com.google.ai.edge.litert.JniHandle
Unit

Asserts that the handle is not destroyed, otherwise throws an IllegalStateException.

final Unit

Clean up the handle safely to avoid releasing the same JNI handle multiple times.

Public companion functions

load

@<Error class: unknown class>
fun load(filePath: String): Model

load

@<Error class: unknown class>
fun load(assetManager: <Error class: unknown class>, assetName: String): Model

Protected functions

destroy

protected open fun destroy(): Unit

Clean up resources associated with the handle.