TensorBuffer

class TensorBuffer : JniHandle


TensorBuffer represents the raw memory where tensor data is stored.

Summary

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.

Protected functions

destroy

protected open fun destroy(): Unit

Clean up resources associated with the handle.