ailia_tflite  1.2.4.0
Public Member Functions | Static Public Attributes | List of all members
ailiaTFLite.AiliaTFLite Class Reference

Public Member Functions

static Int32 ailiaTFLiteGetEnvironmentCount (ref UInt64 env_count)
 Get the number of available calculation environments. More...
 
static Int32 ailiaTFLiteGetEnvironment (Int32[] env)
 Get a list of calculation environments. More...
 
static Int32 ailiaTFLiteCreate (ref IntPtr instance, byte[] tflite, UInt64 tflite_length, IntPtr pmalloc, IntPtr pmemcpy, IntPtr pfree, IntPtr phandle, Int32 env_id, Int32 memory_mode, UInt32 flags)
 Create ailia TFLite runtime instances. More...
 
static void ailiaTFLiteDestroy (IntPtr instance)
 Discard the instance of ailia TFLite runtime. More...
 
static Int32 ailiaTFLiteGetCpuFeatures (IntPtr instance, ref Int32 cpu_features)
 Get the CPU instruction to use. More...
 
static Int32 ailiaTFLiteSetCpuFeatures (IntPtr instance, Int32 cpu_features)
 Set the CPU instruction to use. More...
 
static Int32 ailiaTFLiteGetDeviceCount (IntPtr instance, ref UInt64 device_count)
 Get the number of available devices. More...
 
static Int32 ailiaTFLiteGetDeviceName (IntPtr instance, Int32 device_idx, ref IntPtr name)
 Get the name of the specified index device. More...
 
static Int32 ailiaTFLiteGetDeviceExtraInfo (IntPtr instance, Int32 device_idx, ref IntPtr info)
 Get the detailed information of the specified index device. More...
 
static Int32 ailiaTFLiteSelectDevices (IntPtr instance, Int32[] device_idxes, UInt64 idx_count)
 Specify the index of the device to use. More...
 
static Int32 ailiaTFLiteGetSelectedDeviceIndexes (IntPtr instance, Int32[] device_idxes, ref UInt64 idx_count)
 Get the index and number of devices used. More...
 
static Int32 ailiaTFLiteAllocateTensors (IntPtr instance)
 Ensure the internal buffer of ailia TFLite runtime. More...
 
static Int32 ailiaTFLiteResizeInputTensor (IntPtr instance, Int32 input_index, Int32[] shape, Int32 dim)
 Change the shape of Tensor of the specified input index. More...
 
static Int32 ailiaTFLiteGetNumberOfInputs (IntPtr instance, ref Int32 num_of_input_tensor)
 Get the number of TENSOR in the TFLITE model. More...
 
static Int32 ailiaTFLiteGetInputTensorIndex (IntPtr instance, ref Int32 tensor_index, Int32 input_index)
 Get Tensor's index from index in Tensor. More...
 
static Int32 ailiaTFLiteGetNumberOfOutputs (IntPtr instance, ref Int32 num_of_output_tensor)
 Get the number of TENSOR of the TFLITE model. More...
 
static Int32 ailiaTFLiteGetOutputTensorIndex (IntPtr instance, ref Int32 tensor_index, Int32 output_index)
 Obtain Tensor's index from index of output Tensor. More...
 
static Int32 ailiaTFLiteGetTensorDimension (IntPtr instance, ref Int32 tensor_dim, Int32 tensor_index)
 Get the dimension of index number Tensor. More...
 
static Int32 ailiaTFLiteGetTensorShape (IntPtr instance, Int32[] shape, Int32 tensor_index)
 Get the shape of the index number Tensor. More...
 
static Int32 ailiaTFLiteGetTensorShapeSignature (IntPtr instance, Int32[] shape, Int32 tensor_index)
 Get the undecided dimensional form of Tensor of index number. More...
 
static Int32 ailiaTFLiteGetTensorType (IntPtr instance, ref sbyte tensor_type, Int32 tensor_index)
 Get the Data type of TENSOR in Index. More...
 
static Int32 ailiaTFLiteGetTensorBuffer (IntPtr instance, ref IntPtr buffer, Int32 tensor_index)
 Obtain a storage buffer in Tensor's data. More...
 
static Int32 ailiaTFLiteGetTensorName (IntPtr instance, ref IntPtr name, Int32 tensor_index)
 Get the name of the index number Tensor. More...
 
static Int32 ailiaTFLiteGetTensorQuantizationCount (IntPtr instance, ref Int32 count, Int32 tensor_index)
 Get the number of quantified parameters of index number Tensor. More...
 
static Int32 ailiaTFLiteGetTensorQuantizationScale (IntPtr instance, float[] scale, Int32 tensor_index)
 Get the scale of the quantified parameter of the index number TENSOR. More...
 
static Int32 ailiaTFLiteGetTensorQuantizationZeroPoint (IntPtr instance, Int64[] zero_point, Int32 tensor_index)
 Get the zero point of the quantified parameter of the index number TENSOR. More...
 
static Int32 ailiaTFLiteGetTensorQuantizationQuantizedDimension (IntPtr instance, ref Int32 axis, Int32 tensor_index)
 Get the axis of the integrated TENSOR quantization parameter. More...
 
static Int32 ailiaTFLitePredict (IntPtr instance)
 Do inference. More...
 
static Int32 ailiaTFLiteGetNodeCount (IntPtr instance, ref Int32 count)
 Get the number of node. More...
 
static Int32 ailiaTFLiteGetNodeOperator (IntPtr instance, ref Int32 op, Int32 node_index)
 Get node_index number Operator. More...
 
static Int32 ailiaTFLiteGetNodeInputCount (IntPtr instance, ref Int32 count, Int32 node_index)
 Node_index gets the number of node input. More...
 
static Int32 ailiaTFLiteGetNodeInputTensorIndex (IntPtr instance, ref Int32 tensor_index, Int32 node_index, Int32 input_index)
 Node_index Acquires the index of Tensor in the input input of node. More...
 
static Int32 ailiaTFLiteGetNodeOutputCount (IntPtr instance, ref Int32 count, Int32 node_index)
 Node_index gets the number of node output. More...
 
static Int32 ailiaTFLiteGetNodeOutputTensorIndex (IntPtr instance, ref Int32 tensor_index, Int32 node_index, Int32 output_index)
 
static Int32 ailiaTFLiteGetNodeOption (IntPtr instance, IntPtr value, Int32 node_index, string key)
 
static Int32 ailiaTFLiteGetOperatorName (ref IntPtr name, Int32 op)
 
static Int32 ailiaTFLiteSetProfileMode (IntPtr instance, Int32 mode)
 Set the profile mode. More...
 
static Int32 ailiaTFLiteGetSummaryLength (IntPtr instance, ref UInt64 buffer_size)
 Get the size of the buffer required for network Summary. More...
 
static Int32 ailiaTFLiteGetSummary (IntPtr instance, byte[] buffer, UInt64 buffer_size)
 Displays the name and shape of each node. More...
 
static Int32 ailiaTFLiteGetErrorDetail (IntPtr instance, ref IntPtr buffer)
 Returns the error details. More...
 
static Int32 ailiaTFLiteSetScratchBuffer (IntPtr instance, IntPtr int_buffer, UInt64 int_buffer_size, IntPtr mid_buffer, UInt64 mid_buffer_size, IntPtr ext_buffer, UInt64 ext_buffer_size)
 Set a scratch buffer. More...
 
static Int32 ailiaTFLiteGetScratchBufferUsage (IntPtr instance, ref UInt64 int_buffer_size, ref UInt64 mid_buffer_size, ref UInt64 ext_buffer_size)
 Get the maximum usage of the scratch buffer. More...
 
static Int32 ailiaTFLiteMklSetNumThreads (Int32 num_threads)
 Set the number of threads used by MKL. More...
 
static Int32 ailiaTFLiteMklDisableFastMM ()
 Disable the mkl fastmm. More...
 
static IntPtr ailiaTFLiteGetVersion ()
 Get the library version. More...
 

Static Public Attributes

const Int32 AILIA_TFLITE_TENSOR_TYPE_FLOAT32 =( 0)
 
const Int32 AILIA_TFLITE_TENSOR_TYPE_FLOAT16 =( 1)
 
const Int32 AILIA_TFLITE_TENSOR_TYPE_INT32 =( 2)
 
const Int32 AILIA_TFLITE_TENSOR_TYPE_UINT8 =( 3)
 
const Int32 AILIA_TFLITE_TENSOR_TYPE_INT64 =( 4)
 
const Int32 AILIA_TFLITE_TENSOR_TYPE_STRING =( 5)
 
const Int32 AILIA_TFLITE_TENSOR_TYPE_BOOL =( 6)
 
const Int32 AILIA_TFLITE_TENSOR_TYPE_INT16 =( 7)
 
const Int32 AILIA_TFLITE_TENSOR_TYPE_COMPLEX64 =( 8)
 
const Int32 AILIA_TFLITE_TENSOR_TYPE_INT8 =( 9)
 
const Int32 AILIA_TFLITE_STATUS_SUCCESS =( 0)
 
const Int32 AILIA_TFLITE_STATUS_INVALID_ARGUMENT =( -1)
 
const Int32 AILIA_TFLITE_STATUS_OUT_OF_RANGE =( -2)
 
const Int32 AILIA_TFLITE_STATUS_MEMORY_INSUFFICIENT =( -3)
 
const Int32 AILIA_TFLITE_STATUS_BROKEN_MODEL =( -4)
 
const Int32 AILIA_TFLITE_STATUS_INVALID_PARAMETER =( -5)
 
const Int32 AILIA_TFLITE_STATUS_PARAMETER_NOT_FOUND =( -6)
 
const Int32 AILIA_TFLITE_STATUS_UNSUPPORTED_OPCODE =( -7)
 
const Int32 AILIA_TFLITE_STATUS_LICENSE_NOT_FOUND =( -8)
 
const Int32 AILIA_TFLITE_STATUS_LICENSE_BROKEN =( -9)
 
const Int32 AILIA_TFLITE_STATUS_LICENSE_EXPIRED =( -10)
 
const Int32 AILIA_TFLITE_STATUS_INVALID_STATE =( -11)
 
const Int32 AILIA_TFLITE_STATUS_OTHER_ERROR =(-128)
 
const Int32 AILIA_TFLITE_ENV_REFERENCE =( 0)
 
const Int32 AILIA_TFLITE_ENV_NNAPI =( 1)
 
const Int32 AILIA_TFLITE_ENV_MMALIB =( 2)
 
const Int32 AILIA_TFLITE_ENV_MMALIB_COMPATIBLE =( 3)
 
const Int32 AILIA_TFLITE_MEMORY_MODE_DEFAULT =( 0)
 
const Int32 AILIA_TFLITE_MEMORY_MODE_REDUCE_INTERSTAGE =( 1)
 
const Int32 AILIA_TFLITE_PROFILE_MODE_DISABLE =( 0)
 
const Int32 AILIA_TFLITE_PROFILE_MODE_ENABLE =( 1)
 
const Int32 AILIA_TFLITE_PROFILE_MODE_TRACE =( 2)
 
const Int32 AILIA_TFLITE_PROFILE_MODE_MEMORY =( 4)
 
const UInt32 AILIA_TFLITE_FLAG_NONE =( 0)
 
const UInt32 AILIA_TFLITE_FLAG_INPUT_AND_OUTPUT_TENSORS_USE_SCRATCH =( 1)
 
const UInt32 AILIA_TFLITE_CPU_FEATURES_NONE =(0x00000000)
 
const UInt32 AILIA_TFLITE_CPU_FEATURES_NEON =(0x00000001)
 
const UInt32 AILIA_TFLITE_CPU_FEATURES_SSE2 =(0x00000002)
 
const UInt32 AILIA_TFLITE_CPU_FEATURES_SSE4_2 =(0x00000004)
 
const UInt32 AILIA_TFLITE_CPU_FEATURES_AVX =(0x00000008)
 
const UInt32 AILIA_TFLITE_CPU_FEATURES_AVX2 =(0x00000010)
 
const UInt32 AILIA_TFLITE_CPU_FEATURES_VNNI =(0x00000020)
 
const String LIBRARY_NAME ="ailia_tflite"
 

Member Function Documentation

◆ ailiaTFLiteAllocateTensors()

static Int32 ailiaTFLite.AiliaTFLite.ailiaTFLiteAllocateTensors ( IntPtr  instance)

Ensure the internal buffer of ailia TFLite runtime.

Parameters
instanceailia TFLite runtime instance pointer
Returns
If you succeed, return AILIA_TFLITE_STATUS_SUCCESS. If you fail, return AILIA_TFLITE_STATUS_XXX.

Update the internal shape and secure the buffer required for inference.

◆ ailiaTFLiteCreate()

static Int32 ailiaTFLite.AiliaTFLite.ailiaTFLiteCreate ( ref IntPtr  instance,
byte[]  tflite,
UInt64  tflite_length,
IntPtr  pmalloc,
IntPtr  pmemcpy,
IntPtr  pfree,
IntPtr  phandle,
Int32  env_id,
Int32  memory_mode,
UInt32  flags 
)

Create ailia TFLite runtime instances.

Parameters
instanceailia TFLite runtime Pointter to instance pointer
tflitePointter to TFLITE model
tflite_lengthTFLITE length (byte unit)
pmallocMALLOC function pointer (use malloc in the case of null)
pmemcpyMEMCPY function pointer (use Memcpy for null)
pfreeFREE function pointer (use free in the case of null)
phandleHandle passed to Memoria Locator (NULL when using standard allocator)
env_idProgress execution environment used for calculation (AILIA_TFLITE_ENV_NAPI_*)
memory_modeMemory mode (AILIA_TFLITE_MEMORY_MODE_*)
flagsFlag (logical sum of AILIA_TFLITE_FLAG_*)
Returns
If you succeed, return AILIA_TFLITE_STATUS_SUCCESS. If you fail, return AILIA_TFLITE_STATUS_XXX.

Open the TFLITE model and create ailia TFLite runtime instances. We will also secure the necessary internal buffers. If the instance fails, you need to call AILIATFLITEDESTROY if you store anything other than NULL in Instance.

◆ ailiaTFLiteDestroy()

static void ailiaTFLite.AiliaTFLite.ailiaTFLiteDestroy ( IntPtr  instance)

Discard the instance of ailia TFLite runtime.

Parameters
instanceailia TFLite runtime instance pointer

◆ ailiaTFLiteGetCpuFeatures()

static Int32 ailiaTFLite.AiliaTFLite.ailiaTFLiteGetCpuFeatures ( IntPtr  instance,
ref Int32  cpu_features 
)

Get the CPU instruction to use.

Parameters
instanceailia TFLite runtime instance pointer
cpu_featuresAILIA_TFLITE_CPU_FEATURES_XXX logical sum
Returns
If you succeed, return AILIA_TFLITE_STATUS_SUCCESS. If you fail, return AILIA_TFLITE_STATUS_XXX.

Get the CPU instruction to use. By default, it returns the CPU instruction obtained from the CPU information. After calling ailiaTFLiteSetCpuFeatures, return the set CPU instruction.

◆ ailiaTFLiteGetDeviceCount()

static Int32 ailiaTFLite.AiliaTFLite.ailiaTFLiteGetDeviceCount ( IntPtr  instance,
ref UInt64  device_count 
)

Get the number of available devices.

Parameters
instanceailia TFLite runtime instance pointer
device_countDevice storage destination
Returns
If you succeed, return AILIA_TFLITE_STATUS_SUCCESS. If you fail, return AILIA_TFLITE_STATUS_XXX.

Get the number of available devices.

◆ ailiaTFLiteGetDeviceExtraInfo()

static Int32 ailiaTFLite.AiliaTFLite.ailiaTFLiteGetDeviceExtraInfo ( IntPtr  instance,
Int32  device_idx,
ref IntPtr  info 
)

Get the detailed information of the specified index device.

Parameters
instanceailia TFLite runtime instance pointer
device_idxIndex number in the number acquired by AILIATFLITEGETDEVICECOUNT ()
infoDetailed information of the device information string storage destination
Returns
If you succeed, return AILIA_TFLITE_STATUS_SUCCESS. If you fail, return AILIA_TFLITE_STATUS_XXX.

Get the detailed information of the specified index device.

◆ ailiaTFLiteGetDeviceName()

static Int32 ailiaTFLite.AiliaTFLite.ailiaTFLiteGetDeviceName ( IntPtr  instance,
Int32  device_idx,
ref IntPtr  name 
)

Get the name of the specified index device.

Parameters
instanceailia TFLite runtime instance pointer
device_idxIndex number in the number acquired by AILIATFLITEGETDEVICECOUNT ()
nameDevice storage destination with the name of the device
Returns
If you succeed, return AILIA_TFLITE_STATUS_SUCCESS. If you fail, return AILIA_TFLITE_STATUS_XXX.

Get the name of the specified index device.

◆ ailiaTFLiteGetEnvironment()

static Int32 ailiaTFLite.AiliaTFLite.ailiaTFLiteGetEnvironment ( Int32[]  env)

Get a list of calculation environments.

Parameters
envArrangement of storage destination of calculation environmental information
Returns
If you succeed, return AILIA_TFLITE_STATUS_SUCCESS. If you fail, return AILIA_TFLITE_STATUS_XXX.

Give the size of the ailiaTFLiteGetEnvironmentCount() to input to the input.

◆ ailiaTFLiteGetEnvironmentCount()

static Int32 ailiaTFLite.AiliaTFLite.ailiaTFLiteGetEnvironmentCount ( ref UInt64  env_count)

Get the number of available calculation environments.

Parameters
env_countPointter to the number of calculation environment information
Returns
If you succeed, return AILIA_TFLITE_STATUS_SUCCESS. If you fail, return AILIA_TFLITE_STATUS_XXX.

◆ ailiaTFLiteGetErrorDetail()

static Int32 ailiaTFLite.AiliaTFLite.ailiaTFLiteGetErrorDetail ( IntPtr  instance,
ref IntPtr  buffer 
)

Returns the error details.

Parameters
instanceailia TFLite runtime instance pointer
bufferError detailed pointer to string

The string does not need to be released. The validity period of the string is to call the AILIA API.

◆ ailiaTFLiteGetInputTensorIndex()

static Int32 ailiaTFLite.AiliaTFLite.ailiaTFLiteGetInputTensorIndex ( IntPtr  instance,
ref Int32  tensor_index,
Int32  input_index 
)

Get Tensor's index from index in Tensor.

Parameters
instanceailia TFLite runtime instance pointer
tensor_indexPointer to the destination of Tensor's index
input_indexINDEX of input Tensor (0 ~ Number of input Tensor-1)
Returns
If you succeed, return AILIA_TFLITE_STATUS_SUCCESS. If INPUT_INDEX is out of range, AILIA_TFLITE_STATUS_OUT_OF_RANGE will be returned. In the case of other errors, return AILIA_TFLITE_STATUS_XXX.

Convert from index in Tensor to index of Tensor. The upper limit of INDEX is ailiaTFLiteGetNumberOfInputs() -1.

◆ ailiaTFLiteGetNodeCount()

static Int32 ailiaTFLite.AiliaTFLite.ailiaTFLiteGetNodeCount ( IntPtr  instance,
ref Int32  count 
)

Get the number of node.

Parameters
instanceailia TFLite runtime instance pointer
countPointter to the number of node stored
Returns
If you succeed, return AILIA_TFLITE_STATUS_SUCCESS. In the case of other errors, return AILIA_TFLITE_STATUS_XXX.

◆ ailiaTFLiteGetNodeInputCount()

static Int32 ailiaTFLite.AiliaTFLite.ailiaTFLiteGetNodeInputCount ( IntPtr  instance,
ref Int32  count,
Int32  node_index 
)

Node_index gets the number of node input.

Parameters
instanceailia TFLite runtime instance pointer
countPointter to the storage destination of the number of input
node_indexNode index
Returns
If you succeed, return AILIA_TFLITE_STATUS_SUCCESS. If node_index is out of range, AILIA_TFLITE_STATUS_OUT_OF_RANGE will be returned. In the case of other errors, return AILIA_TFLITE_STATUS_XXX.

◆ ailiaTFLiteGetNodeInputTensorIndex()

static Int32 ailiaTFLite.AiliaTFLite.ailiaTFLiteGetNodeInputTensorIndex ( IntPtr  instance,
ref Int32  tensor_index,
Int32  node_index,
Int32  input_index 
)

Node_index Acquires the index of Tensor in the input input of node.

Parameters
instanceailia TFLite runtime instance pointer
tensor_indexPointer to the destination of Tensor's index
node_indexNode index
input_indexINDEX for input
Returns
If you succeed, return AILIA_TFLITE_STATUS_SUCCESS. If node_index and input_index are out of range, AILIA_TFLITE_STATUS_OUT_OF_RANGE will be returned. In the case of other errors, return AILIA_TFLITE_STATUS_XXX.

◆ ailiaTFLiteGetNodeOperator()

static Int32 ailiaTFLite.AiliaTFLite.ailiaTFLiteGetNodeOperator ( IntPtr  instance,
ref Int32  op,
Int32  node_index 
)

Get node_index number Operator.

Parameters
instanceailia TFLite runtime instance pointer
opPointter to the destination of Operator
node_indexNode index
Returns
If you succeed, return AILIA_TFLITE_STATUS_SUCCESS. If node_index is out of range, AILIA_TFLITE_STATUS_OUT_OF_RANGE will be returned. In the case of other errors, return AILIA_TFLITE_STATUS_XXX.

The ENUM value of Operator is the same as the internal value of the TFLite file. For more information, see TensorFlow/Lite/Schema/Schema.fbs files in TensorFlow source tree.

◆ ailiaTFLiteGetNodeOption()

static Int32 ailiaTFLite.AiliaTFLite.ailiaTFLiteGetNodeOption ( IntPtr  instance,
IntPtr  value,
Int32  node_index,
string  key 
)

◆ ailiaTFLiteGetNodeOutputCount()

static Int32 ailiaTFLite.AiliaTFLite.ailiaTFLiteGetNodeOutputCount ( IntPtr  instance,
ref Int32  count,
Int32  node_index 
)

Node_index gets the number of node output.

Parameters
instanceailia TFLite runtime instance pointer
countPointter to the storage destination of the number of output
node_indexNode index
Returns
If you succeed, return AILIA_TFLITE_STATUS_SUCCESS. If node_index is out of range, AILIA_TFLITE_STATUS_OUT_OF_RANGE will be returned. In the case of other errors, return AILIA_TFLITE_STATUS_XXX.

◆ ailiaTFLiteGetNodeOutputTensorIndex()

static Int32 ailiaTFLite.AiliaTFLite.ailiaTFLiteGetNodeOutputTensorIndex ( IntPtr  instance,
ref Int32  tensor_index,
Int32  node_index,
Int32  output_index 
)

◆ ailiaTFLiteGetNumberOfInputs()

static Int32 ailiaTFLite.AiliaTFLite.ailiaTFLiteGetNumberOfInputs ( IntPtr  instance,
ref Int32  num_of_input_tensor 
)

Get the number of TENSOR in the TFLITE model.

Parameters
instanceailia TFLite runtime instance pointer
num_of_input_tensorPointter to the number of model input TENSOR
Returns
If you succeed, return AILIA_TFLITE_STATUS_SUCCESS. If you fail, return AILIA_TFLITE_STATUS_XXX.

◆ ailiaTFLiteGetNumberOfOutputs()

static Int32 ailiaTFLite.AiliaTFLite.ailiaTFLiteGetNumberOfOutputs ( IntPtr  instance,
ref Int32  num_of_output_tensor 
)

Get the number of TENSOR of the TFLITE model.

Parameters
instanceailia TFLite runtime instance pointer
num_of_output_tensorPointter to the number of model output TENSOR
Returns
If you succeed, return AILIA_TFLITE_STATUS_SUCCESS. If you fail, return AILIA_TFLITE_STATUS_XXX.

◆ ailiaTFLiteGetOperatorName()

static Int32 ailiaTFLite.AiliaTFLite.ailiaTFLiteGetOperatorName ( ref IntPtr  name,
Int32  op 
)

◆ ailiaTFLiteGetOutputTensorIndex()

static Int32 ailiaTFLite.AiliaTFLite.ailiaTFLiteGetOutputTensorIndex ( IntPtr  instance,
ref Int32  tensor_index,
Int32  output_index 
)

Obtain Tensor's index from index of output Tensor.

Parameters
instanceailia TFLite runtime instance pointer
tensor_indexPointer to the destination of Tensor's index
output_indexOutput TENSOR index (0 ~ Number of output Tensor-1)
Returns
If you succeed, return AILIA_TFLITE_STATUS_SUCCESS. If output_index is out of range, AILIA_TFLITE_STATUS_OUT_OF_RANGE will be returned. In the case of other errors, return AILIA_TFLITE_STATUS_XXX.

Convert from Index in Tensor to Tensor Index. The upper limit of INDEX is ailiaTFLiteGetNumberOfOutputs () -1.

◆ ailiaTFLiteGetScratchBufferUsage()

static Int32 ailiaTFLite.AiliaTFLite.ailiaTFLiteGetScratchBufferUsage ( IntPtr  instance,
ref UInt64  int_buffer_size,
ref UInt64  mid_buffer_size,
ref UInt64  ext_buffer_size 
)

Get the maximum usage of the scratch buffer.

Parameters
instanceailia TFLite runtime instance pointer
int_buffer_sizeSize of scratch buffer (L2)
mid_buffer_sizeSize of scratch buffer (MSMC)
ext_buffer_sizeSize of scratch buffer (DDR)

You can get the size of the necessary scratch buffer by inferring in the first large scratch buffer size. Since the value considering the alignment performed inside is returned, the acquired value can be used directly without considering the alignment.

◆ ailiaTFLiteGetSelectedDeviceIndexes()

static Int32 ailiaTFLite.AiliaTFLite.ailiaTFLiteGetSelectedDeviceIndexes ( IntPtr  instance,
Int32[]  device_idxes,
ref UInt64  idx_count 
)

Get the index and number of devices used.

Parameters
instanceailia TFLite runtime instance pointer
device_idxesA array that store indexes.Prepare an array with the maximum number of obtained in AILIATFLITEGETDEVICECOUNT ().
idx_countDestination of the number of arrays
Returns
If you succeed, return AILIA_TFLITE_STATUS_SUCCESS. If you fail, return AILIA_TFLITE_STATUS_XXX.

Get the index and number of devices used.

◆ ailiaTFLiteGetSummary()

static Int32 ailiaTFLite.AiliaTFLite.ailiaTFLiteGetSummary ( IntPtr  instance,
byte[]  buffer,
UInt64  buffer_size 
)

Displays the name and shape of each node.

Parameters
instanceailia TFLite runtime instance pointer
bufferSUMMARY output string pointer
buffer_sizeThe size of the output buffer (including the terminal NULL character).Set the value obtained by AILIATFLITITEGETSUMMARYLENGTH ().
Returns
If you succeed, return AILIA_TFLITE_STATUS_SUCCESS. In the case of other errors, return AILIA_TFLITE_STATUS_XXX.

◆ ailiaTFLiteGetSummaryLength()

static Int32 ailiaTFLite.AiliaTFLite.ailiaTFLiteGetSummaryLength ( IntPtr  instance,
ref UInt64  buffer_size 
)

Get the size of the buffer required for network Summary.

Parameters
instanceailia TFLite runtime instance pointer
buffer_sizePointter to the storage destination of the size of the buffer (including the terminal NULL character)
Returns
If you succeed, return AILIA_TFLITE_STATUS_SUCCESS. In the case of other errors, return AILIA_TFLITE_STATUS_XXX.

◆ ailiaTFLiteGetTensorBuffer()

static Int32 ailiaTFLite.AiliaTFLite.ailiaTFLiteGetTensorBuffer ( IntPtr  instance,
ref IntPtr  buffer,
Int32  tensor_index 
)

Obtain a storage buffer in Tensor's data.

Parameters
instanceailia TFLite runtime instance pointer
bufferPointter to the destination of the pointer to the data storage buffer
tensor_indexTensor's index
Returns
If you succeed, return AILIA_TFLITE_STATUS_SUCCESS. If Tensor_index is out of range, AILIA_TFLITE_STATUS_OUT_OF_RANGE will be returned. In the case of other errors, return AILIA_TFLITE_STATUS_XXX.

The life of the storage buffer that can be obtained with Buffer is valid until either ailiaTFLiteAllocateTensors/ailiaTFLiteResizeInputTensor/ailiaTFLiteDestroy is called. The value of the storage buffer is changed when ailiaTFLitePredict is called. There is no need to open the storage buffer at the caller.

◆ ailiaTFLiteGetTensorDimension()

static Int32 ailiaTFLite.AiliaTFLite.ailiaTFLiteGetTensorDimension ( IntPtr  instance,
ref Int32  tensor_dim,
Int32  tensor_index 
)

Get the dimension of index number Tensor.

Parameters
instanceailia TFLite runtime instance pointer
tensor_dimPointter to the specified Tensor's dimension
tensor_indexTensor's index
Returns
If you succeed, return AILIA_TFLITE_STATUS_SUCCESS. If Tensor_index is out of range, AILIA_TFLITE_STATUS_OUT_OF_RANGE will be returned. In the case of other errors, return AILIA_TFLITE_STATUS_XXX.

◆ ailiaTFLiteGetTensorName()

static Int32 ailiaTFLite.AiliaTFLite.ailiaTFLiteGetTensorName ( IntPtr  instance,
ref IntPtr  name,
Int32  tensor_index 
)

Get the name of the index number Tensor.

Parameters
instanceailia TFLite runtime instance pointer
namePointter to the destination of the character string pointer named Tensor
tensor_indexTensor's index
Returns
If you succeed, return AILIA_TFLITE_STATUS_SUCCESS. If Tensor_index is out of range, AILIA_TFLITE_STATUS_OUT_OF_RANGE will be returned. In the case of other errors, return AILIA_TFLITE_STATUS_XXX.

The life of the string pointer that can be obtained in name is effective until calling ailiaTFLiteDestroy. There is no need to open the string pointer at the caller.

◆ ailiaTFLiteGetTensorQuantizationCount()

static Int32 ailiaTFLite.AiliaTFLite.ailiaTFLiteGetTensorQuantizationCount ( IntPtr  instance,
ref Int32  count,
Int32  tensor_index 
)

Get the number of quantified parameters of index number Tensor.

Parameters
instanceailia TFLite runtime instance pointer
countPointter to the number of quantified parameters
tensor_indexTensor's index
Returns
If you succeed, return AILIA_TFLITE_STATUS_SUCCESS. If Tensor_index is out of range, AILIA_TFLITE_STATUS_OUT_OF_RANGE will be returned. In the case of other errors, return AILIA_TFLITE_STATUS_XXX.

Get the number of quantified parameters associated with the specified Tensor. If there is no quantization parameter in the specified Tensor, 0 is stored.

◆ ailiaTFLiteGetTensorQuantizationQuantizedDimension()

static Int32 ailiaTFLite.AiliaTFLite.ailiaTFLiteGetTensorQuantizationQuantizedDimension ( IntPtr  instance,
ref Int32  axis,
Int32  tensor_index 
)

Get the axis of the integrated TENSOR quantization parameter.

Parameters
instanceailia TFLite runtime instance pointer
axisPointter to the destination of the axis of the quantized parameter
tensor_indexTensor's index
Returns
If you succeed, return AILIA_TFLITE_STATUS_SUCCESS. If Tensor_index is out of range, AILIA_TFLITE_STATUS_OUT_OF_RANGE will be returned. If the quantized parameter does not exist in the specified Tensor, AILIA_TFLITE_STATUS_PARAMETER_NOT_FOUND is returned. In the case of other errors, return AILIA_TFLITE_STATUS_XXX.

◆ ailiaTFLiteGetTensorQuantizationScale()

static Int32 ailiaTFLite.AiliaTFLite.ailiaTFLiteGetTensorQuantizationScale ( IntPtr  instance,
float[]  scale,
Int32  tensor_index 
)

Get the scale of the quantified parameter of the index number TENSOR.

Parameters
instanceailia TFLite runtime instance pointer
scalePointter to the storage destination of the quantized parameter
tensor_indexTensor's index
Returns
If you succeed, return AILIA_TFLITE_STATUS_SUCCESS. If Tensor_index is out of range, AILIA_TFLITE_STATUS_OUT_OF_RANGE will be returned. If the quantized parameter does not exist in the specified Tensor, AILIA_TFLITE_STATUS_PARAMETER_NOT_FOUND is returned. In the case of other errors, return AILIA_TFLITE_STATUS_XXX.

Tensor is quantized and stored in the following formula. Quantization value = zero_point * round(input/scale) Acquired by scale: ailiaTFLiteGetTensorQuantizationScale Acquired by zero_point: ailiaTFliteGetTensorQuantizationZeroPoint scale should secure more than the number of elements obtained in ailiaTFLiteGetTensorQuantizationCount.

◆ ailiaTFLiteGetTensorQuantizationZeroPoint()

static Int32 ailiaTFLite.AiliaTFLite.ailiaTFLiteGetTensorQuantizationZeroPoint ( IntPtr  instance,
Int64[]  zero_point,
Int32  tensor_index 
)

Get the zero point of the quantified parameter of the index number TENSOR.

Parameters
instanceailia TFLite runtime instance pointer
zero_pointPointter to the destination of zero points of quantization parameters
tensor_indexTensor's index
Returns
If you succeed, return AILIA_TFLITE_STATUS_SUCCESS. If Tensor_index is out of range, AILIA_TFLITE_STATUS_OUT_OF_RANGE will be returned. If the quantized parameter does not exist in the specified Tensor, AILIA_TFLITE_STATUS_PARAMETER_NOT_FOUND is returned. In the case of other errors, return AILIA_TFLITE_STATUS_XXX.

See ailiaTFLiteGetTensorQuantizationScale for description of quantification. For zero_point, secure a buffer that is more than the number of elements acquired in ailiaTFLiteGetTensorQuantizationCountで.

◆ ailiaTFLiteGetTensorShape()

static Int32 ailiaTFLite.AiliaTFLite.ailiaTFLiteGetTensorShape ( IntPtr  instance,
Int32[]  shape,
Int32  tensor_index 
)

Get the shape of the index number Tensor.

Parameters
instanceailia TFLite runtime instance pointer
shapeTensor shape storage destination
tensor_indexTensor's index
Returns
If you succeed, return AILIA_TFLITE_STATUS_SUCCESS. If Tensor_index is out of range, AILIA_TFLITE_STATUS_OUT_OF_RANGE will be returned. In the case of other errors, return AILIA_TFLITE_STATUS_XXX.

Store the shape of the specified Tensor in Shape. Shape should secure a buffer that is more than the dimensions acquired by ailiaTFLiteGetTensorDimension.

◆ ailiaTFLiteGetTensorShapeSignature()

static Int32 ailiaTFLite.AiliaTFLite.ailiaTFLiteGetTensorShapeSignature ( IntPtr  instance,
Int32[]  shape,
Int32  tensor_index 
)

Get the undecided dimensional form of Tensor of index number.

Parameters
instanceailia TFLite runtime instance pointer
shapeTensor shape storage destination
tensor_indexTensor's index
Returns
If you succeed, return AILIA_TFLITE_STATUS_SUCCESS. If Tensor_index is out of range, AILIA_TFLITE_STATUS_OUT_OF_RANGE will be returned. In the case of other errors, return AILIA_TFLITE_STATUS_XXX.

Store the undecided dimensional information of the specified Tensor in Shape. -1 is stored for dimensions with undecided shape. If the specified Tensor does not contain an undecided dimension, it will be the same result as ailiaTFLiteGetTensorShape. Shape should secure a buffer that is more than the dimensions acquired by ailiaTFLiteGetTensorDimension.

◆ ailiaTFLiteGetTensorType()

static Int32 ailiaTFLite.AiliaTFLite.ailiaTFLiteGetTensorType ( IntPtr  instance,
ref sbyte  tensor_type,
Int32  tensor_index 
)

Get the Data type of TENSOR in Index.

Parameters
instanceailia TFLite runtime instance pointer
tensor_typeSpecified TENSOR data type storage destination
tensor_indexTensor's index
Returns
If you succeed, return AILIA_TFLITE_STATUS_SUCCESS. If Tensor_index is out of range, AILIA_TFLITE_STATUS_OUT_OF_RANGE will be returned. In the case of other errors, return AILIA_TFLITE_STATUS_XXX.

◆ ailiaTFLiteGetVersion()

static IntPtr ailiaTFLite.AiliaTFLite.ailiaTFLiteGetVersion ( )

Get the library version.

Returns
Version number (can be converted to string with Marshal.PtrToStringAnsi)

The return value does not need to be released.

◆ ailiaTFLiteMklDisableFastMM()

static Int32 ailiaTFLite.AiliaTFLite.ailiaTFLiteMklDisableFastMM ( )

Disable the mkl fastmm.

Returns
If you succeed, return AILIA_TFLITE_STATUS_SUCCESS. If you fail, return AILIA_TFLITE_STATUS_XXX.

mkl_disable_fast_mm is called to disable FastMM.It affects all instances. Mkl increases the memory monotonously until mkl_Free_buffers is called to secure memory for each thread. This work memory is kept until mkl_Free_buffers is called in ailiaTFLiteDestroy. By disabling the fastmm, you can specify not to secure memory for each thread. In an environment that does not use Mkl (MacOS, etc.), return AILIA_TFLITE_STATUS_INVALID_STATE.

◆ ailiaTFLiteMklSetNumThreads()

static Int32 ailiaTFLite.AiliaTFLite.ailiaTFLiteMklSetNumThreads ( Int32  num_threads)

Set the number of threads used by MKL.

Parameters
num_threadsNumber of threads (1 or more)
Returns
If you succeed, return AILIA_TFLITE_STATUS_SUCCESS. If you fail, return AILIA_TFLITE_STATUS_XXX.

Change the MKL thread number by calling mkl_set_num_threads.It affects all instances. By default, it will be automatically set. In an environment that does not use Mkl (MacOS, etc.), return AILIA_TFLITE_STATUS_INVALID_STATE.

◆ ailiaTFLitePredict()

static Int32 ailiaTFLite.AiliaTFLite.ailiaTFLitePredict ( IntPtr  instance)

Do inference.

Parameters
instanceailia TFLite runtime instance pointer
Returns
If you succeed, return AILIA_TFLITE_STATUS_SUCCESS. If you fail, return AILIA_TFLITE_STATUS_XXX.

◆ ailiaTFLiteResizeInputTensor()

static Int32 ailiaTFLite.AiliaTFLite.ailiaTFLiteResizeInputTensor ( IntPtr  instance,
Int32  input_index,
Int32[]  shape,
Int32  dim 
)

Change the shape of Tensor of the specified input index.

Parameters
instanceailia TFLite runtime instance pointer
input_index0 ~ Input Tensor number-1
shapeNew shape
dimdimension
Returns
If you succeed, return AILIA_TFLITE_STATUS_SUCCESS. If the specified Tensor does not contain an undecided dimension, return AILIA_TFLITE_STATUS_FIXED_TENSOR. If you fail, return AILIA_TFLITE_STATUS_XXX.

Change the shape of the input Tensor. Calling this function to open the secured internal buffer You need to call ailiaTFLiteAllocateTensors. Also, since the shape of the intermediate Tensor may change depending on the input shape. After calling this function, the results of the acquisition API may be fraudulent until the ailiaTFLiteAllocateTensors is called. The upper limit of INDEX is ailiaTFLiteGetNumberOfInputs() -1. If the specified Tensor does not contain an undecided dimension (if the Shape obtained in the ailiaTFLiteGetTensorShapeSignature does not include -1) will be an error.

◆ ailiaTFLiteSelectDevices()

static Int32 ailiaTFLite.AiliaTFLite.ailiaTFLiteSelectDevices ( IntPtr  instance,
Int32[]  device_idxes,
UInt64  idx_count 
)

Specify the index of the device to use.

Parameters
instanceailia TFLite runtime instance pointer
device_idxesArrangement with index number
idx_countNumber of arrays
Returns
If you succeed, return AILIA_TFLITE_STATUS_SUCCESS. If you fail, return AILIA_TFLITE_STATUS_XXX.

Specify the index of the device to use. Multiple specification can be specified. There are operators that are not implemented in NNAPI. Therefore, it is necessary to offload non compatible operators to CPU by specifying both DSP and CPU.

◆ ailiaTFLiteSetCpuFeatures()

static Int32 ailiaTFLite.AiliaTFLite.ailiaTFLiteSetCpuFeatures ( IntPtr  instance,
Int32  cpu_features 
)

Set the CPU instruction to use.

Parameters
instanceailia TFLite runtime instance pointer
cpu_featuresAILIA_TFLITE_CPU_FEATURES_XXX logical sum
Returns
If you succeed, return AILIA_TFLITE_STATUS_SUCCESS. If you fail, return AILIA_TFLITE_STATUS_XXX.

Set the CPU instruction to use. If an unusable CPU instruction is set, return AILIA_TFLITE_STATUS_OUT_OF_RANGE.

◆ ailiaTFLiteSetProfileMode()

static Int32 ailiaTFLite.AiliaTFLite.ailiaTFLiteSetProfileMode ( IntPtr  instance,
Int32  mode 
)

Set the profile mode.

Parameters
instanceailia TFLite runtime instance pointer
modeProfile mode (AILIA_TFLITE_PROFILE_MODE_*)
Returns
If you succeed, return AILIA_TFLITE_STATUS_SUCCESS. In the case of other errors, return AILIA_TFLITE_STATUS_XXX.

Specify the profile mode.The default is invalid. When the profile mode is enabled, the profile result is added to the output of ailiaTFLiteGetSummary. It must be executed immediately after ailiaTFLiteCreate. If you call after ailiaTFLiteAllocateTensors, AILIA_TFLITE_STATUS_INVALID_STATE will be returned.

◆ ailiaTFLiteSetScratchBuffer()

static Int32 ailiaTFLite.AiliaTFLite.ailiaTFLiteSetScratchBuffer ( IntPtr  instance,
IntPtr  int_buffer,
UInt64  int_buffer_size,
IntPtr  mid_buffer,
UInt64  mid_buffer_size,
IntPtr  ext_buffer,
UInt64  ext_buffer_size 
)

Set a scratch buffer.

Parameters
instanceailia TFLite runtime instance pointer
int_bufferPointer to scratch buffer (L2)
int_buffer_sizeSize of scratch buffer (L2) (64 byte or above)
mid_bufferPointer to scratch buffer (MSMC)
mid_buffer_sizeSize of scratch buffer (MSMC)
ext_bufferPointer to scratch buffer (DDR)
ext_buffer_sizeSize of scratch buffer (DDR)

Set the scratch buffer used for mmalib.It is valid only when env_mmalib is specified. The alignment of the buffer is performed internally, so there is no need to consider alignment. If you specify 0 for a buffer size other than L2, you can disable the specified buffer. If you specify * env_mmalib, execute ailiaTFLiteAllocateTensors without calling this function, return AILIA_TFLITE_STATUS_INVALID_STATE. The scratch buffer can be changed each time ailiaTFLitePredict is called. However, the size of the scratch buffer must be the same as the value used in ailiaTFLiteAllocateTensors. Because it is used as a work area of non -permanent data, it is possible to give the same buffer to multiple instances for single threads.

Member Data Documentation

◆ AILIA_TFLITE_CPU_FEATURES_AVX

const UInt32 ailiaTFLite.AiliaTFLite.AILIA_TFLITE_CPU_FEATURES_AVX =(0x00000008)
static

◆ AILIA_TFLITE_CPU_FEATURES_AVX2

const UInt32 ailiaTFLite.AiliaTFLite.AILIA_TFLITE_CPU_FEATURES_AVX2 =(0x00000010)
static

◆ AILIA_TFLITE_CPU_FEATURES_NEON

const UInt32 ailiaTFLite.AiliaTFLite.AILIA_TFLITE_CPU_FEATURES_NEON =(0x00000001)
static

◆ AILIA_TFLITE_CPU_FEATURES_NONE

const UInt32 ailiaTFLite.AiliaTFLite.AILIA_TFLITE_CPU_FEATURES_NONE =(0x00000000)
static

◆ AILIA_TFLITE_CPU_FEATURES_SSE2

const UInt32 ailiaTFLite.AiliaTFLite.AILIA_TFLITE_CPU_FEATURES_SSE2 =(0x00000002)
static

◆ AILIA_TFLITE_CPU_FEATURES_SSE4_2

const UInt32 ailiaTFLite.AiliaTFLite.AILIA_TFLITE_CPU_FEATURES_SSE4_2 =(0x00000004)
static

◆ AILIA_TFLITE_CPU_FEATURES_VNNI

const UInt32 ailiaTFLite.AiliaTFLite.AILIA_TFLITE_CPU_FEATURES_VNNI =(0x00000020)
static

◆ AILIA_TFLITE_ENV_MMALIB

const Int32 ailiaTFLite.AiliaTFLite.AILIA_TFLITE_ENV_MMALIB =( 2)
static

◆ AILIA_TFLITE_ENV_MMALIB_COMPATIBLE

const Int32 ailiaTFLite.AiliaTFLite.AILIA_TFLITE_ENV_MMALIB_COMPATIBLE =( 3)
static

◆ AILIA_TFLITE_ENV_NNAPI

const Int32 ailiaTFLite.AiliaTFLite.AILIA_TFLITE_ENV_NNAPI =( 1)
static

◆ AILIA_TFLITE_ENV_REFERENCE

const Int32 ailiaTFLite.AiliaTFLite.AILIA_TFLITE_ENV_REFERENCE =( 0)
static

◆ AILIA_TFLITE_FLAG_INPUT_AND_OUTPUT_TENSORS_USE_SCRATCH

const UInt32 ailiaTFLite.AiliaTFLite.AILIA_TFLITE_FLAG_INPUT_AND_OUTPUT_TENSORS_USE_SCRATCH =( 1)
static

◆ AILIA_TFLITE_FLAG_NONE

const UInt32 ailiaTFLite.AiliaTFLite.AILIA_TFLITE_FLAG_NONE =( 0)
static

◆ AILIA_TFLITE_MEMORY_MODE_DEFAULT

const Int32 ailiaTFLite.AiliaTFLite.AILIA_TFLITE_MEMORY_MODE_DEFAULT =( 0)
static

◆ AILIA_TFLITE_MEMORY_MODE_REDUCE_INTERSTAGE

const Int32 ailiaTFLite.AiliaTFLite.AILIA_TFLITE_MEMORY_MODE_REDUCE_INTERSTAGE =( 1)
static

◆ AILIA_TFLITE_PROFILE_MODE_DISABLE

const Int32 ailiaTFLite.AiliaTFLite.AILIA_TFLITE_PROFILE_MODE_DISABLE =( 0)
static

◆ AILIA_TFLITE_PROFILE_MODE_ENABLE

const Int32 ailiaTFLite.AiliaTFLite.AILIA_TFLITE_PROFILE_MODE_ENABLE =( 1)
static

◆ AILIA_TFLITE_PROFILE_MODE_MEMORY

const Int32 ailiaTFLite.AiliaTFLite.AILIA_TFLITE_PROFILE_MODE_MEMORY =( 4)
static

◆ AILIA_TFLITE_PROFILE_MODE_TRACE

const Int32 ailiaTFLite.AiliaTFLite.AILIA_TFLITE_PROFILE_MODE_TRACE =( 2)
static

◆ AILIA_TFLITE_STATUS_BROKEN_MODEL

const Int32 ailiaTFLite.AiliaTFLite.AILIA_TFLITE_STATUS_BROKEN_MODEL =( -4)
static

◆ AILIA_TFLITE_STATUS_INVALID_ARGUMENT

const Int32 ailiaTFLite.AiliaTFLite.AILIA_TFLITE_STATUS_INVALID_ARGUMENT =( -1)
static

◆ AILIA_TFLITE_STATUS_INVALID_PARAMETER

const Int32 ailiaTFLite.AiliaTFLite.AILIA_TFLITE_STATUS_INVALID_PARAMETER =( -5)
static

◆ AILIA_TFLITE_STATUS_INVALID_STATE

const Int32 ailiaTFLite.AiliaTFLite.AILIA_TFLITE_STATUS_INVALID_STATE =( -11)
static

◆ AILIA_TFLITE_STATUS_LICENSE_BROKEN

const Int32 ailiaTFLite.AiliaTFLite.AILIA_TFLITE_STATUS_LICENSE_BROKEN =( -9)
static

◆ AILIA_TFLITE_STATUS_LICENSE_EXPIRED

const Int32 ailiaTFLite.AiliaTFLite.AILIA_TFLITE_STATUS_LICENSE_EXPIRED =( -10)
static

◆ AILIA_TFLITE_STATUS_LICENSE_NOT_FOUND

const Int32 ailiaTFLite.AiliaTFLite.AILIA_TFLITE_STATUS_LICENSE_NOT_FOUND =( -8)
static

◆ AILIA_TFLITE_STATUS_MEMORY_INSUFFICIENT

const Int32 ailiaTFLite.AiliaTFLite.AILIA_TFLITE_STATUS_MEMORY_INSUFFICIENT =( -3)
static

◆ AILIA_TFLITE_STATUS_OTHER_ERROR

const Int32 ailiaTFLite.AiliaTFLite.AILIA_TFLITE_STATUS_OTHER_ERROR =(-128)
static

◆ AILIA_TFLITE_STATUS_OUT_OF_RANGE

const Int32 ailiaTFLite.AiliaTFLite.AILIA_TFLITE_STATUS_OUT_OF_RANGE =( -2)
static

◆ AILIA_TFLITE_STATUS_PARAMETER_NOT_FOUND

const Int32 ailiaTFLite.AiliaTFLite.AILIA_TFLITE_STATUS_PARAMETER_NOT_FOUND =( -6)
static

◆ AILIA_TFLITE_STATUS_SUCCESS

const Int32 ailiaTFLite.AiliaTFLite.AILIA_TFLITE_STATUS_SUCCESS =( 0)
static

◆ AILIA_TFLITE_STATUS_UNSUPPORTED_OPCODE

const Int32 ailiaTFLite.AiliaTFLite.AILIA_TFLITE_STATUS_UNSUPPORTED_OPCODE =( -7)
static

◆ AILIA_TFLITE_TENSOR_TYPE_BOOL

const Int32 ailiaTFLite.AiliaTFLite.AILIA_TFLITE_TENSOR_TYPE_BOOL =( 6)
static

◆ AILIA_TFLITE_TENSOR_TYPE_COMPLEX64

const Int32 ailiaTFLite.AiliaTFLite.AILIA_TFLITE_TENSOR_TYPE_COMPLEX64 =( 8)
static

◆ AILIA_TFLITE_TENSOR_TYPE_FLOAT16

const Int32 ailiaTFLite.AiliaTFLite.AILIA_TFLITE_TENSOR_TYPE_FLOAT16 =( 1)
static

◆ AILIA_TFLITE_TENSOR_TYPE_FLOAT32

const Int32 ailiaTFLite.AiliaTFLite.AILIA_TFLITE_TENSOR_TYPE_FLOAT32 =( 0)
static

◆ AILIA_TFLITE_TENSOR_TYPE_INT16

const Int32 ailiaTFLite.AiliaTFLite.AILIA_TFLITE_TENSOR_TYPE_INT16 =( 7)
static

◆ AILIA_TFLITE_TENSOR_TYPE_INT32

const Int32 ailiaTFLite.AiliaTFLite.AILIA_TFLITE_TENSOR_TYPE_INT32 =( 2)
static

◆ AILIA_TFLITE_TENSOR_TYPE_INT64

const Int32 ailiaTFLite.AiliaTFLite.AILIA_TFLITE_TENSOR_TYPE_INT64 =( 4)
static

◆ AILIA_TFLITE_TENSOR_TYPE_INT8

const Int32 ailiaTFLite.AiliaTFLite.AILIA_TFLITE_TENSOR_TYPE_INT8 =( 9)
static

◆ AILIA_TFLITE_TENSOR_TYPE_STRING

const Int32 ailiaTFLite.AiliaTFLite.AILIA_TFLITE_TENSOR_TYPE_STRING =( 5)
static

◆ AILIA_TFLITE_TENSOR_TYPE_UINT8

const Int32 ailiaTFLite.AiliaTFLite.AILIA_TFLITE_TENSOR_TYPE_UINT8 =( 3)
static

◆ LIBRARY_NAME

const String ailiaTFLite.AiliaTFLite.LIBRARY_NAME ="ailia_tflite"
static

The documentation for this class was generated from the following file: