Package | Description |
---|---|
org.bytedeco.tensorflowlite | |
org.bytedeco.tensorflowlite.global |
Modifier and Type | Method and Description |
---|---|
TfLiteTensor |
TfLiteTensor.allocation_type(int setter) |
TfLiteTensor |
TfLiteTensor.allocation(Pointer setter) |
TfLiteTensor |
TfLiteTensor.buffer_handle(int setter) |
TfLiteTensor |
TfLiteTensor.bytes(long setter) |
TfLiteTensor |
TfLiteContext.GetTensor_TfLiteContext_int.call(TfLiteContext context,
int tensor_idx) |
TfLiteTensor |
TfLiteTensor.data_is_stale(boolean setter) |
TfLiteTensor |
TfLiteTensor.data(TfLitePtrUnion setter) |
TfLiteTensor |
TfLiteTensor.delegate(TfLiteDelegate setter) |
TfLiteTensor |
TfLiteTensor.dims_signature(TfLiteIntArray setter) |
TfLiteTensor |
TfLiteTensor.dims(TfLiteIntArray setter) |
TfLiteTensor |
TfLiteTensor.getPointer(long i) |
TfLiteTensor |
Interpreter.input_tensor_by_signature(BytePointer signature_input_name,
BytePointer signature_key)
\brief Returns the input tensor identified by 'signature_input_name' in
the signature identified by 'signature_key'.
|
TfLiteTensor |
Interpreter.input_tensor_by_signature(String signature_input_name,
String signature_key) |
TfLiteTensor |
SignatureRunner.input_tensor(BytePointer input_name)
Returns the input tensor identified by 'input_name' in the
given signature.
|
TfLiteTensor |
Interpreter.input_tensor(long index)
Return a mutable pointer to the given input tensor.
|
TfLiteTensor |
SignatureRunner.input_tensor(String input_name) |
TfLiteTensor |
TfLiteTensor.is_variable(boolean setter) |
TfLiteTensor |
TfLiteTensor.name(BytePointer setter) |
TfLiteTensor |
Interpreter.output_tensor_by_signature(BytePointer signature_output_name,
BytePointer signature_key)
\brief Returns the output tensor identified by 'signature_output_name' in
the signature identified by 'signature_key'.
|
TfLiteTensor |
Interpreter.output_tensor_by_signature(String signature_output_name,
String signature_key) |
TfLiteTensor |
SignatureRunner.output_tensor(BytePointer output_name)
Returns the output tensor identified by 'output_name' in the
given signature.
|
TfLiteTensor |
Interpreter.output_tensor(long index)
Return a mutable pointer to the given output tensor.
|
TfLiteTensor |
SignatureRunner.output_tensor(String output_name) |
TfLiteTensor |
TfLiteTensor.params(TfLiteQuantizationParams setter) |
TfLiteTensor |
TfLiteTensor.position(long position) |
TfLiteTensor |
TfLiteTensor.quantization(TfLiteQuantization setter) |
TfLiteTensor |
TfLiteTensor.sparsity(TfLiteSparsity setter) |
TfLiteTensor |
Subgraph.tensor(int tensor_index) |
TfLiteTensor |
Interpreter.tensor(int tensor_index)
Get a mutable tensor data structure.
|
TfLiteTensor |
GraphInfo.tensor(long index) |
TfLiteTensor |
GraphInfo.tensors() |
TfLiteTensor |
Subgraph.tensors() |
TfLiteTensor |
TfLiteContext.tensors()
An array of tensors in the interpreter context (of length
tensors_size ) |
TfLiteTensor |
TfLiteTensor.type(int setter) |
Modifier and Type | Method and Description |
---|---|
void |
TfLiteTensorDeleter.apply(TfLiteTensor t) |
int |
TfLiteDelegate.CopyFromBufferHandle_TfLiteContext_TfLiteDelegate_int_TfLiteTensor.call(TfLiteContext context,
TfLiteDelegate delegate,
int buffer_handle,
TfLiteTensor tensor) |
int |
TfLiteDelegate.CopyToBufferHandle_TfLiteContext_TfLiteDelegate_int_TfLiteTensor.call(TfLiteContext context,
TfLiteDelegate delegate,
int buffer_handle,
TfLiteTensor tensor) |
int |
TfLiteContext.ResizeTensorExplicit_TfLiteContext_TfLiteTensor_int_IntPointer.call(TfLiteContext ctx,
TfLiteTensor tensor,
int dims,
IntPointer shape) |
int |
TfLiteContext.ResizeTensor_TfLiteContext_TfLiteTensor_TfLiteIntArray.call(TfLiteContext arg0,
TfLiteTensor tensor,
TfLiteIntArray new_size) |
int |
Interpreter.SetBufferHandle(TfLiteTensor tensor,
int buffer_handle,
TfLiteDelegate delegate)
\warning This is an experimental API and subject to change.
|
TfLiteContext |
TfLiteContext.tensors(TfLiteTensor setter) |
Modifier and Type | Method and Description |
---|---|
static TfLiteTensor |
tensorflowlite.TfLiteInterpreterGetInputTensor(TfLiteInterpreter interpreter,
int input_index)
Returns the tensor associated with the input index.
|
static TfLiteTensor |
tensorflowlite.TfLiteInterpreterGetOutputTensor(TfLiteInterpreter interpreter,
int output_index)
Returns the tensor associated with the output index.
|
static TfLiteTensor |
tensorflowlite.TfLiteInterpreterGetTensor(TfLiteInterpreter interpreter,
int index)
Returns modifiable access to the tensor that corresponds to the
specified
index and is associated with the provided interpreter . |
static TfLiteTensor |
tensorflowlite.TfLiteInterpreterGetVariableTensor(TfLiteInterpreter interpreter,
int variable_index) |
static TfLiteTensor |
tensorflowlite.TfLiteSignatureRunnerGetInputTensor(TfLiteSignatureRunner signature_runner,
BytePointer input_name)
Returns the input tensor identified by
input_name in the given signature. |
static TfLiteTensor |
tensorflowlite.TfLiteSignatureRunnerGetInputTensor(TfLiteSignatureRunner signature_runner,
String input_name) |
static TfLiteTensor |
tensorflowlite.TfLiteSignatureRunnerGetOutputTensor(TfLiteSignatureRunner signature_runner,
BytePointer output_name)
Returns the output tensor identified by
output_name in the given
signature. |
static TfLiteTensor |
tensorflowlite.TfLiteSignatureRunnerGetOutputTensor(TfLiteSignatureRunner signature_runner,
String output_name) |
Modifier and Type | Method and Description |
---|---|
static boolean |
tensorflowlite.IsResourceOrVariant(TfLiteTensor tensor) |
static int |
tensorflowlite.TfLiteInterpreterSetBufferHandle(TfLiteInterpreter interpreter,
TfLiteTensor tensor,
int buffer_handle,
TfLiteOpaqueDelegateStruct delegate)
--------------------------------------------------------------------------
BufferHandle APIs
|
static long |
tensorflowlite.TfLiteTensorByteSize(TfLiteTensor tensor)
Returns the size of the underlying data in bytes.
|
static int |
tensorflowlite.TfLiteTensorCopy(TfLiteTensor src,
TfLiteTensor dst)
Copies the contents of
src in dst . |
static int |
tensorflowlite.TfLiteTensorCopyFromBuffer(TfLiteTensor tensor,
Pointer input_data,
long input_data_size)
Copies from the provided input buffer into the tensor's buffer.
|
static int |
tensorflowlite.TfLiteTensorCopyToBuffer(TfLiteTensor output_tensor,
Pointer output_data,
long output_data_size)
Copies to the provided output buffer from the tensor's buffer.
|
static Pointer |
tensorflowlite.TfLiteTensorData(TfLiteTensor tensor)
Returns a pointer to the underlying data buffer.
|
static void |
tensorflowlite.TfLiteTensorDataFree(TfLiteTensor t)
Free data memory of tensor
t . |
static int |
tensorflowlite.TfLiteTensorDim(TfLiteTensor tensor,
int dim_index)
Returns the length of the tensor in the "dim_index" dimension.
|
static void |
tensorflowlite.TfLiteTensorFree(TfLiteTensor t)
Free memory of tensor
t . |
static int |
tensorflowlite.TfLiteTensorGetAllocationStrategy(TfLiteTensor t)
Returns a tensor data allocation strategy.
|
static int |
tensorflowlite.TfLiteTensorGetBufferAddressStability(TfLiteTensor t)
Returns how stable a tensor data buffer address is across runs.
|
static int |
tensorflowlite.TfLiteTensorGetDataKnownStep(TfLiteTensor t)
Returns the operation step when the data of a tensor is populated.
|
static int |
tensorflowlite.TfLiteTensorGetDataStability(TfLiteTensor t)
Returns how stable a tensor data values are across runs.
|
static int |
tensorflowlite.TfLiteTensorGetShapeKnownStep(TfLiteTensor t)
Returns the operation steop when the shape of a tensor is computed.
|
static BytePointer |
tensorflowlite.TfLiteTensorName(TfLiteTensor tensor)
Returns the (null-terminated) name of the tensor.
|
static int |
tensorflowlite.TfLiteTensorNumDims(TfLiteTensor tensor)
Returns the number of dimensions that the tensor has.
|
static TfLiteQuantizationParams |
tensorflowlite.TfLiteTensorQuantizationParams(TfLiteTensor tensor)
Returns the parameters for asymmetric quantization.
|
static int |
tensorflowlite.TfLiteTensorRealloc(long num_bytes,
TfLiteTensor tensor)
Change the size of the memory block owned by
tensor to num_bytes . |
static void |
tensorflowlite.TfLiteTensorReset(int type,
BytePointer name,
TfLiteIntArray dims,
TfLiteQuantizationParams quantization,
byte[] buffer,
long size,
int allocation_type,
Pointer allocation,
boolean is_variable,
TfLiteTensor tensor) |
static void |
tensorflowlite.TfLiteTensorReset(int type,
BytePointer name,
TfLiteIntArray dims,
TfLiteQuantizationParams quantization,
ByteBuffer buffer,
long size,
int allocation_type,
Pointer allocation,
boolean is_variable,
TfLiteTensor tensor) |
static void |
tensorflowlite.TfLiteTensorReset(int type,
BytePointer name,
TfLiteIntArray dims,
TfLiteQuantizationParams quantization,
BytePointer buffer,
long size,
int allocation_type,
Pointer allocation,
boolean is_variable,
TfLiteTensor tensor)
Set all of a tensor's fields (and free any previously allocated data).
|
static void |
tensorflowlite.TfLiteTensorReset(int type,
String name,
TfLiteIntArray dims,
TfLiteQuantizationParams quantization,
byte[] buffer,
long size,
int allocation_type,
Pointer allocation,
boolean is_variable,
TfLiteTensor tensor) |
static void |
tensorflowlite.TfLiteTensorReset(int type,
String name,
TfLiteIntArray dims,
TfLiteQuantizationParams quantization,
ByteBuffer buffer,
long size,
int allocation_type,
Pointer allocation,
boolean is_variable,
TfLiteTensor tensor) |
static void |
tensorflowlite.TfLiteTensorReset(int type,
String name,
TfLiteIntArray dims,
TfLiteQuantizationParams quantization,
BytePointer buffer,
long size,
int allocation_type,
Pointer allocation,
boolean is_variable,
TfLiteTensor tensor) |
static int |
tensorflowlite.TfLiteTensorResizeMaybeCopy(long num_bytes,
TfLiteTensor tensor,
boolean preserve_data)
Change the size of the memory block owned by
tensor to num_bytes . |
static int |
tensorflowlite.TfLiteTensorType(TfLiteTensor tensor)
Returns the type of a tensor element.
|
Copyright © 2025. All rights reserved.