TensorBuffer

class TensorBuffer 
: JniHandle 

TensorBuffer represents the raw memory where tensor data is stored.

Summary

Protected functions

open Unit
destroy ()

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
close ()

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

Public functions

writeBoolean

@ <Error class: unknown class> 

fun  writeBoolean (data:  BooleanArray ):  Unit

writeFloat

@ <Error class: unknown class> 

fun  writeFloat (data:  FloatArray ):  Unit

writeInt

@ <Error class: unknown class> 

fun  writeInt (data:  IntArray ):  Unit

writeInt8

@ <Error class: unknown class> 

fun  writeInt8 (data:  ByteArray ):  Unit

Protected functions

destroy

protected open fun  destroy 
():  Unit 

Clean up resources associated with the handle.

Create a Mobile Website
View Site in Mobile | Classic
Share by: