diff --git a/site/en/lite/api_docs/c/_doxygen.yaml b/site/en/lite/api_docs/c/_doxygen.yaml deleted file mode 100644 index c7ea299f4e..0000000000 --- a/site/en/lite/api_docs/c/_doxygen.yaml +++ /dev/null @@ -1,70 +0,0 @@ -# Generated by c2devsite (go/c2devsite) -toc: -- title: Modules - section: - - title: "lite/abi/tflite.h" - path: /lite/api_docs/c/group/tflite - - title: "lite/acceleration/configuration/c/delegate_plugin.h" - path: /lite/api_docs/c/group/delegate-plugin - - title: "lite/acceleration/configuration/c/gpu_plugin.h" - path: /lite/api_docs/c/group/gpu-plugin - - title: "lite/acceleration/configuration/c/xnnpack_plugin.h" - path: /lite/api_docs/c/group/xnnpack-plugin - - title: "lite/c/c_api.h" - path: /lite/api_docs/c/group/c-api - - title: "lite/c/c_api_opaque.h" - path: /lite/api_docs/c/group/c-api-opaque - - title: "lite/c/c_api_types.h" - path: /lite/api_docs/c/group/c-api-types - - title: "lite/c/common.h" - path: /lite/api_docs/c/group/common -- title: Structs - section: - - title: "TfLiteAffineQuantization" - path: /lite/api_docs/c/struct/tf-lite-affine-quantization - - title: "TfLiteComplex128" - path: /lite/api_docs/c/struct/tf-lite-complex128 - - title: "TfLiteComplex64" - path: /lite/api_docs/c/struct/tf-lite-complex64 - - title: "TfLiteContext" - path: /lite/api_docs/c/struct/tf-lite-context - - title: "TfLiteCustomAllocation" - path: /lite/api_docs/c/struct/tf-lite-custom-allocation - - title: "TfLiteDelegate" - path: /lite/api_docs/c/struct/tf-lite-delegate - - title: "TfLiteDelegateParams" - path: /lite/api_docs/c/struct/tf-lite-delegate-params - - title: "TfLiteDelegatePlugin" - path: /lite/api_docs/c/struct/tf-lite-delegate-plugin - - title: "TfLiteDimensionMetadata" - path: /lite/api_docs/c/struct/tf-lite-dimension-metadata - - title: "TfLiteEvalTensor" - path: /lite/api_docs/c/struct/tf-lite-eval-tensor - - title: "TfLiteExternalContext" - path: /lite/api_docs/c/struct/tf-lite-external-context - - title: "TfLiteFloat16" - path: /lite/api_docs/c/struct/tf-lite-float16 - - title: "TfLiteFloatArray" - path: /lite/api_docs/c/struct/tf-lite-float-array - - title: "TfLiteIntArray" - path: /lite/api_docs/c/struct/tf-lite-int-array - - title: "TfLiteNode" - path: /lite/api_docs/c/struct/tf-lite-node - - title: "TfLiteOpaqueDelegateBuilder" - path: /lite/api_docs/c/struct/tf-lite-opaque-delegate-builder - - title: "TfLiteOpaqueDelegateParams" - path: /lite/api_docs/c/struct/tf-lite-opaque-delegate-params - - title: "TfLiteQuantization" - path: /lite/api_docs/c/struct/tf-lite-quantization - - title: "TfLiteQuantizationParams" - path: /lite/api_docs/c/struct/tf-lite-quantization-params - - title: "TfLiteRegistration" - path: /lite/api_docs/c/struct/tf-lite-registration - - title: "TfLiteSparsity" - path: /lite/api_docs/c/struct/tf-lite-sparsity - - title: "TfLiteTensor" - path: /lite/api_docs/c/struct/tf-lite-tensor -- title: Unions - section: - - title: "TfLitePtrUnion" - path: /lite/api_docs/c/union/tf-lite-ptr-union diff --git a/site/en/lite/api_docs/c/group/c-api-opaque.html b/site/en/lite/api_docs/c/group/c-api-opaque.html deleted file mode 100644 index 5fa667f176..0000000000 --- a/site/en/lite/api_docs/c/group/c-api-opaque.html +++ /dev/null @@ -1,1426 +0,0 @@ - - - - lite/c/c_api_opaque.h - - - -
-

lite/c/c_api_opaque.h

-

C API for TensorFlow Lite Opaque Types.

-

Summary

-

These APIs are accessors for TFLite Opaque Types. These APIs are primarily intended to be used by delegates and custom OP implementations.

-

This API is part of the TensorFlow Lite Extension APIs. We reserve the right to make changes to this API in future releases, potentially including non-backwards-compatible changes, on a different schedule than for the other TensorFlow Lite APIs. See https://www.tensorflow.org/guide/versions#separate_version_number_for_tensorflow_lite_extension_apis.

- - - - - - - - - - - - -
-

Typedefs

-
- TfLiteIntArray - typedef
- struct TfLiteIntArray -
- TfLiteOpaqueTensorBuilder - typedef
- struct TfLiteOpaqueTensorBuilder -
An opaque type to create a tensor.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

Functions

-
- TfLiteOpaqueContextAcquireSubgraphContext(struct TfLiteOpaqueContext *opaque_context, int subgraph_index, TfLiteOpaqueContext **acquired_opaque_context) - -
- TFL_CAPI_EXPORT TfLiteStatus -
-
Entry point for C API AcquireSubgraphContext.
-
- TfLiteOpaqueContextAddTensor(TfLiteOpaqueContext *context, TfLiteOpaqueTensorBuilder *builder, int *new_tensor_index) - -
- TFL_CAPI_EXPORT TfLiteStatus -
-
Adds an additional tensor and configures its properties based on the provided 'builder', preserving pre-existing Tensor entries.
-
- TfLiteOpaqueContextGetExecutionPlan(TfLiteOpaqueContext *opaque_context, TfLiteIntArray **execution_plan) - -
- TFL_CAPI_EXPORT TfLiteStatus -
-
Loads the provided execution_plan associated with the provided opaque_context.
-
- TfLiteOpaqueContextGetInputs(const struct TfLiteOpaqueContext *opaque_context, const int **inputs, int *num_inputs) - -
- TFL_CAPI_EXPORT TfLiteStatus -
-
Loads into the provided '*inputs' pointer the starting address of an array of indices representing the tensors that are inputs to the subgraph that is associated with the provided 'opaque_context'.
-
- TfLiteOpaqueContextGetName(const struct TfLiteOpaqueContext *opaque_context) - -
- TFL_CAPI_EXPORT const char * -
-
Returns the name of the subgraph that is associated with the provided 'opaque_context'.
-
- TfLiteOpaqueContextGetNodeAndRegistration(struct TfLiteOpaqueContext *opaque_context, int node_index, TfLiteOpaqueNode **node, TfLiteRegistrationExternal **registration_external) - -
- TFL_CAPI_EXPORT TfLiteStatus -
-
Given the specified 'opaque_context' and 'node_index', load the caller's opaque '*node' and '*registration_external' pointer.
-
- TfLiteOpaqueContextGetNodeInitDataMmapInfo(const TfLiteOpaqueContext *context, const TfLiteOpaqueNode *node, int *fd, int64_t *custom_initial_data_offset_in_file, int64_t *custom_initial_data_size) - -
- TFL_CAPI_EXPORT TfLiteStatus -
-
Loads metadata of a TF Lite node's custom initialization data.
-
- TfLiteOpaqueContextGetNumNodes(const struct TfLiteOpaqueContext *opaque_context) - -
- TFL_CAPI_EXPORT size_t -
-
Returns the number of nodes associated with the provided 'opaque_context'.
-
- TfLiteOpaqueContextGetNumTensors(const struct TfLiteOpaqueContext *opaque_context) - -
- TFL_CAPI_EXPORT size_t -
-
Returns the number of tensors associated with the provided 'opaque_context'.
-
- TfLiteOpaqueContextGetOpaqueTensor(const TfLiteOpaqueContext *opaque_context, int index) - -
- TFL_CAPI_EXPORT TfLiteOpaqueTensor * -
-
Returns modifiable access to the opaque tensor that corresponds to the specified index and is associated with the provided opaque_context.
-
- TfLiteOpaqueContextGetOutputs(const struct TfLiteOpaqueContext *opaque_context, const int **outputs, int *num_outputs) - -
- TFL_CAPI_EXPORT TfLiteStatus -
-
Loads into the provided '*outputs' pointer the starting address of an array of indices representing the tensors that are outputs to the subgraph that is associated with the provided 'opaque_context'.
-
- TfLiteOpaqueContextGetSizeOfType(TfLiteOpaqueContext *context, TfLiteType type, size_t *bytes) - -
- TFL_CAPI_EXPORT TfLiteStatus -
-
Populates the size in bytes of a provide 'type' into 'bytes'.
-
- TfLiteOpaqueContextGetVariables(const struct TfLiteOpaqueContext *opaque_context, const int **variables, int *num_variables) - -
- TFL_CAPI_EXPORT TfLiteStatus -
-
Loads into the provided '*variables' pointer the starting address of an array of indices representing the tensors that are variables to the subgraph that is associated with the provided 'opaque_context'.
-
- TfLiteOpaqueContextMarkSubgraphAsDelegationSkippable(TfLiteOpaqueContext *opaque_context, int subgraph_index) - -
- TFL_CAPI_EXPORT TfLiteStatus -
-
Entry point for C API MarkSubgraphAsDelegationSkippable.
-
- TfLiteOpaqueContextReleaseSubgraphContext(struct TfLiteOpaqueContext *opaque_context, int subgraph_index) - -
- TFL_CAPI_EXPORT TfLiteStatus -
-
Entry point for C API ReleaseSubgraphContext.
-
- TfLiteOpaqueContextReplaceNodeSubsetsWithDelegateKernels(struct TfLiteOpaqueContext *opaque_context, TfLiteRegistrationExternal *registration_external, const TfLiteIntArray *nodes_to_replace, TfLiteOpaqueDelegate *opaque_delegate) - -
- TFL_CAPI_EXPORT TfLiteStatus -
-
Entry point for C API ReplaceNodeSubsetsWithDelegateKernels.
-
- TfLiteOpaqueContextReportError(struct TfLiteOpaqueContext *opaque_context, const char *format, ...) - -
- TFL_CAPI_EXPORT void -
-
Reports an error message formed by using the provided 'format' string in combination with the data provided via the unnamed arguments following the 'format' parameter ('...').
-
- TfLiteOpaqueContextReportErrorVa(struct TfLiteOpaqueContext *opaque_context, const char *format, va_list vlist) - -
- TFL_CAPI_EXPORT void -
-
Same as TfLiteOpaqueContextReportError, but with the variable arguments passed via a va_list instead of directly.
-
- TfLiteOpaqueContextResizeTensor(TfLiteOpaqueContext *context, TfLiteOpaqueTensor *tensor, TfLiteIntArray *new_size) - -
- TFL_CAPI_EXPORT TfLiteStatus -
-
Resizes the provided 'tensor' that is associated with the provided 'context' so that the 'tensor's shape matches the dimensionality specified via the provided 'new_size' array.
-
- TfLiteOpaqueNodeGetBuiltinData(const TfLiteOpaqueNode *opaque_node) - -
- TFL_CAPI_EXPORT void * -
-
Returns the builtin data associated with the provided 'opaque_node'.
-
- TfLiteOpaqueNodeGetCustomInitialData(const TfLiteOpaqueNode *opaque_node, const void **init_data, int *size) - -
- TFL_CAPI_EXPORT TfLiteStatus -
-
Loads into the provided '*init_data' pointer the address of the custom init data associated with the provided 'opaque_node'.
-
- TfLiteOpaqueNodeGetInput(const TfLiteOpaqueContext *opaque_context, const TfLiteOpaqueNode *opaque_node, int index) - -
- TFL_CAPI_EXPORT const TfLiteOpaqueTensor * -
-
Returns the input tensor of the given node.
-
- TfLiteOpaqueNodeGetInputTensorIndex(const TfLiteOpaqueNode *opaque_node, int index_of_input) - -
- TFL_CAPI_EXPORT int -
-
Given an 'index_of_input', which must be in the range of [0, N), where N is the number of input tensors of the provided 'opaque_node', returns the (global) index of the tensor that holds the input.
-
- TfLiteOpaqueNodeGetOutput(TfLiteOpaqueContext *opaque_context, const TfLiteOpaqueNode *opaque_node, int index) - -
- TFL_CAPI_EXPORT TfLiteOpaqueTensor * -
-
Returns the output tensor of the given node.
-
- TfLiteOpaqueNodeGetOutputTensorIndex(const TfLiteOpaqueNode *opaque_node, int index_of_output) - -
- TFL_CAPI_EXPORT int -
-
Given an 'index_of_output', which must be in the range of [0, N), where N is the number of output tensors of the provided 'opaque_node', returns the (global) index of the tensor that holds the output.
-
- TfLiteOpaqueNodeGetUserData(const TfLiteOpaqueNode *opaque_node) - -
- TFL_CAPI_EXPORT void * -
-
Returns opaque data provided by the node implementer.
-
- TfLiteOpaqueNodeInputs(const TfLiteOpaqueNode *opaque_node, const int **inputs, int *num_inputs) - -
- TFL_CAPI_EXPORT TfLiteStatus -
-
Loads into the provided '*inputs' pointer the starting address of an array of indices representing the tensors that are inputs of the provided 'opaque_node'.
-
- TfLiteOpaqueNodeNumberOfInputs(const TfLiteOpaqueNode *opaque_node) - -
- TFL_CAPI_EXPORT int -
-
Gets the number of input tensors of the provided 'opaque_node'.
-
- TfLiteOpaqueNodeNumberOfOutputs(const TfLiteOpaqueNode *opaque_node) - -
- TFL_CAPI_EXPORT int -
-
Gets the number of output tensors of the provided 'opaque_node'.
-
- TfLiteOpaqueNodeOutputs(const TfLiteOpaqueNode *opaque_node, const int **outputs, int *num_outputs) - -
- TFL_CAPI_EXPORT TfLiteStatus -
-
Loads into the provided '*outputs' pointer the starting address of an array of indices representing the tensors that are outputs of the provided 'opaque_node'.
-
- TfLiteOpaqueNodeTemporaries(const TfLiteOpaqueNode *opaque_node, const int **temporaries, int *num_temporaries) - -
- TFL_CAPI_EXPORT TfLiteStatus -
-
Loads into the provided '*temporaries' pointer the starting address of an array of indices representing the temporary tensors associated with the provided 'opaque_node'.
-
- TfLiteOpaqueTensorBuilderCreate() - -
- TfLiteOpaqueTensorBuilder * -
-
Creates an opaque tensor builder object.
-
- TfLiteOpaqueTensorBuilderDelete(TfLiteOpaqueTensorBuilder *builder) - -
- void -
-
Deletes an opaque tensor builder object.
-
- TfLiteOpaqueTensorBuilderSetAllocationType(TfLiteOpaqueTensorBuilder *builder, TfLiteAllocationType allocation_type) - -
- TfLiteOpaqueTensorBuilder * -
-
Sets the allocation type of the provided 'builder' to the provided 'allocation_type'.
-
- TfLiteOpaqueTensorBuilderSetData(TfLiteOpaqueTensorBuilder *builder, void *data) - -
- TfLiteOpaqueTensorBuilder * -
-
Sets the raw data of the provided 'builder' to the provided 'data'.
-
- TfLiteOpaqueTensorBuilderSetQuantization(TfLiteOpaqueTensorBuilder *builder, TfLiteQuantization quantization) - -
- TfLiteOpaqueTensorBuilder * -
-
Sets the quantization of the provided 'builder' to the provided 'quantization'.
-
- TfLiteOpaqueTensorBuilderSetQuantizationParams(TfLiteOpaqueTensorBuilder *builder, TfLiteQuantizationParams params) - -
- TfLiteOpaqueTensorBuilder * -
-
Sets the quantization params of the provided 'builder' to the provided 'params'.
-
- TfLiteOpaqueTensorBuilderSetType(TfLiteOpaqueTensorBuilder *builder, TfLiteType type) - -
- TfLiteOpaqueTensorBuilder * -
-
Sets the 'TfLiteType' of the provided 'builder' to the provided 'type'.
-
- TfLiteOpaqueTensorByteSize(const TfLiteOpaqueTensor *opaque_tensor) - -
- TFL_CAPI_EXPORT size_t -
-
Returns the size of the underlying data in bytes.
-
- TfLiteOpaqueTensorCopyFromBuffer(TfLiteOpaqueTensor *opaque_tensor, const void *input_data, size_t input_data_size) - -
- TFL_CAPI_EXPORT TfLiteStatus -
-
Copies from the provided input buffer into the tensor's buffer.
-
- TfLiteOpaqueTensorCopyToBuffer(const TfLiteOpaqueTensor *opaque_tensor, void *output_data, size_t output_data_size) - -
- TFL_CAPI_EXPORT TfLiteStatus -
-
Copies to the provided output buffer from the tensor's buffer.
-
- TfLiteOpaqueTensorData(const TfLiteOpaqueTensor *opaque_tensor) - -
- TFL_CAPI_EXPORT void * -
-
Returns a pointer to the underlying data buffer.
-
- TfLiteOpaqueTensorDim(const TfLiteOpaqueTensor *opaque_tensor, int32_t dim_index) - -
- TFL_CAPI_EXPORT int32_t -
-
Returns the length of the tensor in the "dim_index" dimension.
-
- TfLiteOpaqueTensorGetAllocationStrategy(const TfLiteOpaqueTensor *t) - -
- TFL_CAPI_EXPORT TfLiteAllocationStrategy -
-
Returns a tensor data allocation strategy.
-
- TfLiteOpaqueTensorGetAllocationType(const TfLiteOpaqueTensor *opaque_tensor) - -
- TFL_CAPI_EXPORT TfLiteAllocationType -
-
Returns the 'opaque_tensor's allocation type.
-
- TfLiteOpaqueTensorGetBufferAddressStability(const TfLiteOpaqueTensor *t) - -
- TFL_CAPI_EXPORT TfLiteRunStability -
-
Returns how stable a tensor data buffer address is across runs.
-
- TfLiteOpaqueTensorGetDataKnownStep(const TfLiteOpaqueTensor *t) - -
- TFL_CAPI_EXPORT TfLiteRunStep -
-
Returns the operation step when the data of a tensor is populated.
-
- TfLiteOpaqueTensorGetDataStability(const TfLiteOpaqueTensor *t) - -
- TFL_CAPI_EXPORT TfLiteRunStability -
-
Returns how stable a tensor data values are across runs.
-
- TfLiteOpaqueTensorGetDimSignature(const TfLiteOpaqueTensor *opaque_tensor, int32_t dim_index, int32_t *dim_length) - -
- TFL_CAPI_EXPORT TfLiteStatus -
-
Loads into the provided 'dim_length' the length of the tensor in the 'dim_index' signature dimension or -1 if that dimension has unknown length.
-
- TfLiteOpaqueTensorGetNumDimsSignature(const TfLiteOpaqueTensor *opaque_tensor, int32_t *num_dims) - -
- TFL_CAPI_EXPORT TfLiteStatus -
-
Loads into the provided 'num_dims' the number of dimensions that the tensor's signature has.
-
- TfLiteOpaqueTensorGetQuantization(const TfLiteOpaqueTensor *opaque_tensor) - -
- TFL_CAPI_EXPORT TfLiteQuantization -
-
Returns the 'opaque_tensor's quantization information.
-
- TfLiteOpaqueTensorGetQuantizationParams(const TfLiteOpaqueTensor *opaque_tensor) - -
- TFL_CAPI_EXPORT TfLiteQuantizationParams -
-
Returns the 'opaque_tensor's quantization parameters.
-
- TfLiteOpaqueTensorGetShapeKnownStep(const TfLiteOpaqueTensor *t) - -
- TFL_CAPI_EXPORT TfLiteRunStep -
-
Returns the operation step when the shape of a tensor is computed.
-
- TfLiteOpaqueTensorGetString(const TfLiteOpaqueTensor *tensor, int index, const char **str, int *len) - -
- TfLiteStatus -
-
Stores the address of the n-th (denoted by the provided 'index') string contained in the provided 'tensor' in the provided '*str' pointer.
-
- TfLiteOpaqueTensorGetStringCount(const TfLiteOpaqueTensor *tensor) - -
- int -
-
Returns the number of strings stored in the provided 'tensor'.
-
- TfLiteOpaqueTensorIsVariable(const TfLiteOpaqueTensor *opaque_tensor) - -
- TFL_CAPI_EXPORT int -
-
Returns 'non-zero' if the provided 'opaque_tensor' is a variable, and returns zero otherwise.
-
- TfLiteOpaqueTensorName(const TfLiteOpaqueTensor *opaque_tensor) - -
- TFL_CAPI_EXPORT const char * -
-
Returns the (null-terminated) name of the tensor.
-
- TfLiteOpaqueTensorNumDims(const TfLiteOpaqueTensor *opaque_tensor) - -
- TFL_CAPI_EXPORT int32_t -
-
Returns the number of dimensions that the tensor has.
-
- TfLiteOpaqueTensorType(const TfLiteOpaqueTensor *opaque_tensor) - -
- TFL_CAPI_EXPORT TfLiteType -
-
Returns the type of a tensor element.
-
- TfLiteOpaqueTensorWriteString(TfLiteOpaqueTensor *tensor, const char *str, int len) - -
- TfLiteStatus -
-
Writes the string pointed to by the provided 'str' pointer of length 'len' into the provided 'tensor'.
-
- TfLiteOpaqueTensorWriteStrings(TfLiteOpaqueTensor *tensor, const char *const *str_array, int str_array_len, const int *str_n_len) - -
- TfLiteStatus -
-
Writes the array of strings specified by 'str_array' into the specified 'tensor'.
-
-

Typedefs

-
-

TfLiteIntArray

-
struct TfLiteIntArray TfLiteIntArray
-
-
-
-

TfLiteOpaqueTensorBuilder

-
struct TfLiteOpaqueTensorBuilder TfLiteOpaqueTensorBuilder
-
-

An opaque type to create a tensor.

-
-
-

Functions

-
-

TfLiteOpaqueContextAcquireSubgraphContext

-
TFL_CAPI_EXPORT TfLiteStatus TfLiteOpaqueContextAcquireSubgraphContext(
-  struct TfLiteOpaqueContext *opaque_context,
-  int subgraph_index,
-  TfLiteOpaqueContext **acquired_opaque_context
-)
-
-

Entry point for C API AcquireSubgraphContext.

-

Retrieves the corresponding TfLiteOpaqueContext of a subgraph given a subgraph index and switches to the delegate context for this subgraph. If an invalid subgraph index is given, then returns kTfLiteError.

-

NOTE: This function is expected to be paired with TfLiteOpaqueContextReleaseSubgraphContext() once the delegate preparation is done and/or the delegate context functions are no longer needed.

-
-
-
-

TfLiteOpaqueContextAddTensor

-
TFL_CAPI_EXPORT TfLiteStatus TfLiteOpaqueContextAddTensor(
-  TfLiteOpaqueContext *context,
-  TfLiteOpaqueTensorBuilder *builder,
-  int *new_tensor_index
-)
-
-

Adds an additional tensor and configures its properties based on the provided 'builder', preserving pre-existing Tensor entries.

-

If non-null, the value pointed to by 'new_tensor_index' will be set to the index of the new tensor. Returns 'kTfLiteOk' when the tensor has been added successfully. Returns 'kTfLiteError' in case of failure.

-
-
-
-

TfLiteOpaqueContextGetExecutionPlan

-
TFL_CAPI_EXPORT TfLiteStatus TfLiteOpaqueContextGetExecutionPlan(
-  TfLiteOpaqueContext *opaque_context,
-  TfLiteIntArray **execution_plan
-)
-
-

Loads the provided execution_plan associated with the provided opaque_context.

-

Returns kTfLiteOk if the execution_plan was successfully loaded. A return value different from kTfLiteOk indicates a failure and the execution_plan will be left in an unspecified state.

-
-
-
-

TfLiteOpaqueContextGetInputs

-
TFL_CAPI_EXPORT TfLiteStatus TfLiteOpaqueContextGetInputs(
-  const struct TfLiteOpaqueContext *opaque_context,
-  const int **inputs,
-  int *num_inputs
-)
-
-

Loads into the provided '*inputs' pointer the starting address of an array of indices representing the tensors that are inputs to the subgraph that is associated with the provided 'opaque_context'.

-

The length of the array is loaded into the provided 'num_inputs' pointer. Returns 'kTfLiteOk' in case of success. Any other return value indicates a failure and will leave 'inputs' and 'num_inputs' in an unspecified state. Calls to 'SetInputs' on the associated subgraph invalidate the loaded pointers.

-
-
-
-

TfLiteOpaqueContextGetName

-
TFL_CAPI_EXPORT const char * TfLiteOpaqueContextGetName(
-  const struct TfLiteOpaqueContext *opaque_context
-)
-
-

Returns the name of the subgraph that is associated with the provided 'opaque_context'.

-

Typically the returned pointer will remain valid throughout the lifetime of the subgraph, but may be invalidated by a call to 'Subgraph::SetName'.

-
-
-
-

TfLiteOpaqueContextGetNodeAndRegistration

-
TFL_CAPI_EXPORT TfLiteStatus TfLiteOpaqueContextGetNodeAndRegistration(
-  struct TfLiteOpaqueContext *opaque_context,
-  int node_index,
-  TfLiteOpaqueNode **node,
-  TfLiteRegistrationExternal **registration_external
-)
-
-

Given the specified 'opaque_context' and 'node_index', load the caller's opaque '*node' and '*registration_external' pointer.

-

Return 'kTfLiteOk' if both the '*node' as well as the '*registration_external' have been loaded correctly. Any other return code indicates a failure and both '*node' as well as '*registration_external' will be in an unspecified state.

-

A caller can obtain a node's index by calling 'TfLiteOpaqueContextGetExecutionPlan', which provides an array of node indices, sorted in execution order. A node index might also come from the data structures passed to the delegate kernel's callback parameters, like the delegate parameters data structure passed to the 'init' callback that contains an array of node indices that are meant to be handled by the delegate kernel.

-

This function is expected to be called from within a delegate callback, like 'Prepare', or a delegate kernel callback (i.e., a callback registered with a 'TfLiteRegistrationExternal' object).

-

The loaded '*node' and '*registration_external' pointers will generally remain valid for the lifetime of the associated 'opaque_context', but can be invalidated through API calls where delegates get un-applied, like API calls that modify the model graph via a delegate, or if input tensors get re-sized.

-
-
-
-

TfLiteOpaqueContextGetNodeInitDataMmapInfo

-
TFL_CAPI_EXPORT TfLiteStatus TfLiteOpaqueContextGetNodeInitDataMmapInfo(
-  const TfLiteOpaqueContext *context,
-  const TfLiteOpaqueNode *node,
-  int *fd,
-  int64_t *custom_initial_data_offset_in_file,
-  int64_t *custom_initial_data_size
-)
-
-

Loads metadata of a TF Lite node's custom initialization data.

-

Specifically:

    -
  • Loads into the supplied 'fd' the file descriptor of the file that stores the 'node's custom initialization data. This output parameter will be loaded if the TF Lite runtime has access to the file descriptor, though this is not always the case, e.g. if a client provides a tflite::Model directly to the TF Lite runtime. If 'fd' can be loaded then 'kTfLiteOk' will be returned, otherwise 'kTfLiteError' is returned.
  • -
  • Loads into the supplied 'custom_initial_data_offset_in_file' pointer the offset of the 'node's custom init data in the file associated with 'fd'. This output parameter will be set to -1 if the 'node' does not have custom init data set.
  • -
  • Loads into the supplied 'custom_initial_data_size' the size of the custom initialization data. This output parameter will be set to -1 if the 'node' does not have custom init data set.
  • -

-

Returns 'kTfLiteOk' when 'fd' has been loaded successfully and 'kTfLiteError' otherwise. Note that this means that 'kTfLiteOk' can be returned, even if the 'node' does not have custom init data set.

-
-
-
-

TfLiteOpaqueContextGetNumNodes

-
TFL_CAPI_EXPORT size_t TfLiteOpaqueContextGetNumNodes(
-  const struct TfLiteOpaqueContext *opaque_context
-)
-
-

Returns the number of nodes associated with the provided 'opaque_context'.

-
-
-
-

TfLiteOpaqueContextGetNumTensors

-
TFL_CAPI_EXPORT size_t TfLiteOpaqueContextGetNumTensors(
-  const struct TfLiteOpaqueContext *opaque_context
-)
-
-

Returns the number of tensors associated with the provided 'opaque_context'.

-
-
-
-

TfLiteOpaqueContextGetOpaqueTensor

-
TFL_CAPI_EXPORT TfLiteOpaqueTensor * TfLiteOpaqueContextGetOpaqueTensor(
-  const TfLiteOpaqueContext *opaque_context,
-  int index
-)
-
-

Returns modifiable access to the opaque tensor that corresponds to the specified index and is associated with the provided opaque_context.

-

This requires the index to be between 0 and N - 1, where N is the number of tensors in the model.

-

Typically the tensors associated with the context would be set during the initialization of the interpreter that the context belongs to, through a mechanism like the InterpreterBuilder, and remain unchanged throughout the lifetime of the interpreter. However, there are some circumstances in which the pointer may not remain valid throughout the lifetime of the interpreter, because calls to AddTensors on the interpreter invalidate the returned pointer.

-

The ownership of the tensor remains with the TFLite runtime, meaning the caller should not deallocate the pointer.

-
-
-
-

TfLiteOpaqueContextGetOutputs

-
TFL_CAPI_EXPORT TfLiteStatus TfLiteOpaqueContextGetOutputs(
-  const struct TfLiteOpaqueContext *opaque_context,
-  const int **outputs,
-  int *num_outputs
-)
-
-

Loads into the provided '*outputs' pointer the starting address of an array of indices representing the tensors that are outputs to the subgraph that is associated with the provided 'opaque_context'.

-

The length of the array is loaded into the provided 'num_outputs' pointer. Returns 'kTfLiteOk' in case of success. Any other return value indicates a failure and will leave 'outputs' and 'num_outputs' in an unspecified state. Calls to 'SetOutputs' on the associated subgraph invalidate the loaded pointers.

-
-
-
-

TfLiteOpaqueContextGetSizeOfType

-
TFL_CAPI_EXPORT TfLiteStatus TfLiteOpaqueContextGetSizeOfType(
-  TfLiteOpaqueContext *context,
-  TfLiteType type,
-  size_t *bytes
-)
-
-

Populates the size in bytes of a provide 'type' into 'bytes'.

-

Returns 'kTfLiteOk' for valid types, and 'kTfLiteError' otherwise.

-
-
-
-

TfLiteOpaqueContextGetVariables

-
TFL_CAPI_EXPORT TfLiteStatus TfLiteOpaqueContextGetVariables(
-  const struct TfLiteOpaqueContext *opaque_context,
-  const int **variables,
-  int *num_variables
-)
-
-

Loads into the provided '*variables' pointer the starting address of an array of indices representing the tensors that are variables to the subgraph that is associated with the provided 'opaque_context'.

-

The length of the array is loaded into the provided 'num_variables' pointer. Returns 'kTfLiteOk' in case of success. Any other return value indicates a failure and will leave 'variables' and 'num_variables' in an unspecified state. Calls to 'SetVariables' on the associated subgraph invalidate the loaded pointers.

-
-
-
-

TfLiteOpaqueContextMarkSubgraphAsDelegationSkippable

-
TFL_CAPI_EXPORT TfLiteStatus TfLiteOpaqueContextMarkSubgraphAsDelegationSkippable(
-  TfLiteOpaqueContext *opaque_context,
-  int subgraph_index
-)
-
-

Entry point for C API MarkSubgraphAsDelegationSkippable.

-

Marks the subgraph with the given index as "delegation-skippable". Returns kTfLiteOk if the given subgraph index is valid and is successfully marked as delegation-skippable, and an error status if the subgraph index is invalid. If a subgraph is delegation-skippable, then the subgraph will be handled by a specific TfLiteOpaqueDelegate that is already supposed to be aware of this condition, and therefore, TfLiteInterpreter can skip invoking ModifyGraphWithDelegate on this subgraph.

-

NOTE: This function is expected to be called only when the subgraph that subgraph_index is pointing to should be skipped by interpreter::ModifyGraphWithDelegate (e.g. the subgraph is part of the list of callee subgraphs of the same control flow node, and all of those callees are supported by the same delegate at once).

-

For example, this function can be used when the delegate is handling control flow ops such as while ops. For instance, a while op has a condition subgraph indexed at i and a body subgraph indexed at j. The op can be delegated when the following conditions hold:

    -
  1. The delegate supports while op
  2. -
  3. Both condition subgraph i and body subgraph j can be fully delegated to the delegate.
  4. -

-

Then if the delegate decides to support the while node along with both body and condition subgraphs, it should mark subgraphs i and j skippable so that those two subgraphs won't be delegated to another delegate.

-

WARNING: It is the delegate's responsibility to define when to skip Subgraph::ModifyGraphWithDelegate, to check for any edge cases (i.e. multiple references to the subgraph that subgraph_index is pointing to), and to mark a subgraph as skippable by using this function.

-
-
-
-

TfLiteOpaqueContextReleaseSubgraphContext

-
TFL_CAPI_EXPORT TfLiteStatus TfLiteOpaqueContextReleaseSubgraphContext(
-  struct TfLiteOpaqueContext *opaque_context,
-  int subgraph_index
-)
-
-

Entry point for C API ReleaseSubgraphContext.

-

Releases the corresponding TfLiteOpaqueContext by switching back to the TFLite kernel context for this specified subgraph.

-

NOTE: This function is expected to be used after TfLiteOpaqueContextAcquireSubgraphContext() once the delegate preparation is done and/or the delegate context functions are no longer needed.

-
-
-
-

TfLiteOpaqueContextReplaceNodeSubsetsWithDelegateKernels

-
TFL_CAPI_EXPORT TfLiteStatus TfLiteOpaqueContextReplaceNodeSubsetsWithDelegateKernels(
-  struct TfLiteOpaqueContext *opaque_context,
-  TfLiteRegistrationExternal *registration_external,
-  const TfLiteIntArray *nodes_to_replace,
-  TfLiteOpaqueDelegate *opaque_delegate
-)
-
-

Entry point for C API ReplaceNodeSubsetsWithDelegateKernels.

-

Replaces the specified nodes_to_replace that are associated with the provided opaque_context with delegate kernels. The provided registration_external represents the delegate kernel and will be used for each node subset that will be delegate to the provided opaque_delegate.

-

The TF Lite runtime will take ownership of the registration_external and will delete it when the associated opaque_context gets destroyed.

-

The ownership of the nodes_to_replace and the opaque_delegate remains with the caller.

-
-
-
-

TfLiteOpaqueContextReportError

-
TFL_CAPI_EXPORT void TfLiteOpaqueContextReportError(
-  struct TfLiteOpaqueContext *opaque_context,
-  const char *format,
-  ...
-)
-
-

Reports an error message formed by using the provided 'format' string in combination with the data provided via the unnamed arguments following the 'format' parameter ('...').

-

The intended usage and behavior is the same as with 'printf' with regards to how the data and the formatting string interact. E.g. 'TfLiteOpaqueContextReportError(opaque_context, "a=%d b=%d", a, b);'

-

The provided 'opaque_context' will be used for reporting the resulting error message.

-

Note that TF Lite clients can use macros like 'TF_LITE_OPAQUE_ENSURE' to check for certain conditions to be true, and print an error message if the condition does not hold. Direct usage of this function from application code should therefore be rare.

-
-
-
-

TfLiteOpaqueContextReportErrorVa

-
TFL_CAPI_EXPORT void TfLiteOpaqueContextReportErrorVa(
-  struct TfLiteOpaqueContext *opaque_context,
-  const char *format,
-  va_list vlist
-)
-
-

Same as TfLiteOpaqueContextReportError, but with the variable arguments passed via a va_list instead of directly.

-

Callers that receive an ellipsis and want to forward it to to the opaque context error reporting API can add the ellipsis content to a va_list and then call TfLiteOpaqueContextReportErrorVa. E.g.:

-

-

void MyErrorReporter(struct TfLiteOpaqueContext* opaque_context,
-                                 const char* format, ...) {
-  va_list vlist;
-  va_start(vlist, format);
-  TfLiteOpaqueContextReportErrorVa(opaque_context, format, vlist);
-  va_end(vlist);
-}  
-

-
-
-
-

TfLiteOpaqueContextResizeTensor

-
TFL_CAPI_EXPORT TfLiteStatus TfLiteOpaqueContextResizeTensor(
-  TfLiteOpaqueContext *context,
-  TfLiteOpaqueTensor *tensor,
-  TfLiteIntArray *new_size
-)
-
-

Resizes the provided 'tensor' that is associated with the provided 'context' so that the 'tensor's shape matches the dimensionality specified via the provided 'new_size' array.

-

Returns 'kTfLiteOk' in case of success. Any other return value indicates a failure and will leave the 'tensor' in an unspecified state. The TF Lite runtime takes ownership of the 'new_size' array, even in case of failure.

-
-
-
-

TfLiteOpaqueNodeGetBuiltinData

-
TFL_CAPI_EXPORT void * TfLiteOpaqueNodeGetBuiltinData(
-  const TfLiteOpaqueNode *opaque_node
-)
-
-

Returns the builtin data associated with the provided 'opaque_node'.

-

The builtin init data associated with a node would typically be set during the creation of the associated interpreter, through a mechanism like the interpreter builder that loads a TFLite model and initialises the interpreter's nodes accordingly. Under these conditions the returned address remains valid throughout the lifetime of the 'opaque_node'.

-
-
-
-

TfLiteOpaqueNodeGetCustomInitialData

-
TFL_CAPI_EXPORT TfLiteStatus TfLiteOpaqueNodeGetCustomInitialData(
-  const TfLiteOpaqueNode *opaque_node,
-  const void **init_data,
-  int *size
-)
-
-

Loads into the provided '*init_data' pointer the address of the custom init data associated with the provided 'opaque_node'.

-

The length of data is loaded into the provided 'size' pointer. Returns 'kTfLiteOk' in case of success. Any other return value indicates a failure and will leave 'init_data' and 'size' in an unspecified state.

-

The custom init data associated with a node would typically be set during the creation of the associated interpreter, through a mechanism like the interpreter builder that loads a TFLite model and initialises the interpreter's nodes accordingly. Under these conditions the returned address remains valid throughout the lifetime of the 'opaque_node'.

-
-
-
-

TfLiteOpaqueNodeGetInput

-
TFL_CAPI_EXPORT const TfLiteOpaqueTensor * TfLiteOpaqueNodeGetInput(
-  const TfLiteOpaqueContext *opaque_context,
-  const TfLiteOpaqueNode *opaque_node,
-  int index
-)
-
-

Returns the input tensor of the given node.

-
-
-
-

TfLiteOpaqueNodeGetInputTensorIndex

-
TFL_CAPI_EXPORT int TfLiteOpaqueNodeGetInputTensorIndex(
-  const TfLiteOpaqueNode *opaque_node,
-  int index_of_input
-)
-
-

Given an 'index_of_input', which must be in the range of [0, N), where N is the number of input tensors of the provided 'opaque_node', returns the (global) index of the tensor that holds the input.

-

Returns -1 if 'index_of_input' is not within the [0, N) range.

-
-
-
-

TfLiteOpaqueNodeGetOutput

-
TFL_CAPI_EXPORT TfLiteOpaqueTensor * TfLiteOpaqueNodeGetOutput(
-  TfLiteOpaqueContext *opaque_context,
-  const TfLiteOpaqueNode *opaque_node,
-  int index
-)
-
-

Returns the output tensor of the given node.

-
-
-
-

TfLiteOpaqueNodeGetOutputTensorIndex

-
TFL_CAPI_EXPORT int TfLiteOpaqueNodeGetOutputTensorIndex(
-  const TfLiteOpaqueNode *opaque_node,
-  int index_of_output
-)
-
-

Given an 'index_of_output', which must be in the range of [0, N), where N is the number of output tensors of the provided 'opaque_node', returns the (global) index of the tensor that holds the output.

-

Returns -1 if 'index_of_output' is not within the [0, N) range.

-
-
-
-

TfLiteOpaqueNodeGetUserData

-
TFL_CAPI_EXPORT void * TfLiteOpaqueNodeGetUserData(
-  const TfLiteOpaqueNode *opaque_node
-)
-
-

Returns opaque data provided by the node implementer.

-

The value returned from this function is the value that was returned from the init callback that was passed to TfLiteRegistrationExternalSetInit.

-
-
-
-

TfLiteOpaqueNodeInputs

-
TFL_CAPI_EXPORT TfLiteStatus TfLiteOpaqueNodeInputs(
-  const TfLiteOpaqueNode *opaque_node,
-  const int **inputs,
-  int *num_inputs
-)
-
-

Loads into the provided '*inputs' pointer the starting address of an array of indices representing the tensors that are inputs of the provided 'opaque_node'.

-

The length of the array is loaded into the provided 'num_inputs' pointer. Returns 'kTfLiteOk' in case of success. Any other return value indicates a failure and will leave 'inputs' and 'num_inputs' in an unspecified state.

-

The input tensors associated with a node would typically be set during the creation of the associated interpreter, through a mechanism like the interpreter builder that loads a TFLite model and initialises the interpreter's nodes accordingly. Under these conditions the loaded address remains valid throughout the lifetime of the 'opaque_node'.

-
-
-
-

TfLiteOpaqueNodeNumberOfInputs

-
TFL_CAPI_EXPORT int TfLiteOpaqueNodeNumberOfInputs(
-  const TfLiteOpaqueNode *opaque_node
-)
-
-

Gets the number of input tensors of the provided 'opaque_node'.

-
-
-
-

TfLiteOpaqueNodeNumberOfOutputs

-
TFL_CAPI_EXPORT int TfLiteOpaqueNodeNumberOfOutputs(
-  const TfLiteOpaqueNode *opaque_node
-)
-
-

Gets the number of output tensors of the provided 'opaque_node'.

-
-
-
-

TfLiteOpaqueNodeOutputs

-
TFL_CAPI_EXPORT TfLiteStatus TfLiteOpaqueNodeOutputs(
-  const TfLiteOpaqueNode *opaque_node,
-  const int **outputs,
-  int *num_outputs
-)
-
-

Loads into the provided '*outputs' pointer the starting address of an array of indices representing the tensors that are outputs of the provided 'opaque_node'.

-

The length of the array is loaded into the provided 'num_outputs' pointer. Returns 'kTfLiteOk' in case of success. Any other return value indicates a failure and will leave 'outputs' and 'num_outputs' in an unspecified state.

-

The output tensors associated with a node would typically be set during the creation of the associated interpreter, through a mechanism like the interpreter builder that loads a TFLite model and initialises the interpreter's nodes accordingly. Under these conditions the loaded address remains valid throughout the lifetime of the 'opaque_node'.

-
-
-
-

TfLiteOpaqueNodeTemporaries

-
TFL_CAPI_EXPORT TfLiteStatus TfLiteOpaqueNodeTemporaries(
-  const TfLiteOpaqueNode *opaque_node,
-  const int **temporaries,
-  int *num_temporaries
-)
-
-

Loads into the provided '*temporaries' pointer the starting address of an array of indices representing the temporary tensors associated with the provided 'opaque_node'.

-

The length of the array is loaded into the provided 'num_temporaries' pointer. Returns 'kTfLiteOk' in case of success. Any other return value indicates a failure and will leave 'temporaries' and 'num_temporaries' in an unspecified state.

-

The temporary tensors associated with a node would typically be set during the creation of the associated interpreter, through a mechanism like the interpreter builder that loads a TFLite model and initialises the interpreter's nodes accordingly. Under these conditions the loaded address remains valid throughout the lifetime of the 'opaque_node'.

-
-
-
-

TfLiteOpaqueTensorBuilderCreate

-
TfLiteOpaqueTensorBuilder * TfLiteOpaqueTensorBuilderCreate()
-
-

Creates an opaque tensor builder object.

-
-
-
-

TfLiteOpaqueTensorBuilderDelete

-
void TfLiteOpaqueTensorBuilderDelete(
-  TfLiteOpaqueTensorBuilder *builder
-)
-
-

Deletes an opaque tensor builder object.

-
-
-
-

TfLiteOpaqueTensorBuilderSetAllocationType

-
TfLiteOpaqueTensorBuilder * TfLiteOpaqueTensorBuilderSetAllocationType(
-  TfLiteOpaqueTensorBuilder *builder,
-  TfLiteAllocationType allocation_type
-)
-
-

Sets the allocation type of the provided 'builder' to the provided 'allocation_type'.

-

The 'allocation_type' must be one of the following: 'kTfLiteDynamic', 'kTfLiteArenaRw' or 'kTfLiteArenaRwPersistent'. If the provided 'allocation_type' is not one of those values then 'TfLiteOpaqueContextAddTensor' will return an error. Returns the address of the provided 'builder', so that builder calls can be chained together.

-
-
-
-

TfLiteOpaqueTensorBuilderSetData

-
TfLiteOpaqueTensorBuilder * TfLiteOpaqueTensorBuilderSetData(
-  TfLiteOpaqueTensorBuilder *builder,
-  void *data
-)
-
-

Sets the raw data of the provided 'builder' to the provided 'data'.

-

Returns the address of the provided 'builder', so that builder calls can be chained together.

-
-
-
-

TfLiteOpaqueTensorBuilderSetQuantization

-
TfLiteOpaqueTensorBuilder * TfLiteOpaqueTensorBuilderSetQuantization(
-  TfLiteOpaqueTensorBuilder *builder,
-  TfLiteQuantization quantization
-)
-
-

Sets the quantization of the provided 'builder' to the provided 'quantization'.

-

Returns the address of the provided 'builder', so that builder calls can be chained together.

-
-
-
-

TfLiteOpaqueTensorBuilderSetQuantizationParams

-
TfLiteOpaqueTensorBuilder * TfLiteOpaqueTensorBuilderSetQuantizationParams(
-  TfLiteOpaqueTensorBuilder *builder,
-  TfLiteQuantizationParams params
-)
-
-

Sets the quantization params of the provided 'builder' to the provided 'params'.

-

Returns the address of the provided 'builder', so that builder calls can be chained together.

-
-
-
-

TfLiteOpaqueTensorBuilderSetType

-
TfLiteOpaqueTensorBuilder * TfLiteOpaqueTensorBuilderSetType(
-  TfLiteOpaqueTensorBuilder *builder,
-  TfLiteType type
-)
-
-

Sets the 'TfLiteType' of the provided 'builder' to the provided 'type'.

-

Returns the address of the provided 'builder', so that builder calls can be chained together.

-
-
-
-

TfLiteOpaqueTensorByteSize

-
TFL_CAPI_EXPORT size_t TfLiteOpaqueTensorByteSize(
-  const TfLiteOpaqueTensor *opaque_tensor
-)
-
-

Returns the size of the underlying data in bytes.

-
-
-
-

TfLiteOpaqueTensorCopyFromBuffer

-
TFL_CAPI_EXPORT TfLiteStatus TfLiteOpaqueTensorCopyFromBuffer(
-  TfLiteOpaqueTensor *opaque_tensor,
-  const void *input_data,
-  size_t input_data_size
-)
-
-

Copies from the provided input buffer into the tensor's buffer.

-
-
-
-

TfLiteOpaqueTensorCopyToBuffer

-
TFL_CAPI_EXPORT TfLiteStatus TfLiteOpaqueTensorCopyToBuffer(
-  const TfLiteOpaqueTensor *opaque_tensor,
-  void *output_data,
-  size_t output_data_size
-)
-
-

Copies to the provided output buffer from the tensor's buffer.

-
-
-
-

TfLiteOpaqueTensorData

-
TFL_CAPI_EXPORT void * TfLiteOpaqueTensorData(
-  const TfLiteOpaqueTensor *opaque_tensor
-)
-
-

Returns a pointer to the underlying data buffer.

-
-
-
-

TfLiteOpaqueTensorDim

-
TFL_CAPI_EXPORT int32_t TfLiteOpaqueTensorDim(
-  const TfLiteOpaqueTensor *opaque_tensor,
-  int32_t dim_index
-)
-
-

Returns the length of the tensor in the "dim_index" dimension.

-
-
-
-

TfLiteOpaqueTensorGetAllocationStrategy

-
TFL_CAPI_EXPORT TfLiteAllocationStrategy TfLiteOpaqueTensorGetAllocationStrategy(
-  const TfLiteOpaqueTensor *t
-)
-
-

Returns a tensor data allocation strategy.

-
-
-
-

TfLiteOpaqueTensorGetAllocationType

-
TFL_CAPI_EXPORT TfLiteAllocationType TfLiteOpaqueTensorGetAllocationType(
-  const TfLiteOpaqueTensor *opaque_tensor
-)
-
-

Returns the 'opaque_tensor's allocation type.

-
-
-
-

TfLiteOpaqueTensorGetBufferAddressStability

-
TFL_CAPI_EXPORT TfLiteRunStability TfLiteOpaqueTensorGetBufferAddressStability(
-  const TfLiteOpaqueTensor *t
-)
-
-

Returns how stable a tensor data buffer address is across runs.

-
-
-
-

TfLiteOpaqueTensorGetDataKnownStep

-
TFL_CAPI_EXPORT TfLiteRunStep TfLiteOpaqueTensorGetDataKnownStep(
-  const TfLiteOpaqueTensor *t
-)
-
-

Returns the operation step when the data of a tensor is populated.

-
-
-
-

TfLiteOpaqueTensorGetDataStability

-
TFL_CAPI_EXPORT TfLiteRunStability TfLiteOpaqueTensorGetDataStability(
-  const TfLiteOpaqueTensor *t
-)
-
-

Returns how stable a tensor data values are across runs.

-
-
-
-

TfLiteOpaqueTensorGetDimSignature

-
TFL_CAPI_EXPORT TfLiteStatus TfLiteOpaqueTensorGetDimSignature(
-  const TfLiteOpaqueTensor *opaque_tensor,
-  int32_t dim_index,
-  int32_t *dim_length
-)
-
-

Loads into the provided 'dim_length' the length of the tensor in the 'dim_index' signature dimension or -1 if that dimension has unknown length.

-

Returns 'kTfLiteOk' if 'dim_length' was successfully loaded. Any other return code indicates an error and 'dim_length' won't be loaded.

-
-
-
-

TfLiteOpaqueTensorGetNumDimsSignature

-
TFL_CAPI_EXPORT TfLiteStatus TfLiteOpaqueTensorGetNumDimsSignature(
-  const TfLiteOpaqueTensor *opaque_tensor,
-  int32_t *num_dims
-)
-
-

Loads into the provided 'num_dims' the number of dimensions that the tensor's signature has.

-

Returns 'kTfLiteOk' if 'num_dims' was successfully loaded. Any other return code indicates an error and 'num_dims' won't be loaded.

-

A tensor's dimension signature encodes shapes with unknown dimensions with -1. E.g. for a tensor with three dimensions, whose first dimension has an unknown size, and the second and third dimension have a size of 2, the dimension signature is [-1,2,2], and 'TfLiteOpaqueTensorGetNumDimsSignature' loads 3 into 'num_dims'. If the tensor does not have its dimension signature field set then 'num_dims' is set to -1.

-
-
-
-

TfLiteOpaqueTensorGetQuantization

-
TFL_CAPI_EXPORT TfLiteQuantization TfLiteOpaqueTensorGetQuantization(
-  const TfLiteOpaqueTensor *opaque_tensor
-)
-
-

Returns the 'opaque_tensor's quantization information.

-
-
-
-

TfLiteOpaqueTensorGetQuantizationParams

-
TFL_CAPI_EXPORT TfLiteQuantizationParams TfLiteOpaqueTensorGetQuantizationParams(
-  const TfLiteOpaqueTensor *opaque_tensor
-)
-
-

Returns the 'opaque_tensor's quantization parameters.

-
-
-
-

TfLiteOpaqueTensorGetShapeKnownStep

-
TFL_CAPI_EXPORT TfLiteRunStep TfLiteOpaqueTensorGetShapeKnownStep(
-  const TfLiteOpaqueTensor *t
-)
-
-

Returns the operation step when the shape of a tensor is computed.

-
-
-
-

TfLiteOpaqueTensorGetString

-
TfLiteStatus TfLiteOpaqueTensorGetString(
-  const TfLiteOpaqueTensor *tensor,
-  int index,
-  const char **str,
-  int *len
-)
-
-

Stores the address of the n-th (denoted by the provided 'index') string contained in the provided 'tensor' in the provided '*str' pointer.

-

Stores the length of the string in the provided '*len' argument.

-

Returns 'kTfLiteOk' if '*str' and '*len' have been set successfully. Any other return value indicates a failure, which leaves '*str' and '*len' in an unspecified state.

-

The range of valid indices is defined by the half open interval [0, N), where N == TfLiteOpaqueTensorGetStringCount(tensor).

-

Note that 'str' is not guaranteed to be null-terminated. Also note that this function will not create a copy of the underlying string data. The data is owned by the 'tensor'.

-
-
-
-

TfLiteOpaqueTensorGetStringCount

-
int TfLiteOpaqueTensorGetStringCount(
-  const TfLiteOpaqueTensor *tensor
-)
-
-

Returns the number of strings stored in the provided 'tensor'.

-

Returns -1 in case of failure.

-
-
-
-

TfLiteOpaqueTensorIsVariable

-
TFL_CAPI_EXPORT int TfLiteOpaqueTensorIsVariable(
-  const TfLiteOpaqueTensor *opaque_tensor
-)
-
-

Returns 'non-zero' if the provided 'opaque_tensor' is a variable, and returns zero otherwise.

-
-
-
-

TfLiteOpaqueTensorName

-
TFL_CAPI_EXPORT const char * TfLiteOpaqueTensorName(
-  const TfLiteOpaqueTensor *opaque_tensor
-)
-
-

Returns the (null-terminated) name of the tensor.

-
-
-
-

TfLiteOpaqueTensorNumDims

-
TFL_CAPI_EXPORT int32_t TfLiteOpaqueTensorNumDims(
-  const TfLiteOpaqueTensor *opaque_tensor
-)
-
-

Returns the number of dimensions that the tensor has.

-

Returns -1 in case the 'opaque_tensor' does not have its dimensions property set.

-
-
-
-

TfLiteOpaqueTensorType

-
TFL_CAPI_EXPORT TfLiteType TfLiteOpaqueTensorType(
-  const TfLiteOpaqueTensor *opaque_tensor
-)
-
-

Returns the type of a tensor element.

-
-
-
-

TfLiteOpaqueTensorWriteString

-
TfLiteStatus TfLiteOpaqueTensorWriteString(
-  TfLiteOpaqueTensor *tensor,
-  const char *str,
-  int len
-)
-
-

Writes the string pointed to by the provided 'str' pointer of length 'len' into the provided 'tensor'.

-

The string provided via 'str' is copied into the 'tensor'. Returns 'kTfLiteOk' in case of success. Any other return value indicates a failure.

-

Note that calling 'TfLiteOpaqueTensorWriteString' deallocates any previously stored data in the 'tensor'. E.g. suppose 't' denotes a 'TfLiteOpaqueTensor*', then calling 'TfLiteOpaqueTensorWriteString(t, "AB", 2)' followed by a call to 'TfLiteOpaqueTensorWriteString(t, "CD", 2)' will lead to 't' containing 'CD', not 'ABCD'.

-

'TfLiteOpaqueTensorWriteString' is a convenience function for the use case of writing a single string to a tensor and its effects are identical to calling 'TfLiteOpaqueTensorWriteStrings' with an array of a single string.

-
-
-
-

TfLiteOpaqueTensorWriteStrings

-
TfLiteStatus TfLiteOpaqueTensorWriteStrings(
-  TfLiteOpaqueTensor *tensor,
-  const char *const *str_array,
-  int str_array_len,
-  const int *str_n_len
-)
-
-

Writes the array of strings specified by 'str_array' into the specified 'tensor'.

-

The strings provided via the 'str_array' are being copied into the 'tensor'. Returns 'kTfLiteOk' in case of success. Any other return value indicates a failure.

-

The provided 'str_array_len' must denote the length of 'str_array' and 'str_n_len[i]' must denote the length of the i-th string.

-

The provided strings don't need to be null terminated and may contain embedded null characters. The amount of bytes copied into the 'tensor' is entirely determined by 'str_n_len[i]' and it is the caller's responsibility to set this value correctly to avoid undefined behavior.

-

Also note that calling 'TfLiteOpaqueTensorWriteStrings' deallocates any previously stored data in the 'tensor'.

-
-
- - diff --git a/site/en/lite/api_docs/c/group/c-api-types.html b/site/en/lite/api_docs/c/group/c-api-types.html deleted file mode 100644 index 3889243b3b..0000000000 --- a/site/en/lite/api_docs/c/group/c-api-types.html +++ /dev/null @@ -1,281 +0,0 @@ - - - - lite/c/c_api_types.h - - - -
-

lite/c/c_api_types.h

-

This file declares types used by the pure C inference API defined in c_api.h, some of which are also used in the C++ and C kernel and interpreter APIs.

-

Summary

-

-

-

- - - - - - - - - - - - -
-

Enumerations

-
- TfLiteStatus{
  kTfLiteOk = 0,
  kTfLiteError = 1,
  kTfLiteDelegateError = 2,
  kTfLiteApplicationError = 3,
  kTfLiteDelegateDataNotFound = 4,
  kTfLiteDelegateDataWriteError = 5,
  kTfLiteDelegateDataReadError = 6,
  kTfLiteUnresolvedOps = 7,
  kTfLiteCancelled = 8
}
-
enum
Note that new error status values may be added in future in order to indicate more fine-grained internal states, therefore, applications should not rely on status values being members of the enum.
- TfLiteType - enum
Types supported by tensor.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

Typedefs

-
- TfLiteDelegate - typedef
- struct TfLiteDelegate -
TfLiteDelegate: allows delegation of nodes to alternative backends.
- TfLiteOpaqueContext - typedef
- struct TfLiteOpaqueContext -
TfLiteOpaqueContext is an opaque version of TfLiteContext;.
- TfLiteOpaqueDelegate - typedef
TfLiteOpaqueDelegate: conditionally opaque version of TfLiteDelegate; allows delegation of nodes to alternative backends.
- TfLiteOpaqueDelegateStruct - typedef
TfLiteOpaqueDelegateStruct: unconditionally opaque version of TfLiteDelegate; allows delegation of nodes to alternative backends.
- TfLiteOpaqueNode - typedef
- struct TfLiteOpaqueNode -
TfLiteOpaqueNode is an opaque version of TfLiteNode;.
- TfLiteOpaqueTensor - typedef
- struct TfLiteOpaqueTensor -
TfLiteOpaqueTensor is an opaque version of TfLiteTensor;.
- TfLiteQuantizationParams - typedef
Legacy.
- TfLiteStatus - typedef
- enum TfLiteStatus -
Note that new error status values may be added in future in order to indicate more fine-grained internal states, therefore, applications should not rely on status values being members of the enum.
- - - - - - - - -
-

Structs

-
- TfLiteQuantizationParams - -

Legacy.

-
-

Enumerations

-
-

TfLiteStatus

-
 TfLiteStatus
-
-

Note that new error status values may be added in future in order to indicate more fine-grained internal states, therefore, applications should not rely on status values being members of the enum.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Properties
- kTfLiteApplicationError - -

Generally referring to an error in applying a delegate due to incompatibility between runtime and delegate, e.g., this error is returned when trying to apply a TF Lite delegate onto a model graph that's already immutable.

-
- kTfLiteCancelled - -

Generally referring to invocation cancelled by the user.

-

See interpreter::Cancel.

-
- kTfLiteDelegateDataNotFound - -

Generally referring to serialized delegate data not being found.

-

See tflite::delegates::Serialization.

-
- kTfLiteDelegateDataReadError - -

Generally referring to data-reading issues in delegate serialization.

-

See tflite::delegates::Serialization.

-
- kTfLiteDelegateDataWriteError - -

Generally referring to data-writing issues in delegate serialization.

-

See tflite::delegates::Serialization.

-
- kTfLiteDelegateError - -

Generally referring to an error from a TfLiteDelegate itself.

-
- kTfLiteError - -

Generally referring to an error in the runtime (i.e. interpreter)

-
- kTfLiteOk - -

Success.

-
- kTfLiteUnresolvedOps - -

Generally referring to issues when the TF Lite model has ops that cannot be resolved at runtime.

-

This could happen when the specific op is not registered or built with the TF Lite framework.

-
-
-
-
-

TfLiteType

-
 TfLiteType
-
-

Types supported by tensor.

-
-
-

Typedefs

-
-

TfLiteDelegate

-
struct TfLiteDelegate TfLiteDelegate
-
-

TfLiteDelegate: allows delegation of nodes to alternative backends.

-

Forward declaration of concrete type declared in common.h.

-
-
-
-

TfLiteOpaqueContext

-
struct TfLiteOpaqueContext TfLiteOpaqueContext
-
-

TfLiteOpaqueContext is an opaque version of TfLiteContext;.

-
-
-
-

TfLiteOpaqueDelegate

-
TfLiteDelegate TfLiteOpaqueDelegate
-
-

TfLiteOpaqueDelegate: conditionally opaque version of TfLiteDelegate; allows delegation of nodes to alternative backends.

-

For TF Lite in Play Services, this is an opaque type, but for regular TF Lite, this is just a typedef for TfLiteDelegate.

-

WARNING: This is an experimental type and subject to change.

-
-
-
-

TfLiteOpaqueDelegateStruct

-
struct TfLiteOpaqueDelegateStruct TfLiteOpaqueDelegateStruct
-
-

TfLiteOpaqueDelegateStruct: unconditionally opaque version of TfLiteDelegate; allows delegation of nodes to alternative backends.

-

This is an abstract type that is intended to have the same role as TfLiteDelegate, but without exposing the implementation details of how delegates are implemented.

-

WARNING: This is an experimental type and subject to change.

-
-
-
-

TfLiteOpaqueNode

-
struct TfLiteOpaqueNode TfLiteOpaqueNode
-
-

TfLiteOpaqueNode is an opaque version of TfLiteNode;.

-
-
-
-

TfLiteOpaqueTensor

-
struct TfLiteOpaqueTensor TfLiteOpaqueTensor
-
-

TfLiteOpaqueTensor is an opaque version of TfLiteTensor;.

-
-
-
-

TfLiteQuantizationParams

-
struct TfLiteQuantizationParams TfLiteQuantizationParams
-
-

Legacy.

-

Will be deprecated in favor of TfLiteAffineQuantization. If per-layer quantization is specified this field will still be populated in addition to TfLiteAffineQuantization. Parameters for asymmetric quantization. Quantized values can be converted back to float using: real_value = scale * (quantized_value - zero_point)

-
-
-
-

TfLiteStatus

-
enum TfLiteStatus TfLiteStatus
-
-

Note that new error status values may be added in future in order to indicate more fine-grained internal states, therefore, applications should not rely on status values being members of the enum.

-
-
- - diff --git a/site/en/lite/api_docs/c/group/c-api.html b/site/en/lite/api_docs/c/group/c-api.html deleted file mode 100644 index ea99cf2e58..0000000000 --- a/site/en/lite/api_docs/c/group/c-api.html +++ /dev/null @@ -1,1321 +0,0 @@ - - - - lite/c/c_api.h - - - -
-

lite/c/c_api.h

-

C API for TensorFlow Lite.

-

Summary

-

The API leans towards simplicity and uniformity instead of convenience, as most usage will be by language-specific wrappers. It provides largely the same set of functionality as that of the C++ TensorFlow Lite Interpreter API, but is useful for shared libraries where having a stable ABI boundary is important.

-

Conventions:

-

Usage:


-// Create the model and interpreter options.
-TfLiteModel* model = TfLiteModelCreateFromFile("/path/to/model.tflite");
-TfLiteInterpreterOptions* options = TfLiteInterpreterOptionsCreate();
-TfLiteInterpreterOptionsSetNumThreads(options, 2);

-

-

// Create the interpreter.
-TfLiteInterpreter* interpreter = TfLiteInterpreterCreate(model, options);
-

-

-

// Allocate tensors and populate the input tensor data.
-TfLiteInterpreterAllocateTensors(interpreter);
-TfLiteTensor* input_tensor =
-    TfLiteInterpreterGetInputTensor(interpreter, 0);
-TfLiteTensorCopyFromBuffer(input_tensor, input.data(),
-                           input.size() * sizeof(float));
-

-

-

// Execute inference.
-TfLiteInterpreterInvoke(interpreter);
-

-

-

// Extract the output tensor data.
-const TfLiteTensor* output_tensor =
-     TfLiteInterpreterGetOutputTensor(interpreter, 0);
-TfLiteTensorCopyToBuffer(output_tensor, output.data(),
-                         output.size() * sizeof(float));
-

-

-

// Dispose of the model and interpreter objects.
-TfLiteInterpreterDelete(interpreter);
-TfLiteInterpreterOptionsDelete(options);
-TfLiteModelDelete(model);
-
- -

- - - - - - - - - - - - - - - - - - - - - - - - -
-

Typedefs

-
- TfLiteInterpreter - typedef
- struct TfLiteInterpreter -
TfLiteInterpreter provides inference from a provided model.
- TfLiteInterpreterOptions - typedef
TfLiteInterpreterOptions allows customized interpreter configuration.
- TfLiteModel - typedef
- struct TfLiteModel -
TfLiteModel wraps a loaded TensorFlow Lite model.
- TfLiteSignatureRunner - typedef
TfLiteSignatureRunner is used to run inference on a signature.
- TfLiteTensor - typedef
- struct TfLiteTensor -
A tensor in the interpreter system which is a wrapper around a buffer of data including a dimensionality (or NULL if not currently defined).
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

Functions

-
- TfLiteExtensionApisVersion(void) - -
- TFL_CAPI_EXPORT const char * -
-
The TensorFlow Lite Extension APIs version.
-
- TfLiteInterpreterAllocateTensors(TfLiteInterpreter *interpreter) - -
- TFL_CAPI_EXPORT TfLiteStatus -
-
Updates allocations for all tensors, resizing dependent tensors using the specified input tensor dimensionality.
-
- TfLiteInterpreterCancel(const TfLiteInterpreter *interpreter) - -
- TFL_CAPI_EXPORT TfLiteStatus -
-
Tries to cancel any in-flight invocation.
-
- TfLiteInterpreterCreate(const TfLiteModel *model, const TfLiteInterpreterOptions *optional_options) - -
- TFL_CAPI_EXPORT TfLiteInterpreter * -
-
Returns a new interpreter using the provided model and options, or null on failure.
-
- TfLiteInterpreterDelete(TfLiteInterpreter *interpreter) - -
- TFL_CAPI_EXPORT void -
-
Destroys the interpreter.
-
- TfLiteInterpreterGetInputTensor(const TfLiteInterpreter *interpreter, int32_t input_index) - -
- TFL_CAPI_EXPORT TfLiteTensor * -
-
Returns the tensor associated with the input index.
-
- TfLiteInterpreterGetInputTensorCount(const TfLiteInterpreter *interpreter) - -
- TFL_CAPI_EXPORT int32_t -
-
Returns the number of input tensors associated with the model.
-
- TfLiteInterpreterGetOutputTensor(const TfLiteInterpreter *interpreter, int32_t output_index) - -
- TFL_CAPI_EXPORT const TfLiteTensor * -
-
Returns the tensor associated with the output index.
-
- TfLiteInterpreterGetOutputTensorCount(const TfLiteInterpreter *interpreter) - -
- TFL_CAPI_EXPORT int32_t -
-
Returns the number of output tensors associated with the model.
-
- TfLiteInterpreterGetSignatureCount(const TfLiteInterpreter *interpreter) - -
- TFL_CAPI_EXPORT int32_t -
-

- SignatureRunner APIs
-
- TfLiteInterpreterGetSignatureKey(const TfLiteInterpreter *interpreter, int32_t signature_index) - -
- TFL_CAPI_EXPORT const char * -
-
Returns the key of the Nth signature in the model, where N is specified as signature_index.
-
- TfLiteInterpreterGetSignatureRunner(const TfLiteInterpreter *interpreter, const char *signature_key) - -
- TFL_CAPI_EXPORT TfLiteSignatureRunner * -
-
Returns a new signature runner using the provided interpreter and signature key, or nullptr on failure.
-
- TfLiteInterpreterGetTensor(const TfLiteInterpreter *interpreter, int index) - -
- TFL_CAPI_EXPORT TfLiteTensor * -
-
Returns modifiable access to the tensor that corresponds to the specified index and is associated with the provided interpreter.
-
- TfLiteInterpreterInputTensorIndices(const TfLiteInterpreter *interpreter) - -
- TFL_CAPI_EXPORT const int * -
-
Returns a pointer to an array of input tensor indices.
-
- TfLiteInterpreterInvoke(TfLiteInterpreter *interpreter) - -
- TFL_CAPI_EXPORT TfLiteStatus -
-
Runs inference for the loaded graph.
-
- TfLiteInterpreterOptionsAddDelegate(TfLiteInterpreterOptions *options, TfLiteOpaqueDelegate *delegate) - -
- TFL_CAPI_EXPORT void -
-
Adds a delegate to be applied during TfLiteInterpreter creation.
-
- TfLiteInterpreterOptionsAddRegistrationExternal(TfLiteInterpreterOptions *options, TfLiteRegistrationExternal *registration) - -
- TFL_CAPI_EXPORT void -
-
Adds an op registration to be applied during TfLiteInterpreter creation.
-
- TfLiteInterpreterOptionsCopy(const TfLiteInterpreterOptions *from) - -
- TFL_CAPI_EXPORT TfLiteInterpreterOptions * -
-
Creates and returns a shallow copy of an options object.
-
- TfLiteInterpreterOptionsCreate() - -
- TFL_CAPI_EXPORT TfLiteInterpreterOptions * -
-
Returns a new interpreter options instances.
-
- TfLiteInterpreterOptionsDelete(TfLiteInterpreterOptions *options) - -
- TFL_CAPI_EXPORT void -
-
Destroys the interpreter options instance.
-
- TfLiteInterpreterOptionsEnableCancellation(TfLiteInterpreterOptions *options, bool enable) - -
- TFL_CAPI_EXPORT TfLiteStatus -
-
Enables users to cancel in-flight invocations with TfLiteInterpreterCancel.
-
- TfLiteInterpreterOptionsSetErrorReporter(TfLiteInterpreterOptions *options, void(*)(void *user_data, const char *format, va_list args) reporter, void *user_data) - -
- TFL_CAPI_EXPORT void -
-
Sets a custom error reporter for interpreter execution.
-
- TfLiteInterpreterOptionsSetNumThreads(TfLiteInterpreterOptions *options, int32_t num_threads) - -
- TFL_CAPI_EXPORT void -
-
Sets the number of CPU threads to use for the interpreter.
-
- TfLiteInterpreterOutputTensorIndices(const TfLiteInterpreter *interpreter) - -
- TFL_CAPI_EXPORT const int * -
-
Returns a pointer to an array of output tensor indices.
-
- TfLiteInterpreterResizeInputTensor(TfLiteInterpreter *interpreter, int32_t input_index, const int *input_dims, int32_t input_dims_size) - -
- TFL_CAPI_EXPORT TfLiteStatus -
-
Resizes the specified input tensor.
-
- TfLiteModelCreate(const void *model_data, size_t model_size) - -
- TFL_CAPI_EXPORT TfLiteModel * -
-
Returns a model from the provided buffer, or null on failure.
-
- TfLiteModelCreateFromFile(const char *model_path) - -
- TFL_CAPI_EXPORT TfLiteModel * -
-
Returns a model from the provided file, or null on failure.
-
- TfLiteModelCreateFromFileWithErrorReporter(const char *model_path, void(*)(void *user_data, const char *format, va_list args) reporter, void *user_data) - -
- TFL_CAPI_EXPORT TfLiteModel * -
-
Same as TfLiteModelCreateFromFile with customizble error reporter.
-
- TfLiteModelCreateWithErrorReporter(const void *model_data, size_t model_size, void(*)(void *user_data, const char *format, va_list args) reporter, void *user_data) - -
- TFL_CAPI_EXPORT TfLiteModel * -
-
Same as TfLiteModelCreate with customizble error reporter.
-
- TfLiteModelDelete(TfLiteModel *model) - -
- TFL_CAPI_EXPORT void -
-
Destroys the model instance.
-
- TfLiteSchemaVersion(void) - -
- TFL_CAPI_EXPORT int -
-
The supported TensorFlow Lite model file Schema version.
-
- TfLiteSignatureRunnerAllocateTensors(TfLiteSignatureRunner *signature_runner) - -
- TFL_CAPI_EXPORT TfLiteStatus -
-
Updates allocations for tensors associated with a signature and resizes dependent tensors using the specified input tensor dimensionality.
-
- TfLiteSignatureRunnerDelete(TfLiteSignatureRunner *signature_runner) - -
- TFL_CAPI_EXPORT void -
-
Destroys the signature runner.
-
- TfLiteSignatureRunnerGetInputCount(const TfLiteSignatureRunner *signature_runner) - -
- TFL_CAPI_EXPORT size_t -
-
Returns the number of inputs associated with a signature.
-
- TfLiteSignatureRunnerGetInputName(const TfLiteSignatureRunner *signature_runner, int32_t input_index) - -
- TFL_CAPI_EXPORT const char * -
-
Returns the (null-terminated) name of the Nth input in a signature, where N is specified as input_index.
-
- TfLiteSignatureRunnerGetInputTensor(TfLiteSignatureRunner *signature_runner, const char *input_name) - -
- TFL_CAPI_EXPORT TfLiteTensor * -
-
Returns the input tensor identified by input_name in the given signature.
-
- TfLiteSignatureRunnerGetOutputCount(const TfLiteSignatureRunner *signature_runner) - -
- TFL_CAPI_EXPORT size_t -
-
Returns the number of output tensors associated with the signature.
-
- TfLiteSignatureRunnerGetOutputName(const TfLiteSignatureRunner *signature_runner, int32_t output_index) - -
- TFL_CAPI_EXPORT const char * -
-
Returns the (null-terminated) name of the Nth output in a signature, where N is specified as output_index.
-
- TfLiteSignatureRunnerGetOutputTensor(const TfLiteSignatureRunner *signature_runner, const char *output_name) - -
- TFL_CAPI_EXPORT const TfLiteTensor * -
-
Returns the output tensor identified by output_name in the given signature.
-
- TfLiteSignatureRunnerInvoke(TfLiteSignatureRunner *signature_runner) - -
- TFL_CAPI_EXPORT TfLiteStatus -
-
Runs inference on a given signature.
-
- TfLiteSignatureRunnerResizeInputTensor(TfLiteSignatureRunner *signature_runner, const char *input_name, const int *input_dims, int32_t input_dims_size) - -
- TFL_CAPI_EXPORT TfLiteStatus -
-
Resizes the input tensor identified as input_name to be the dimensions specified by input_dims and input_dims_size.
-
- TfLiteTensorByteSize(const TfLiteTensor *tensor) - -
- TFL_CAPI_EXPORT size_t -
-
Returns the size of the underlying data in bytes.
-
- TfLiteTensorCopyFromBuffer(TfLiteTensor *tensor, const void *input_data, size_t input_data_size) - -
- TFL_CAPI_EXPORT TfLiteStatus -
-
Copies from the provided input buffer into the tensor's buffer.
-
- TfLiteTensorCopyToBuffer(const TfLiteTensor *output_tensor, void *output_data, size_t output_data_size) - -
- TFL_CAPI_EXPORT TfLiteStatus -
-
Copies to the provided output buffer from the tensor's buffer.
-
- TfLiteTensorData(const TfLiteTensor *tensor) - -
- TFL_CAPI_EXPORT void * -
-
Returns a pointer to the underlying data buffer.
-
- TfLiteTensorDim(const TfLiteTensor *tensor, int32_t dim_index) - -
- TFL_CAPI_EXPORT int32_t -
-
Returns the length of the tensor in the "dim_index" dimension.
-
- TfLiteTensorName(const TfLiteTensor *tensor) - -
- TFL_CAPI_EXPORT const char * -
-
Returns the (null-terminated) name of the tensor.
-
- TfLiteTensorNumDims(const TfLiteTensor *tensor) - -
- TFL_CAPI_EXPORT int32_t -
-
Returns the number of dimensions that the tensor has.
-
- TfLiteTensorQuantizationParams(const TfLiteTensor *tensor) - -
- TFL_CAPI_EXPORT TfLiteQuantizationParams -
-
Returns the parameters for asymmetric quantization.
-
- TfLiteTensorType(const TfLiteTensor *tensor) - -
- TFL_CAPI_EXPORT TfLiteType -
-
Returns the type of a tensor element.
-
- TfLiteVersion(void) - -
- TFL_CAPI_EXPORT const char * -
-
The TensorFlow Lite Runtime version.
-
-

Typedefs

-
-

TfLiteInterpreter

-
struct TfLiteInterpreter TfLiteInterpreter
-
-

TfLiteInterpreter provides inference from a provided model.

-
-
-
-

TfLiteInterpreterOptions

-
struct TfLiteInterpreterOptions TfLiteInterpreterOptions
-
-

TfLiteInterpreterOptions allows customized interpreter configuration.

-
-
-
-

TfLiteModel

-
struct TfLiteModel TfLiteModel
-
-

TfLiteModel wraps a loaded TensorFlow Lite model.

-
-
-
-

TfLiteSignatureRunner

-
struct TfLiteSignatureRunner TfLiteSignatureRunner
-
-

TfLiteSignatureRunner is used to run inference on a signature.

-

Note: A signature is used to define a computation in a TF model. A model can have multiple signatures. Each signature contains three components:

    -
  • Signature Key: A unique string to identify a signature
  • -
  • Inputs: A list of names, each mapped to an input tensor of a signature
  • -
  • Outputs: A list of names, each mapped to an output tensor of a signature
  • -

-

To learn more about signatures in TFLite, refer to: https://www.tensorflow.org/lite/guide/signatures

-

Using the TfLiteSignatureRunner, for a particular signature, you can set its inputs, invoke (i.e. execute) the computation, and retrieve its outputs.

-
-
-
-

TfLiteTensor

-
struct TfLiteTensor TfLiteTensor
-
-

A tensor in the interpreter system which is a wrapper around a buffer of data including a dimensionality (or NULL if not currently defined).

-
-
-

Functions

-
-

TfLiteExtensionApisVersion

-
TFL_CAPI_EXPORT const char * TfLiteExtensionApisVersion(
-  void
-)
-
-

The TensorFlow Lite Extension APIs version.

-

Returns a pointer to a statically allocated string that is the version number of the TF Lite Extension APIs supported by the (potentially dynamically loaded) TF Lite Runtime library. The TF Lite "Extension APIs" are the APIs for extending TF Lite with custom ops and delegates. More specifically, this version number covers the (non-experimental) functionality documented in the following header files:

-

-

    -
  • lite/c/c_api_opaque.h
  • -
  • lite/c/common.h
  • -
  • lite/c/builtin_op_data.h
  • -
  • lite/builtin_ops.h
  • -
-

-

This version number uses semantic versioning, and the return value should be in semver 2 format http://semver.org, starting with MAJOR.MINOR.PATCH, e.g. "2.14.0" or "2.15.0-rc2".

-
-
-
-

TfLiteInterpreterAllocateTensors

-
TFL_CAPI_EXPORT TfLiteStatus TfLiteInterpreterAllocateTensors(
-  TfLiteInterpreter *interpreter
-)
-
-

Updates allocations for all tensors, resizing dependent tensors using the specified input tensor dimensionality.

-

This is a relatively expensive operation, and need only be called after creating the graph and/or resizing any inputs.

-
-
-
-

TfLiteInterpreterCancel

-
TFL_CAPI_EXPORT TfLiteStatus TfLiteInterpreterCancel(
-  const TfLiteInterpreter *interpreter
-)
-
-

Tries to cancel any in-flight invocation.

-

-Returns kTfLiteError if cancellation is not enabled via TfLiteInterpreterOptionsEnableCancellation.

-
-
-
-

TfLiteInterpreterCreate

-
TFL_CAPI_EXPORT TfLiteInterpreter * TfLiteInterpreterCreate(
-  const TfLiteModel *model,
-  const TfLiteInterpreterOptions *optional_options
-)
-
-

Returns a new interpreter using the provided model and options, or null on failure.

-

-

    -
  • model must be a valid model instance. The caller retains ownership of the object, and may destroy it (via TfLiteModelDelete) immediately after creating the interpreter. However, if the TfLiteModel was allocated with TfLiteModelCreate, then the model_data buffer that was passed to TfLiteModelCreate must outlive the lifetime of the TfLiteInterpreter object that this function returns, and must not be modified during that time; and if the TfLiteModel was allocated with TfLiteModelCreateFromFile, then the contents of the model file must not be modified during the lifetime of the TfLiteInterpreter object that this function returns.
  • -
  • optional_options may be null. The caller retains ownership of the object, and can safely destroy it (via TfLiteInterpreterOptionsDelete) immediately after creating the interpreter.
  • -
-

-

-

-

-
-
-
-

TfLiteInterpreterDelete

-
TFL_CAPI_EXPORT void TfLiteInterpreterDelete(
-  TfLiteInterpreter *interpreter
-)
-
-

Destroys the interpreter.

-
-
-
-

TfLiteInterpreterGetInputTensor

-
TFL_CAPI_EXPORT TfLiteTensor * TfLiteInterpreterGetInputTensor(
-  const TfLiteInterpreter *interpreter,
-  int32_t input_index
-)
-
-

Returns the tensor associated with the input index.

-

REQUIRES: 0 <= input_index < TfLiteInterpreterGetInputTensorCount(tensor)

-
-
-
-

TfLiteInterpreterGetInputTensorCount

-
TFL_CAPI_EXPORT int32_t TfLiteInterpreterGetInputTensorCount(
-  const TfLiteInterpreter *interpreter
-)
-
-

Returns the number of input tensors associated with the model.

-
-
-
-

TfLiteInterpreterGetOutputTensor

-
TFL_CAPI_EXPORT const TfLiteTensor * TfLiteInterpreterGetOutputTensor(
-  const TfLiteInterpreter *interpreter,
-  int32_t output_index
-)
-
-

Returns the tensor associated with the output index.

-

REQUIRES: 0 <= output_index < TfLiteInterpreterGetOutputTensorCount(tensor)

-

-

-

-
-
-
-

TfLiteInterpreterGetOutputTensorCount

-
TFL_CAPI_EXPORT int32_t TfLiteInterpreterGetOutputTensorCount(
-  const TfLiteInterpreter *interpreter
-)
-
-

Returns the number of output tensors associated with the model.

-
-
-
-

TfLiteInterpreterGetSignatureCount

-
TFL_CAPI_EXPORT int32_t TfLiteInterpreterGetSignatureCount(
-  const TfLiteInterpreter *interpreter
-)
-
-


- SignatureRunner APIs

-

You can run inference by either:

-

(i) (recommended) using the Interpreter to initialize SignatureRunner(s) and then only using SignatureRunner APIs.

-

(ii) only using Interpreter APIs.

-

NOTE:

    -
  • Only use one of the above options to run inference, i.e. avoid mixing both SignatureRunner APIs and Interpreter APIs to run inference as they share the same underlying data (e.g. updating an input tensor “A” retrieved using the Interpreter APIs will update the state of the input tensor “B” retrieved using SignatureRunner APIs, if they point to the same underlying tensor in the model; as it is not possible for a user to debug this by analyzing the code, it can lead to undesirable behavior).
  • -
  • The TfLiteSignatureRunner type is conditionally thread-safe, provided that no two threads attempt to simultaneously access two TfLiteSignatureRunner instances that point to the same underlying signature, or access a TfLiteSignatureRunner and its underlying TfLiteInterpreter, unless all such simultaneous accesses are reads (rather than writes).
  • -
  • The lifetime of a TfLiteSignatureRunner object ends when TfLiteSignatureRunnerDelete() is called on it (or when the lifetime of the underlying TfLiteInterpreter ends but you should call TfLiteSignatureRunnerDelete() before that happens in order to avoid resource leaks).
  • -
  • You can only apply delegates to the interpreter (via TfLiteInterpreterOptions) and not to a signature. Returns the number of signatures defined in the model.
  • -

-
-
-
-

TfLiteInterpreterGetSignatureKey

-
TFL_CAPI_EXPORT const char * TfLiteInterpreterGetSignatureKey(
-  const TfLiteInterpreter *interpreter,
-  int32_t signature_index
-)
-
-

Returns the key of the Nth signature in the model, where N is specified as signature_index.

-

NOTE: The lifetime of the returned key is the same as (and depends on) the lifetime of interpreter.

-
-
-
-

TfLiteInterpreterGetSignatureRunner

-
TFL_CAPI_EXPORT TfLiteSignatureRunner * TfLiteInterpreterGetSignatureRunner(
-  const TfLiteInterpreter *interpreter,
-  const char *signature_key
-)
-
-

Returns a new signature runner using the provided interpreter and signature key, or nullptr on failure.

-

NOTE: signature_key is a null-terminated C string that must match the key of a signature in the interpreter's model.

-

NOTE: The returned signature runner should be destroyed, by calling TfLiteSignatureRunnerDelete(), before the interpreter is destroyed.

-
-
-
-

TfLiteInterpreterGetTensor

-
TFL_CAPI_EXPORT TfLiteTensor * TfLiteInterpreterGetTensor(
-  const TfLiteInterpreter *interpreter,
-  int index
-)
-
-

Returns modifiable access to the tensor that corresponds to the specified index and is associated with the provided interpreter.

-

This requires the index to be between 0 and N - 1, where N is the number of tensors in the model.

-

Typically the tensors associated with the interpreter would be set during the interpreter initialization, through a mechanism like the InterpreterBuilder, and remain unchanged throughout the lifetime of the interpreter. However, there are some circumstances in which the pointer may not remain valid throughout the lifetime of the interpreter, because calls to AddTensors on the interpreter invalidate the returned pointer.

-

Note the difference between this function and TfLiteInterpreterGetInputTensor (or TfLiteInterpreterGetOutputTensor for that matter): TfLiteInterpreterGetTensor takes an index into the array of all tensors associated with the interpreter's model, whereas TfLiteInterpreterGetInputTensor takes an index into the array of input tensors.

-

The ownership of the tensor remains with the TFLite runtime, meaning the caller should not deallocate the pointer.

-
-
-
-

TfLiteInterpreterInputTensorIndices

-
TFL_CAPI_EXPORT const int * TfLiteInterpreterInputTensorIndices(
-  const TfLiteInterpreter *interpreter
-)
-
-

Returns a pointer to an array of input tensor indices.

-

The length of the array can be obtained via a call to TfLiteInterpreterGetInputTensorCount.

-

Typically the input tensors associated with an interpreter would be set during the initialization of the interpreter, through a mechanism like the InterpreterBuilder, and remain unchanged throughout the lifetime of the interpreter. However, there are some circumstances in which the pointer may not remain valid throughout the lifetime of the interpreter, because calls to SetInputs on the interpreter invalidate the returned pointer.

-

The ownership of the array remains with the TFLite runtime.

-
-
-
-

TfLiteInterpreterInvoke

-
TFL_CAPI_EXPORT TfLiteStatus TfLiteInterpreterInvoke(
-  TfLiteInterpreter *interpreter
-)
-
-

Runs inference for the loaded graph.

-

Before calling this function, the caller should first invoke TfLiteInterpreterAllocateTensors() and should also set the values for the input tensors. After successfully calling this function, the values for the output tensors will be set.

-

-If the (experimental!) delegate fallback option was enabled in the interpreter options, then the interpreter will automatically fall back to not using any delegates if execution with delegates fails. For details, see TfLiteInterpreterOptionsSetEnableDelegateFallback in c_api_experimental.h.

-

Returns one of the following status codes:

    -
  • kTfLiteOk: Success. Output is valid.
  • -
  • kTfLiteDelegateError: Execution with delegates failed, due to a problem with the delegate(s). If fallback was not enabled, output is invalid. If fallback was enabled, this return value indicates that fallback succeeded, the output is valid, and all delegates previously applied to the interpreter have been undone.
  • -
  • kTfLiteApplicationError: Same as for kTfLiteDelegateError, except that the problem was not with the delegate itself, but rather was due to an incompatibility between the delegate(s) and the interpreter or model.
  • -
  • kTfLiteError: Unexpected/runtime failure. Output is invalid.
  • -

-
-
-
-

TfLiteInterpreterOptionsAddDelegate

-
TFL_CAPI_EXPORT void TfLiteInterpreterOptionsAddDelegate(
-  TfLiteInterpreterOptions *options,
-  TfLiteOpaqueDelegate *delegate
-)
-
-

Adds a delegate to be applied during TfLiteInterpreter creation.

-

If delegate application fails, interpreter creation will also fail with an associated error logged.

-

-If you are NOT using "TensorFlow Lite in Play Services", and NOT building with TFLITE_WITH_STABLE_ABI or TFLITE_USE_OPAQUE_DELEGATE macros enabled, it is possible to pass a TfLiteDelegate* rather than a TfLiteOpaqueDelegate* to this function, since in those cases, TfLiteOpaqueDelegate is just a typedef alias for TfLiteDelegate. This is for compatibility with existing source code and existing delegates. For new delegates, it is recommended to use TfLiteOpaqueDelegate rather than TfLiteDelegate. (See TfLiteOpaqueDelegate in tensorflow/lite/core/c/c_api_types.h.)

-
-
-
-

TfLiteInterpreterOptionsAddRegistrationExternal

-
TFL_CAPI_EXPORT void TfLiteInterpreterOptionsAddRegistrationExternal(
-  TfLiteInterpreterOptions *options,
-  TfLiteRegistrationExternal *registration
-)
-
-

Adds an op registration to be applied during TfLiteInterpreter creation.

-

The TfLiteRegistrationExternal object is needed to implement custom op of TFLite Interpreter via C API. Calling this function ensures that any TfLiteInterpreter created with the specified options can execute models that use the custom operator specified in registration. Please refer https://www.tensorflow.org/lite/guide/ops_custom for custom op support.

This is an experimental API and subject to change.

-
-
-
-

TfLiteInterpreterOptionsCopy

-
TFL_CAPI_EXPORT TfLiteInterpreterOptions * TfLiteInterpreterOptionsCopy(
-  const TfLiteInterpreterOptions *from
-)
-
-

Creates and returns a shallow copy of an options object.

-

The caller is responsible for calling TfLiteInterpreterOptionsDelete to deallocate the object pointed to by the returned pointer.

-
-
-
-

TfLiteInterpreterOptionsCreate

-
TFL_CAPI_EXPORT TfLiteInterpreterOptions * TfLiteInterpreterOptionsCreate()
-
-

Returns a new interpreter options instances.

-
-
-
-

TfLiteInterpreterOptionsDelete

-
TFL_CAPI_EXPORT void TfLiteInterpreterOptionsDelete(
-  TfLiteInterpreterOptions *options
-)
-
-

Destroys the interpreter options instance.

-
-
-
-

TfLiteInterpreterOptionsEnableCancellation

-
TFL_CAPI_EXPORT TfLiteStatus TfLiteInterpreterOptionsEnableCancellation(
-  TfLiteInterpreterOptions *options,
-  bool enable
-)
-
-

Enables users to cancel in-flight invocations with TfLiteInterpreterCancel.

-

By default it is disabled and calling to TfLiteInterpreterCancel will return kTfLiteError. See TfLiteInterpreterCancel.

-
-
-
-

TfLiteInterpreterOptionsSetErrorReporter

-
TFL_CAPI_EXPORT void TfLiteInterpreterOptionsSetErrorReporter(
-  TfLiteInterpreterOptions *options,
-  void(*)(void *user_data, const char *format, va_list args) reporter,
-  void *user_data
-)
-
-

Sets a custom error reporter for interpreter execution.

-

-

    -
  • reporter takes the provided user_data object, as well as a C-style format string and arg list (see also vprintf).
  • -
  • user_data is optional. If non-null, it is owned by the client and must remain valid for the duration of the interpreter lifetime.
  • -
-

-
-
-
-

TfLiteInterpreterOptionsSetNumThreads

-
TFL_CAPI_EXPORT void TfLiteInterpreterOptionsSetNumThreads(
-  TfLiteInterpreterOptions *options,
-  int32_t num_threads
-)
-
-

Sets the number of CPU threads to use for the interpreter.

-
-
-
-

TfLiteInterpreterOutputTensorIndices

-
TFL_CAPI_EXPORT const int * TfLiteInterpreterOutputTensorIndices(
-  const TfLiteInterpreter *interpreter
-)
-
-

Returns a pointer to an array of output tensor indices.

-

The length of the array can be obtained via a call to TfLiteInterpreterGetOutputTensorCount.

-

Typically the output tensors associated with an interpreter would be set during the initialization of the interpreter, through a mechanism like the InterpreterBuilder, and remain unchanged throughout the lifetime of the interpreter. However, there are some circumstances in which the pointer may not remain valid throughout the lifetime of the interpreter, because calls to SetOutputs on the interpreter invalidate the returned pointer.

-

The ownership of the array remains with the TFLite runtime.

-
-
-
-

TfLiteInterpreterResizeInputTensor

-
TFL_CAPI_EXPORT TfLiteStatus TfLiteInterpreterResizeInputTensor(
-  TfLiteInterpreter *interpreter,
-  int32_t input_index,
-  const int *input_dims,
-  int32_t input_dims_size
-)
-
-

Resizes the specified input tensor.

-

-REQUIRES: 0 <= input_index < TfLiteInterpreterGetInputTensorCount(tensor)

-

This function makes a copy of the input dimensions, so the client can safely deallocate input_dims immediately after this function returns.

-
-
-
-

TfLiteModelCreate

-
TFL_CAPI_EXPORT TfLiteModel * TfLiteModelCreate(
-  const void *model_data,
-  size_t model_size
-)
-
-

Returns a model from the provided buffer, or null on failure.

-

-

-

-
-
-
-

TfLiteModelCreateFromFile

-
TFL_CAPI_EXPORT TfLiteModel * TfLiteModelCreateFromFile(
-  const char *model_path
-)
-
-

Returns a model from the provided file, or null on failure.

-

-

-

-
-
-
-

TfLiteModelCreateFromFileWithErrorReporter

-
TFL_CAPI_EXPORT TfLiteModel * TfLiteModelCreateFromFileWithErrorReporter(
-  const char *model_path,
-  void(*)(void *user_data, const char *format, va_list args) reporter,
-  void *user_data
-)
-
-

Same as TfLiteModelCreateFromFile with customizble error reporter.

-

-

    -
  • reporter takes the provided user_data object, as well as a C-style format string and arg list (see also vprintf).
  • -
  • user_data is optional. If non-null, it is owned by the client and must remain valid for the duration of the interpreter lifetime.
  • -
-

-
-
-
-

TfLiteModelCreateWithErrorReporter

-
TFL_CAPI_EXPORT TfLiteModel * TfLiteModelCreateWithErrorReporter(
-  const void *model_data,
-  size_t model_size,
-  void(*)(void *user_data, const char *format, va_list args) reporter,
-  void *user_data
-)
-
-

Same as TfLiteModelCreate with customizble error reporter.

-

-

    -
  • reporter takes the provided user_data object, as well as a C-style format string and arg list (see also vprintf).
  • -
  • user_data is optional. If non-null, it is owned by the client and must remain valid for the duration of the interpreter lifetime.
  • -
-

-
-
-
-

TfLiteModelDelete

-
TFL_CAPI_EXPORT void TfLiteModelDelete(
-  TfLiteModel *model
-)
-
-

Destroys the model instance.

-
-
-
-

TfLiteSchemaVersion

-
TFL_CAPI_EXPORT int TfLiteSchemaVersion(
-  void
-)
-
-

The supported TensorFlow Lite model file Schema version.

-

Returns the (major) version number of the Schema used for model files that is supported by the (potentially dynamically loaded) TensorFlow Lite Runtime.

-

Model files using schema versions different to this may not be supported by the current version of the TF Lite Runtime.

-
-
-
-

TfLiteSignatureRunnerAllocateTensors

-
TFL_CAPI_EXPORT TfLiteStatus TfLiteSignatureRunnerAllocateTensors(
-  TfLiteSignatureRunner *signature_runner
-)
-
-

Updates allocations for tensors associated with a signature and resizes dependent tensors using the specified input tensor dimensionality.

-

This is a relatively expensive operation and hence should only be called after initializing the signature runner object and/or resizing any inputs.

-
-
-
-

TfLiteSignatureRunnerDelete

-
TFL_CAPI_EXPORT void TfLiteSignatureRunnerDelete(
-  TfLiteSignatureRunner *signature_runner
-)
-
-

Destroys the signature runner.

-
-
-
-

TfLiteSignatureRunnerGetInputCount

-
TFL_CAPI_EXPORT size_t TfLiteSignatureRunnerGetInputCount(
-  const TfLiteSignatureRunner *signature_runner
-)
-
-

Returns the number of inputs associated with a signature.

-
-
-
-

TfLiteSignatureRunnerGetInputName

-
TFL_CAPI_EXPORT const char * TfLiteSignatureRunnerGetInputName(
-  const TfLiteSignatureRunner *signature_runner,
-  int32_t input_index
-)
-
-

Returns the (null-terminated) name of the Nth input in a signature, where N is specified as input_index.

-

NOTE: The lifetime of the returned name is the same as (and depends on) the lifetime of signature_runner.

-
-
-
-

TfLiteSignatureRunnerGetInputTensor

-
TFL_CAPI_EXPORT TfLiteTensor * TfLiteSignatureRunnerGetInputTensor(
-  TfLiteSignatureRunner *signature_runner,
-  const char *input_name
-)
-
-

Returns the input tensor identified by input_name in the given signature.

-

Returns nullptr if the given name is not valid.

-

NOTE: The lifetime of the returned tensor is the same as (and depends on) the lifetime of signature_runner.

-
-
-
-

TfLiteSignatureRunnerGetOutputCount

-
TFL_CAPI_EXPORT size_t TfLiteSignatureRunnerGetOutputCount(
-  const TfLiteSignatureRunner *signature_runner
-)
-
-

Returns the number of output tensors associated with the signature.

-
-
-
-

TfLiteSignatureRunnerGetOutputName

-
TFL_CAPI_EXPORT const char * TfLiteSignatureRunnerGetOutputName(
-  const TfLiteSignatureRunner *signature_runner,
-  int32_t output_index
-)
-
-

Returns the (null-terminated) name of the Nth output in a signature, where N is specified as output_index.

-

NOTE: The lifetime of the returned name is the same as (and depends on) the lifetime of signature_runner.

-
-
-
-

TfLiteSignatureRunnerGetOutputTensor

-
TFL_CAPI_EXPORT const TfLiteTensor * TfLiteSignatureRunnerGetOutputTensor(
-  const TfLiteSignatureRunner *signature_runner,
-  const char *output_name
-)
-
-

Returns the output tensor identified by output_name in the given signature.

-

Returns nullptr if the given name is not valid.

-

NOTE: The lifetime of the returned tensor is the same as (and depends on) the lifetime of signature_runner.

-
-
-
-

TfLiteSignatureRunnerInvoke

-
TFL_CAPI_EXPORT TfLiteStatus TfLiteSignatureRunnerInvoke(
-  TfLiteSignatureRunner *signature_runner
-)
-
-

Runs inference on a given signature.

-

Before calling this function, the caller should first invoke TfLiteSignatureRunnerAllocateTensors() and should also set the values for the input tensors. After successfully calling this function, the values for the output tensors will be set.

-
-
-
-

TfLiteSignatureRunnerResizeInputTensor

-
TFL_CAPI_EXPORT TfLiteStatus TfLiteSignatureRunnerResizeInputTensor(
-  TfLiteSignatureRunner *signature_runner,
-  const char *input_name,
-  const int *input_dims,
-  int32_t input_dims_size
-)
-
-

Resizes the input tensor identified as input_name to be the dimensions specified by input_dims and input_dims_size.

-

Only unknown dimensions can be resized with this function. Unknown dimensions are indicated as -1 in the dims_signature attribute of a TfLiteTensor.

-

Returns status of failure or success. Note that this doesn't actually resize any existing buffers. A call to TfLiteSignatureRunnerAllocateTensors() is required to change the tensor input buffer.

-

NOTE: This function is similar to TfLiteInterpreterResizeInputTensorStrict() and not TfLiteInterpreterResizeInputTensor().

-

NOTE: input_name must match the name of an input in the signature.

-

NOTE: This function makes a copy of the input dimensions, so the caller can safely deallocate input_dims immediately after this function returns.

-
-
-
-

TfLiteTensorByteSize

-
TFL_CAPI_EXPORT size_t TfLiteTensorByteSize(
-  const TfLiteTensor *tensor
-)
-
-

Returns the size of the underlying data in bytes.

-
-
-
-

TfLiteTensorCopyFromBuffer

-
TFL_CAPI_EXPORT TfLiteStatus TfLiteTensorCopyFromBuffer(
-  TfLiteTensor *tensor,
-  const void *input_data,
-  size_t input_data_size
-)
-
-

Copies from the provided input buffer into the tensor's buffer.

-

REQUIRES: input_data_size == TfLiteTensorByteSize(tensor)

-
-
-
-

TfLiteTensorCopyToBuffer

-
TFL_CAPI_EXPORT TfLiteStatus TfLiteTensorCopyToBuffer(
-  const TfLiteTensor *output_tensor,
-  void *output_data,
-  size_t output_data_size
-)
-
-

Copies to the provided output buffer from the tensor's buffer.

-

REQUIRES: output_data_size == TfLiteTensorByteSize(tensor)

-
-
-
-

TfLiteTensorData

-
TFL_CAPI_EXPORT void * TfLiteTensorData(
-  const TfLiteTensor *tensor
-)
-
-

Returns a pointer to the underlying data buffer.

-

-

-

-
-
-
-

TfLiteTensorDim

-
TFL_CAPI_EXPORT int32_t TfLiteTensorDim(
-  const TfLiteTensor *tensor,
-  int32_t dim_index
-)
-
-

Returns the length of the tensor in the "dim_index" dimension.

-

REQUIRES: 0 <= dim_index < TFLiteTensorNumDims(tensor)

-
-
-
-

TfLiteTensorName

-
TFL_CAPI_EXPORT const char * TfLiteTensorName(
-  const TfLiteTensor *tensor
-)
-
-

Returns the (null-terminated) name of the tensor.

-
-
-
-

TfLiteTensorNumDims

-
TFL_CAPI_EXPORT int32_t TfLiteTensorNumDims(
-  const TfLiteTensor *tensor
-)
-
-

Returns the number of dimensions that the tensor has.

-

Returns -1 in case the 'opaque_tensor' does not have its dimensions property set.

-
-
-
-

TfLiteTensorQuantizationParams

-
TFL_CAPI_EXPORT TfLiteQuantizationParams TfLiteTensorQuantizationParams(
-  const TfLiteTensor *tensor
-)
-
-

Returns the parameters for asymmetric quantization.

-

The quantization parameters are only valid when the tensor type is kTfLiteUInt8 and the scale != 0. Quantized values can be converted back to float using: real_value = scale * (quantized_value - zero_point);

-
-
-
-

TfLiteTensorType

-
TFL_CAPI_EXPORT TfLiteType TfLiteTensorType(
-  const TfLiteTensor *tensor
-)
-
-

Returns the type of a tensor element.

-
-
-
-

TfLiteVersion

-
TFL_CAPI_EXPORT const char * TfLiteVersion(
-  void
-)
-
-

The TensorFlow Lite Runtime version.

-

Returns a pointer to a statically allocated string that is the version number of the (potentially dynamically loaded) TF Lite Runtime library. TensorFlow Lite uses semantic versioning, and the return value should be in semver 2 format http://semver.org, starting with MAJOR.MINOR.PATCH, e.g. "2.12.0" or "2.13.0-rc2".

-
-
- - diff --git a/site/en/lite/api_docs/c/group/common.html b/site/en/lite/api_docs/c/group/common.html deleted file mode 100644 index 69c9467645..0000000000 --- a/site/en/lite/api_docs/c/group/common.html +++ /dev/null @@ -1,1814 +0,0 @@ - - - - lite/c/common.h - - - -
-

lite/c/common.h

-

This file defines common C types and APIs for implementing operations, delegates and other constructs in TensorFlow Lite.

-

Summary

-

The actual operations and delegates can be defined using C++, but the interface between the interpreter and the operations are C.

-

Summary of abstractions:

-

Some abstractions in this file are created and managed by Interpreter.

-

NOTE: The order of values in these structs are "semi-ABI stable". New values should be added only to the end of structs and never reordered.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

Enumerations

-
- Anonymous Enum 0 - enum
- TfLiteAllocationStrategy{
  kTfLiteAllocationStrategyMMap,
  kTfLiteAllocationStrategyArena,
  kTfLiteAllocationStrategyMalloc,
  kTfLiteAllocationStrategyNew
}
-
enum
Memory allocation strategies.
- TfLiteAllocationType - enum
Memory allocation strategies.
- TfLiteCustomAllocationFlags{
  kTfLiteCustomAllocationFlagsSkipAlignCheck = 1
}
-
enum
The flags used in Interpreter::SetCustomAllocationForTensor.
- TfLiteDelegateFlags{
  kTfLiteDelegateFlagsAllowDynamicTensors = 1,
  kTfLiteDelegateFlagsRequirePropagatedShapes = 2,
  kTfLiteDelegateFlagsPerOperatorProfiling = 4
}
-
enum
The flags used in TfLiteDelegate.
- TfLiteDimensionType - enum
Storage format of each dimension in a sparse tensor.
- TfLiteExternalContextType{
  kTfLiteGemmLowpContext = 1,
  kTfLiteEdgeTpuContext = 2,
  kTfLiteCpuBackendContext = 3,
  kTfLiteMaxExternalContexts = 4
}
-
enum
The list of external context types known to TF Lite.
- TfLiteInPlaceOp{
  kTfLiteInplaceOpNone = 0,
  kTfLiteInplaceOpDataUnmodified = 1,
  kTfLiteInplaceInputCanBeSharedWithCorrespondingOutput = 2,
  kTfLiteInplaceOpInput0Shared = 4,
  kTfLiteInplaceOpInput1Shared = 8,
  kTfLiteInplaceOpInput2Shared = 16,
  kTfLiteInplaceOpMaxValue = UINT64_MAX
}
-
enum
The valid values of the inplace_operator field in TfLiteRegistration.
- TfLiteQuantizationType{
  kTfLiteNoQuantization = 0,
  kTfLiteAffineQuantization = 1
}
-
enum
SupportedQuantizationTypes.
- TfLiteRunStability{
  kTfLiteRunStabilitySingleRun,
  kTfLiteRunStabilityAcrossRuns
}
-
enum
Describes how stable a tensor attribute is with regards to an interpreter runs.
- TfLiteRunStep - enum
Describes the steps of a TFLite operation life cycle.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

Typedefs

-
- TfLiteAffineQuantization - typedef
Parameters for asymmetric quantization across a dimension (i.e per output channel quantization).
- TfLiteAllocationStrategy - typedef
Memory allocation strategies.
- TfLiteAllocationType - typedef
Memory allocation strategies.
- TfLiteBufferHandle - typedef
- int -
The delegates should use zero or positive integers to represent handles.
- TfLiteComplex128 - typedef
- struct TfLiteComplex128 -
Double-precision complex data type compatible with the C99 definition.
- TfLiteComplex64 - typedef
- struct TfLiteComplex64 -
Single-precision complex data type compatible with the C99 definition.
- TfLiteContext - typedef
- struct TfLiteContext -
TfLiteContext allows an op to access the tensors.
- TfLiteCustomAllocation - typedef
Defines a custom memory allocation not owned by the runtime.
- TfLiteCustomAllocationFlags - typedef
The flags used in Interpreter::SetCustomAllocationForTensor.
- TfLiteDelegate - typedef
- struct TfLiteDelegate -
WARNING: This is an experimental interface that is subject to change.
- TfLiteDelegateFlags - typedef
The flags used in TfLiteDelegate.
- TfLiteDelegateParams - typedef
WARNING: This is an experimental interface that is subject to change.
- TfLiteDimensionMetadata - typedef
Metadata to encode each dimension in a sparse tensor.
- TfLiteDimensionType - typedef
Storage format of each dimension in a sparse tensor.
- TfLiteEvalTensor - typedef
- struct TfLiteEvalTensor -
Light-weight tensor struct for TF Micro runtime.
- TfLiteExternalContext - typedef
An external context is a collection of information unrelated to the TF Lite framework, but useful to a subset of the ops.
- TfLiteExternalContextType - typedef
The list of external context types known to TF Lite.
- TfLiteFloat16 - typedef
- struct TfLiteFloat16 -
Half precision data type compatible with the C99 definition.
- TfLiteFloatArray - typedef
- struct TfLiteFloatArray -
Fixed size list of floats. Used for per-channel quantization.
- TfLiteIntArray - typedef
- struct TfLiteIntArray -
Fixed size list of integers.
- TfLiteNode - typedef
- struct TfLiteNode -
A structure representing an instance of a node.
- TfLiteOpaqueDelegateBuilder - typedef
TfLiteOpaqueDelegateBuilder is used for constructing TfLiteOpaqueDelegate, see TfLiteOpaqueDelegateCreate below.
- TfLiteOpaqueDelegateParams - typedef
WARNING: This is an experimental interface that is subject to change.
- TfLitePtrUnion - typedef
- union TfLitePtrUnion -
A union of pointers that points to memory for a given tensor.
- TfLiteQuantization - typedef
- struct TfLiteQuantization -
Structure specifying the quantization used by the tensor, if-any.
- TfLiteQuantizationType - typedef
SupportedQuantizationTypes.
- TfLiteRegistration - typedef
- struct TfLiteRegistration -
TfLiteRegistration defines the implementation of an operation (a built-in op, custom op, or custom delegate kernel).
- TfLiteRegistrationExternal - typedef
TfLiteRegistrationExternal is an external version of TfLiteRegistration for C API which doesn't use internal types (such as TfLiteContext) but only uses stable API types (such as TfLiteOpaqueContext).
- TfLiteRegistration_V1 - typedef
- struct TfLiteRegistration_V1 -
Old version of TfLiteRegistration to maintain binary backward compatibility.
- TfLiteRegistration_V2 - typedef
- struct TfLiteRegistration_V2 -
Old version of TfLiteRegistration to maintain binary backward compatibility.
- TfLiteRegistration_V3 - typedef
- struct TfLiteRegistration_V3 -
Old version of TfLiteRegistration to maintain binary backward compatibility.
- TfLiteRunStability - typedef
Describes how stable a tensor attribute is with regards to an interpreter runs.
- TfLiteRunStep - typedef
- enum TfLiteRunStep -
Describes the steps of a TFLite operation life cycle.
- TfLiteSparsity - typedef
- struct TfLiteSparsity -
Parameters used to encode a sparse tensor.
- TfLiteTensor - typedef
- struct TfLiteTensor -
A tensor in the interpreter system which is a wrapper around a buffer of data including a dimensionality (or NULL if not currently defined).
- - - - - - - - -
-

Variables

-
- kTfLiteMaxSharableOpInputs = 3 - -
- const int -
-
The number of shareable inputs supported.
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

Functions

-
- TfLiteDelegateCreate(void) - - -
Build a null delegate, with all the fields properly set to their default values.
-
- TfLiteFloatArrayCopy(const TfLiteFloatArray *src) - - -
Create a copy of an array passed as src.
-
- TfLiteFloatArrayCreate(int size) - - -
Create a array of a given size (uninitialized entries).
-
- TfLiteFloatArrayFree(TfLiteFloatArray *a) - -
- void -
-
Free memory of array a.
-
- TfLiteFloatArrayGetSizeInBytes(int size) - -
- int -
-
Given the size (number of elements) in a TfLiteFloatArray, calculate its size in bytes.
-
- TfLiteIntArrayCopy(const TfLiteIntArray *src) - - -
Create a copy of an array passed as src.
-
- TfLiteIntArrayCreate(int size) - - -
Create a array of a given size (uninitialized entries).
-
- TfLiteIntArrayEqual(const TfLiteIntArray *a, const TfLiteIntArray *b) - -
- int -
-
Check if two intarrays are equal. Returns 1 if they are equal, 0 otherwise.
-
- TfLiteIntArrayEqualsArray(const TfLiteIntArray *a, int b_size, const int b_data[]) - -
- int -
-
Check if an intarray equals an array. Returns 1 if equals, 0 otherwise.
-
- TfLiteIntArrayFree(TfLiteIntArray *a) - -
- void -
-
Free memory of array a.
-
- TfLiteIntArrayGetSizeInBytes(int size) - -
- size_t -
-
Given the size (number of elements) in a TfLiteIntArray, calculate its size in bytes.
-
- TfLiteOpaqueDelegateCreate(const TfLiteOpaqueDelegateBuilder *opaque_delegate_builder) - - -
Creates an opaque delegate and returns its address.
-
- TfLiteOpaqueDelegateDelete(TfLiteOpaqueDelegate *delegate) - -
- void -
-
Deletes the provided opaque delegate.
-
- TfLiteOpaqueDelegateGetData(const TfLiteOpaqueDelegate *delegate) - -
- void * -
-
Returns a pointer to the data associated with the provided opaque delegate.
-
- TfLiteQuantizationFree(TfLiteQuantization *quantization) - -
- void -
-
Free quantization data.
-
- TfLiteSparsityFree(TfLiteSparsity *sparsity) - -
- void -
-
Free sparsity parameters.
-
- TfLiteTensorCopy(const TfLiteTensor *src, TfLiteTensor *dst) - - -
Copies the contents of src in dst.
-
- TfLiteTensorDataFree(TfLiteTensor *t) - -
- void -
-
Free data memory of tensor t.
-
- TfLiteTensorFree(TfLiteTensor *t) - -
- void -
-
Free memory of tensor t.
-
- TfLiteTensorGetAllocationStrategy(const TfLiteTensor *t) - - -
Returns a tensor data allocation strategy.
-
- TfLiteTensorGetBufferAddressStability(const TfLiteTensor *t) - - -
Returns how stable a tensor data buffer address is across runs.
-
- TfLiteTensorGetDataKnownStep(const TfLiteTensor *t) - - -
Returns the operation step when the data of a tensor is populated.
-
- TfLiteTensorGetDataStability(const TfLiteTensor *t) - - -
Returns how stable a tensor data values are across runs.
-
- TfLiteTensorGetShapeKnownStep(const TfLiteTensor *t) - - -
Returns the operation steop when the shape of a tensor is computed.
-
- TfLiteTensorRealloc(size_t num_bytes, TfLiteTensor *tensor) - - -
Change the size of the memory block owned by tensor to num_bytes.
-
- TfLiteTensorReset(TfLiteType type, const char *name, TfLiteIntArray *dims, TfLiteQuantizationParams quantization, char *buffer, size_t size, TfLiteAllocationType allocation_type, const void *allocation, bool is_variable, TfLiteTensor *tensor) - -
- void -
-
Set all of a tensor's fields (and free any previously allocated data).
-
- TfLiteTensorResizeMaybeCopy(size_t num_bytes, TfLiteTensor *tensor, bool preserve_data) - - -
Change the size of the memory block owned by tensor to num_bytes.
-
- TfLiteTypeGetName(TfLiteType type) - -
- const char * -
-
Return the name of a given type, for error reporting purposes.
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

Structs

-
- TfLiteAffineQuantization - -

Parameters for asymmetric quantization across a dimension (i.e per output channel quantization).

-
- TfLiteComplex128 - -

Double-precision complex data type compatible with the C99 definition.

-
- TfLiteComplex64 - -

Single-precision complex data type compatible with the C99 definition.

-
- TfLiteContext - -

TfLiteContext allows an op to access the tensors.

-
- TfLiteCustomAllocation - -

Defines a custom memory allocation not owned by the runtime.

-
- TfLiteDelegate - -

WARNING: This is an experimental interface that is subject to change.

-
- TfLiteDelegateParams - -

WARNING: This is an experimental interface that is subject to change.

-
- TfLiteDimensionMetadata - -

Metadata to encode each dimension in a sparse tensor.

-
- TfLiteEvalTensor - -

Light-weight tensor struct for TF Micro runtime.

-
- TfLiteExternalContext - -

An external context is a collection of information unrelated to the TF Lite framework, but useful to a subset of the ops.

-
- TfLiteFloat16 - -

Half precision data type compatible with the C99 definition.

-
- TfLiteFloatArray - -

Fixed size list of floats. Used for per-channel quantization.

-
- TfLiteIntArray - -

Fixed size list of integers.

-
- TfLiteNode - -

A structure representing an instance of a node.

-
- TfLiteOpaqueDelegateBuilder - -

TfLiteOpaqueDelegateBuilder is used for constructing TfLiteOpaqueDelegate, see TfLiteOpaqueDelegateCreate below.

-
- TfLiteOpaqueDelegateParams - -

WARNING: This is an experimental interface that is subject to change.

-
- TfLiteQuantization - -

Structure specifying the quantization used by the tensor, if-any.

-
- TfLiteRegistration - -

TfLiteRegistration defines the implementation of an operation (a built-in op, custom op, or custom delegate kernel).

-
- TfLiteSparsity - -

Parameters used to encode a sparse tensor.

-
- TfLiteTensor - -

A tensor in the interpreter system which is a wrapper around a buffer of data including a dimensionality (or NULL if not currently defined).

-
- - - - - - - - -
-

Unions

-
- TfLitePtrUnion - -

A union of pointers that points to memory for a given tensor.

-
-

Enumerations

-
-

Anonymous Enum 0

-
 Anonymous Enum 0
-
-
-
-

TfLiteAllocationStrategy

-
 TfLiteAllocationStrategy
-
-

Memory allocation strategies.

-

TfLiteAllocationType values have been overloaded to mean more than their original intent. This enum should only be used to document the allocation strategy used by a tensor for it data.

- - - - - - - - - - - - - - - - - - - - -
Properties
- kTfLiteAllocationStrategyArena - -

Data is mmaped.

-
- kTfLiteAllocationStrategyMMap - -

No data is allocated.

-
- kTfLiteAllocationStrategyMalloc - -

Handled by the arena.

-
- kTfLiteAllocationStrategyNew - -

Uses malloc/free.

-

Uses new[]/delete[].

-
-
-
-
-

TfLiteAllocationType

-
 TfLiteAllocationType
-
-

Memory allocation strategies.

-

-

    -
  • kTfLiteMmapRo: Read-only memory-mapped data, or data externally allocated.
  • -
  • kTfLiteArenaRw: Arena allocated with no guarantees about persistence, and available during eval.
  • -
  • kTfLiteArenaRwPersistent: Arena allocated but persistent across eval, and only available during eval.
  • -
  • kTfLiteDynamic: Allocated during eval, or for string tensors.
  • -
  • kTfLitePersistentRo: Allocated and populated during prepare. This is useful for tensors that can be computed during prepare and treated as constant inputs for downstream ops (also in prepare).
  • -
  • kTfLiteCustom: Custom memory allocation provided by the user. See TfLiteCustomAllocation below.
  • -
  • kTfLiteVariantObject: Allocation is an arbitrary type-erased C++ object. Allocation and deallocation are done through new and delete.
  • -
-

-
-
-
-

TfLiteCustomAllocationFlags

-
 TfLiteCustomAllocationFlags
-
-

The flags used in Interpreter::SetCustomAllocationForTensor.

-

Note that this is a bitmask, so the values should be 1, 2, 4, 8, ...etc.

- - - - - - - - -
Properties
- kTfLiteCustomAllocationFlagsSkipAlignCheck - -

Skips checking whether allocation.data points to an aligned buffer as expected by the TFLite runtime.

-

NOTE: Setting this flag can cause crashes when calling Invoke(). Use with caution.

-
-
-
-
-

TfLiteDelegateFlags

-
 TfLiteDelegateFlags
-
-

The flags used in TfLiteDelegate.

-

Note that this is a bitmask, so the values should be 1, 2, 4, 8, ...etc.

- - - - - - - - - - - - - - - - -
Properties
- kTfLiteDelegateFlagsAllowDynamicTensors - -

The flag is set if the delegate can handle dynamic sized tensors.

-

For example, the output shape of a Resize op with non-constant shape can only be inferred when the op is invoked. In this case, the Delegate is responsible for calling SetTensorToDynamic to mark the tensor as a dynamic tensor, and calling ResizeTensor when invoking the op.

-

If the delegate isn't capable to handle dynamic tensors, this flag need to be set to false.

-
- kTfLiteDelegateFlagsPerOperatorProfiling - -

This flag can be used by delegates to request per-operator profiling.

-

If a node is a delegate node, this flag will be checked before profiling. If set, then the node will not be profiled. The delegate will then add per operator information using Profiler::EventType::OPERATOR_INVOKE_EVENT and the results will appear in the operator-wise Profiling section and not in the Delegate internal section.

-
- kTfLiteDelegateFlagsRequirePropagatedShapes - -

This flag can be used by delegates (that allow dynamic tensors) to ensure applicable tensor shapes are automatically propagated in the case of tensor resizing.

-

This means that non-dynamic (allocation_type != kTfLiteDynamic) I/O tensors of a delegate kernel will have correct shapes before its Prepare() method is called. The runtime leverages TFLite builtin ops in the original execution plan to propagate shapes.

-

A few points to note:

    -
  1. This requires kTfLiteDelegateFlagsAllowDynamicTensors. If that flag is false, this one is redundant since the delegate kernels are re-initialized every time tensors are resized.
  2. -
  3. Enabling this flag adds some overhead to AllocateTensors(), since extra work is required to prepare the original execution plan.
  4. -
  5. This flag requires that the original execution plan only have ops with valid registrations (and not 'dummy' custom ops like with Flex).
  6. -

-

WARNING: This feature is experimental and subject to change.

-
-
-
-
-

TfLiteDimensionType

-
 TfLiteDimensionType
-
-

Storage format of each dimension in a sparse tensor.

-
-
-
-

TfLiteExternalContextType

-
 TfLiteExternalContextType
-
-

The list of external context types known to TF Lite.

-

This list exists solely to avoid conflicts and to ensure ops can share the external contexts they need. Access to the external contexts is controlled by one of the corresponding support files.

- - - - - - - - - - - - - - - - - - - - -
Properties
- kTfLiteCpuBackendContext - -

Placeholder for Edge TPU support.

-
- kTfLiteEdgeTpuContext - -

include gemm_support.h to use.

-
- kTfLiteGemmLowpContext - -

include eigen_support.h to use.

-
- kTfLiteMaxExternalContexts - -

include cpu_backend_context.h to use.

-
-
-
-
-

TfLiteInPlaceOp

-
 TfLiteInPlaceOp
-
-

The valid values of the inplace_operator field in TfLiteRegistration.

-

This allow an op to signal to the runtime that the same data pointer may be passed as an input and output without impacting the result. This does not mean that the memory can safely be reused, it is up to the runtime to determine this, e.g. if another op consumes the same input or not or if an input tensor has sufficient memory allocated to store the output data.

-

Setting these flags authorizes the runtime to set the data pointers of an input and output tensor to the same value. In such cases, the memory required by the output must be less than or equal to that required by the shared input, never greater. If kTfLiteInplaceOpDataUnmodified is set, then the runtime can share the same input tensor with multiple operator's outputs, provided that kTfLiteInplaceOpDataUnmodified is set for all of them. Otherwise, if an input tensor is consumed by multiple operators, it may only be shared with the operator which is the last to consume it.

-

Note that this is a bitmask, so the values should be 1, 2, 4, 8, ...etc.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Properties
- kTfLiteInplaceInputCanBeSharedWithCorrespondingOutput - -

Setting kTfLiteInplaceInputCanBeSharedWithCorrespondingOutput means that InputN may be shared with OutputN instead of with the first output.

-

This flag requires one or more of kTfLiteInplaceOpInputNShared to be set.

-
- kTfLiteInplaceOpDataUnmodified - -

This indicates that an op's first output's data is identical to its first input's data, for example Reshape.

-
- kTfLiteInplaceOpInput0Shared - -

kTfLiteInplaceOpInputNShared indicates that it is safe for an op to share InputN's data pointer with an output tensor.

-

If kTfLiteInplaceInputCanBeSharedWithCorrespondingOutput is set then kTfLiteInplaceOpInputNShared indicates that InputN may be shared with OutputN, otherwise kTfLiteInplaceOpInputNShared indicates that InputN may be shared with the first output.

-

Indicates that an op's first input may be shared with the first output tensor. kTfLiteInplaceInputCanBeSharedWithCorrespondingOutput has no impact on the behavior allowed by this flag.

-
- kTfLiteInplaceOpInput1Shared - -

Indicates that an op's second input may be shared with the first output if kTfLiteInplaceInputCanBeSharedWithCorrespondingOutput is not set or second output if kTfLiteInplaceInputCanBeSharedWithCorrespondingOutput is set.

-
- kTfLiteInplaceOpInput2Shared - -

Indicates that an op's third input may be shared with the first output if kTfLiteInplaceInputCanBeSharedWithCorrespondingOutput is not set or third output if kTfLiteInplaceInputCanBeSharedWithCorrespondingOutput is set.

-
- kTfLiteInplaceOpMaxValue - -

Placeholder to ensure that enum can hold 64 bit values to accommodate future fields.

-
- kTfLiteInplaceOpNone - -

The default value.

-

This indicates that the same data pointer cannot safely be passed as an op's input and output.

-
-
-
-
-

TfLiteQuantizationType

-
 TfLiteQuantizationType
-
-

SupportedQuantizationTypes.

- - - - - - - - - - - - -
Properties
- kTfLiteAffineQuantization - -

Affine quantization (with support for per-channel quantization).

-

Corresponds to TfLiteAffineQuantization.

-
- kTfLiteNoQuantization - -

No quantization.

-
-
-
-
-

TfLiteRunStability

-
 TfLiteRunStability
-
-

Describes how stable a tensor attribute is with regards to an interpreter runs.

- - - - - - - - - - - - -
Properties
- kTfLiteRunStabilityAcrossRuns - -

Will stay the same for one run.

-

Will stay the same across all runs.

-
- kTfLiteRunStabilitySingleRun - -

May change at any time.

-
-
-
-
-

TfLiteRunStep

-
 TfLiteRunStep
-
-

Describes the steps of a TFLite operation life cycle.

-
-
-

Typedefs

-
-

TfLiteAffineQuantization

-
struct TfLiteAffineQuantization TfLiteAffineQuantization
-
-

Parameters for asymmetric quantization across a dimension (i.e per output channel quantization).

-

quantized_dimension specifies which dimension the scales and zero_points correspond to. For a particular value in quantized_dimension, quantized values can be converted back to float using: real_value = scale * (quantized_value - zero_point)

-
-
-
-

TfLiteAllocationStrategy

-
enum TfLiteAllocationStrategy TfLiteAllocationStrategy
-
-

Memory allocation strategies.

-

TfLiteAllocationType values have been overloaded to mean more than their original intent. This enum should only be used to document the allocation strategy used by a tensor for it data.

-
-
-
-

TfLiteAllocationType

-
enum TfLiteAllocationType TfLiteAllocationType
-
-

Memory allocation strategies.

-

-

    -
  • kTfLiteMmapRo: Read-only memory-mapped data, or data externally allocated.
  • -
  • kTfLiteArenaRw: Arena allocated with no guarantees about persistence, and available during eval.
  • -
  • kTfLiteArenaRwPersistent: Arena allocated but persistent across eval, and only available during eval.
  • -
  • kTfLiteDynamic: Allocated during eval, or for string tensors.
  • -
  • kTfLitePersistentRo: Allocated and populated during prepare. This is useful for tensors that can be computed during prepare and treated as constant inputs for downstream ops (also in prepare).
  • -
  • kTfLiteCustom: Custom memory allocation provided by the user. See TfLiteCustomAllocation below.
  • -
  • kTfLiteVariantObject: Allocation is an arbitrary type-erased C++ object. Allocation and deallocation are done through new and delete.
  • -
-

-
-
-
-

TfLiteBufferHandle

-
int TfLiteBufferHandle
-
-

The delegates should use zero or positive integers to represent handles.

-

-1 is reserved from unallocated status.

-
-
-
-

TfLiteComplex128

-
struct TfLiteComplex128 TfLiteComplex128
-
-

Double-precision complex data type compatible with the C99 definition.

-
-
-
-

TfLiteComplex64

-
struct TfLiteComplex64 TfLiteComplex64
-
-

Single-precision complex data type compatible with the C99 definition.

-
-
-
-

TfLiteContext

-
struct TfLiteContext TfLiteContext
-
-

TfLiteContext allows an op to access the tensors.

-

TfLiteContext is a struct that is created by the TF Lite runtime and passed to the "methods" (C function pointers) in the TfLiteRegistration struct that are used to define custom ops and custom delegate kernels. It contains information and methods (C function pointers) that can be called by the code implementing a custom op or a custom delegate kernel. These methods provide access to the context in which that custom op or custom delegate kernel occurs, such as access to the input and output tensors for that op, as well as methods for allocating memory buffers and intermediate tensors, etc.

-

See also TfLiteOpaqueContext, which is an more ABI-stable equivalent.

-
-
-
-

TfLiteCustomAllocation

-
struct TfLiteCustomAllocation TfLiteCustomAllocation
-
-

Defines a custom memory allocation not owned by the runtime.

-

data should be aligned to kDefaultTensorAlignment defined in lite/util.h. (Currently 64 bytes) NOTE: See Interpreter::SetCustomAllocationForTensor for details on usage.

-
-
-
-

TfLiteCustomAllocationFlags

-
enum TfLiteCustomAllocationFlags TfLiteCustomAllocationFlags
-
-

The flags used in Interpreter::SetCustomAllocationForTensor.

-

Note that this is a bitmask, so the values should be 1, 2, 4, 8, ...etc.

-
-
-
-

TfLiteDelegate

-
struct TfLiteDelegate TfLiteDelegate
-
-

WARNING: This is an experimental interface that is subject to change.

-
-
-
-

TfLiteDelegateFlags

-
enum TfLiteDelegateFlags TfLiteDelegateFlags
-
-

The flags used in TfLiteDelegate.

-

Note that this is a bitmask, so the values should be 1, 2, 4, 8, ...etc.

-
-
-
-

TfLiteDelegateParams

-
struct TfLiteDelegateParams TfLiteDelegateParams
-
-

WARNING: This is an experimental interface that is subject to change.

-

Currently, TfLiteDelegateParams has to be allocated in a way that it's trivially destructable. It will be stored as builtin_data field in TfLiteNode of the delegate node.

-

See also the CreateDelegateParams function in interpreter.cc details.

-
-
-
-

TfLiteDimensionMetadata

-
struct TfLiteDimensionMetadata TfLiteDimensionMetadata
-
-

Metadata to encode each dimension in a sparse tensor.

-
-
-
-

TfLiteDimensionType

-
enum TfLiteDimensionType TfLiteDimensionType
-
-

Storage format of each dimension in a sparse tensor.

-
-
-
-

TfLiteEvalTensor

-
struct TfLiteEvalTensor TfLiteEvalTensor
-
-

Light-weight tensor struct for TF Micro runtime.

-

Provides the minimal amount of information required for a kernel to run during TfLiteRegistration::Eval.

-
-
-
-

TfLiteExternalContext

-
struct TfLiteExternalContext TfLiteExternalContext
-
-

An external context is a collection of information unrelated to the TF Lite framework, but useful to a subset of the ops.

-

TF Lite knows very little about the actual contexts, but it keeps a list of them, and is able to refresh them if configurations like the number of recommended threads change.

-
-
-
-

TfLiteExternalContextType

-
enum TfLiteExternalContextType TfLiteExternalContextType
-
-

The list of external context types known to TF Lite.

-

This list exists solely to avoid conflicts and to ensure ops can share the external contexts they need. Access to the external contexts is controlled by one of the corresponding support files.

-
-
-
-

TfLiteFloat16

-
struct TfLiteFloat16 TfLiteFloat16
-
-

Half precision data type compatible with the C99 definition.

-
-
-
-

TfLiteFloatArray

-
struct TfLiteFloatArray TfLiteFloatArray
-
-

Fixed size list of floats. Used for per-channel quantization.

-
-
-
-

TfLiteIntArray

-
struct TfLiteIntArray TfLiteIntArray
-
-

Fixed size list of integers.

-

Used for dimensions and inputs/outputs tensor indices

-
-
-
-

TfLiteNode

-
struct TfLiteNode TfLiteNode
-
-

A structure representing an instance of a node.

-

This structure only exhibits the inputs, outputs, user defined data and some node properties (like statefulness), not other features like the type.

-
-
-
-

TfLiteOpaqueDelegateBuilder

-
struct TfLiteOpaqueDelegateBuilder TfLiteOpaqueDelegateBuilder
-
-

TfLiteOpaqueDelegateBuilder is used for constructing TfLiteOpaqueDelegate, see TfLiteOpaqueDelegateCreate below.

-

Note: This struct is not ABI stable.

-

For forward source compatibility TfLiteOpaqueDelegateBuilder objects should be brace-initialized, so that all fields (including any that might be added in the future) get zero-initialized. The purpose of each field is exactly the same as with TfLiteDelegate.

-

WARNING: This is an experimental interface that is subject to change.

-
-
-
-

TfLiteOpaqueDelegateParams

-
struct TfLiteOpaqueDelegateParams TfLiteOpaqueDelegateParams
-
-

WARNING: This is an experimental interface that is subject to change.

-

Currently, TfLiteOpaqueDelegateParams has to be allocated in a way that it's trivially destructable. It will be stored as builtin_data field in TfLiteNode of the delegate node.

-

See also the CreateOpaqueDelegateParams function in subgraph.cc details.

-
-
-
-

TfLitePtrUnion

-
union TfLitePtrUnion TfLitePtrUnion
-
-

A union of pointers that points to memory for a given tensor.

-

Do not access these members directly, if possible, use GetTensorData(tensor) instead, otherwise only access .data, as other members are deprecated.

-
-
-
-

TfLiteQuantization

-
struct TfLiteQuantization TfLiteQuantization
-
-

Structure specifying the quantization used by the tensor, if-any.

-
-
-
-

TfLiteQuantizationType

-
enum TfLiteQuantizationType TfLiteQuantizationType
-
-

SupportedQuantizationTypes.

-
-
-
-

TfLiteRegistration

-
struct TfLiteRegistration TfLiteRegistration
-
-

TfLiteRegistration defines the implementation of an operation (a built-in op, custom op, or custom delegate kernel).

-

It is a struct containing "methods" (C function pointers) that will be invoked by the TF Lite runtime to evaluate instances of the operation.

-

See also TfLiteRegistrationExternal which is a more ABI-stable equivalent.

-
-
-
-

TfLiteRegistrationExternal

-
struct TfLiteRegistrationExternal TfLiteRegistrationExternal
-
-

TfLiteRegistrationExternal is an external version of TfLiteRegistration for C API which doesn't use internal types (such as TfLiteContext) but only uses stable API types (such as TfLiteOpaqueContext).

-

The purpose of each field is the exactly the same as with TfLiteRegistration.

-
-
-
-

TfLiteRegistration_V1

-
struct TfLiteRegistration_V1 TfLiteRegistration_V1
-
-

Old version of TfLiteRegistration to maintain binary backward compatibility.

-

The legacy registration type must be a POD struct type whose field types must be a prefix of the field types in TfLiteRegistration, and offset of the first field in TfLiteRegistration that is not present in the legacy registration type must be greater than or equal to the size of the legacy registration type.

-

WARNING: This structure is deprecated / not an official part of the API. It should be only used for binary backward compatibility.

-
-
-
-

TfLiteRegistration_V2

-
struct TfLiteRegistration_V2 TfLiteRegistration_V2
-
-

Old version of TfLiteRegistration to maintain binary backward compatibility.

-

The legacy registration type must be a POD struct type whose field types must be a prefix of the field types in TfLiteRegistration, and offset of the first field in TfLiteRegistration that is not present in the legacy registration type must be greater than or equal to the size of the legacy registration type.

-

WARNING: This structure is deprecated / not an official part of the API. It should be only used for binary backward compatibility.

-
-
-
-

TfLiteRegistration_V3

-
struct TfLiteRegistration_V3 TfLiteRegistration_V3
-
-

Old version of TfLiteRegistration to maintain binary backward compatibility.

-

The legacy registration type must be a POD struct type whose field types must be a prefix of the field types in TfLiteRegistration, and offset of the first field in TfLiteRegistration that is not present in the legacy registration type must be greater than or equal to the size of the legacy registration type.

-

WARNING: This structure is deprecated / not an official part of the API. It should be only used for binary backward compatibility.

-
-
-
-

TfLiteRunStability

-
enum TfLiteRunStability TfLiteRunStability
-
-

Describes how stable a tensor attribute is with regards to an interpreter runs.

-
-
-
-

TfLiteRunStep

-
enum TfLiteRunStep TfLiteRunStep
-
-

Describes the steps of a TFLite operation life cycle.

-
-
-
-

TfLiteSparsity

-
struct TfLiteSparsity TfLiteSparsity
-
-

Parameters used to encode a sparse tensor.

-

For detailed explanation of each field please refer to lite/schema/schema.fbs.

-
-
-
-

TfLiteTensor

-
struct TfLiteTensor TfLiteTensor
-
-

A tensor in the interpreter system which is a wrapper around a buffer of data including a dimensionality (or NULL if not currently defined).

-
-
-

Variables

-
-

kTfLiteMaxSharableOpInputs

-
const int kTfLiteMaxSharableOpInputs = 3
-
-

The number of shareable inputs supported.

-
-
-

Functions

-
-

TfLiteDelegateCreate

-
TfLiteDelegate TfLiteDelegateCreate(
-  void
-)
-
-

Build a null delegate, with all the fields properly set to their default values.

-
-
-
-

TfLiteFloatArrayCopy

-
TfLiteFloatArray * TfLiteFloatArrayCopy(
-  const TfLiteFloatArray *src
-)
-
-

Create a copy of an array passed as src.

-

You are expected to free memory with TfLiteFloatArrayFree.

-
-
-
-

TfLiteFloatArrayCreate

-
TfLiteFloatArray * TfLiteFloatArrayCreate(
-  int size
-)
-
-

Create a array of a given size (uninitialized entries).

-

This returns a pointer, that you must free using TfLiteFloatArrayFree().

-
-
-
-

TfLiteFloatArrayFree

-
void TfLiteFloatArrayFree(
-  TfLiteFloatArray *a
-)
-
-

Free memory of array a.

-
-
-
-

TfLiteFloatArrayGetSizeInBytes

-
int TfLiteFloatArrayGetSizeInBytes(
-  int size
-)
-
-

Given the size (number of elements) in a TfLiteFloatArray, calculate its size in bytes.

-
-
-
-

TfLiteIntArrayCopy

-
TfLiteIntArray * TfLiteIntArrayCopy(
-  const TfLiteIntArray *src
-)
-
-

Create a copy of an array passed as src.

-

You are expected to free memory with TfLiteIntArrayFree

-
-
-
-

TfLiteIntArrayCreate

-
TfLiteIntArray * TfLiteIntArrayCreate(
-  int size
-)
-
-

Create a array of a given size (uninitialized entries).

-

This returns a pointer, that you must free using TfLiteIntArrayFree().

-
-
-
-

TfLiteIntArrayEqual

-
int TfLiteIntArrayEqual(
-  const TfLiteIntArray *a,
-  const TfLiteIntArray *b
-)
-
-

Check if two intarrays are equal. Returns 1 if they are equal, 0 otherwise.

-
-
-
-

TfLiteIntArrayEqualsArray

-
int TfLiteIntArrayEqualsArray(
-  const TfLiteIntArray *a,
-  int b_size,
-  const int b_data[]
-)
-
-

Check if an intarray equals an array. Returns 1 if equals, 0 otherwise.

-
-
-
-

TfLiteIntArrayFree

-
void TfLiteIntArrayFree(
-  TfLiteIntArray *a
-)
-
-

Free memory of array a.

-
-
-
-

TfLiteIntArrayGetSizeInBytes

-
size_t TfLiteIntArrayGetSizeInBytes(
-  int size
-)
-
-

Given the size (number of elements) in a TfLiteIntArray, calculate its size in bytes.

-
-
-
-

TfLiteOpaqueDelegateCreate

-
TfLiteOpaqueDelegate * TfLiteOpaqueDelegateCreate(
-  const TfLiteOpaqueDelegateBuilder *opaque_delegate_builder
-)
-
-

Creates an opaque delegate and returns its address.

-

The opaque delegate will behave according to the provided opaque_delegate_builder. The lifetime of the objects pointed to by any of the fields within the opaque_delegate_builder must outlive the returned TfLiteOpaqueDelegate and any TfLiteInterpreter, TfLiteInterpreterOptions, tflite::Interpreter, or tflite::InterpreterBuilder that the delegate is added to. The returned address should be passed to TfLiteOpaqueDelegateDelete for deletion. If opaque_delegate_builder is a null pointer, then a null pointer will be returned.

-
-
-
-

TfLiteOpaqueDelegateDelete

-
void TfLiteOpaqueDelegateDelete(
-  TfLiteOpaqueDelegate *delegate
-)
-
-

Deletes the provided opaque delegate.

-

This function has no effect if the delegate is a null pointer.

-
-
-
-

TfLiteOpaqueDelegateGetData

-
void * TfLiteOpaqueDelegateGetData(
-  const TfLiteOpaqueDelegate *delegate
-)
-
-

Returns a pointer to the data associated with the provided opaque delegate.

-

A null pointer will be returned when:

-
-
-
-

TfLiteQuantizationFree

-
void TfLiteQuantizationFree(
-  TfLiteQuantization *quantization
-)
-
-

Free quantization data.

-
-
-
-

TfLiteSparsityFree

-
void TfLiteSparsityFree(
-  TfLiteSparsity *sparsity
-)
-
-

Free sparsity parameters.

-
-
-
-

TfLiteTensorCopy

-
TfLiteStatus TfLiteTensorCopy(
-  const TfLiteTensor *src,
-  TfLiteTensor *dst
-)
-
-

Copies the contents of src in dst.

-

Function does nothing if either src or dst is passed as nullptr and return kTfLiteOk. Returns kTfLiteError if src and dst doesn't have matching data size. Note function copies contents, so it won't create new data pointer or change allocation type. All Tensor related properties will be copied from src to dst like quantization, sparsity, ...

-
-
-
-

TfLiteTensorDataFree

-
void TfLiteTensorDataFree(
-  TfLiteTensor *t
-)
-
-

Free data memory of tensor t.

-
-
-
-

TfLiteTensorFree

-
void TfLiteTensorFree(
-  TfLiteTensor *t
-)
-
-

Free memory of tensor t.

-
-
-
-

TfLiteTensorGetAllocationStrategy

-
TfLiteAllocationStrategy TfLiteTensorGetAllocationStrategy(
-  const TfLiteTensor *t
-)
-
-

Returns a tensor data allocation strategy.

-
-
-
-

TfLiteTensorGetBufferAddressStability

-
TfLiteRunStability TfLiteTensorGetBufferAddressStability(
-  const TfLiteTensor *t
-)
-
-

Returns how stable a tensor data buffer address is across runs.

-
-
-
-

TfLiteTensorGetDataKnownStep

-
TfLiteRunStep TfLiteTensorGetDataKnownStep(
-  const TfLiteTensor *t
-)
-
-

Returns the operation step when the data of a tensor is populated.

-

Some operations can precompute their results before the evaluation step. This makes the data available earlier for subsequent operations.

-
-
-
-

TfLiteTensorGetDataStability

-
TfLiteRunStability TfLiteTensorGetDataStability(
-  const TfLiteTensor *t
-)
-
-

Returns how stable a tensor data values are across runs.

-
-
-
-

TfLiteTensorGetShapeKnownStep

-
TfLiteRunStep TfLiteTensorGetShapeKnownStep(
-  const TfLiteTensor *t
-)
-
-

Returns the operation steop when the shape of a tensor is computed.

-

Some operations can precompute the shape of their results before the evaluation step. This makes the shape available earlier for subsequent operations.

-
-
-
-

TfLiteTensorRealloc

-
TfLiteStatus TfLiteTensorRealloc(
-  size_t num_bytes,
-  TfLiteTensor *tensor
-)
-
-

Change the size of the memory block owned by tensor to num_bytes.

-

Tensors with allocation types other than kTfLiteDynamic will be ignored and a kTfLiteOk will be returned. tensor's internal data buffer will be assigned a pointer which can safely be passed to free or realloc if num_bytes is zero. Tensor data will be unchanged in the range from the start of the region up to the minimum of the old and new sizes. In the case of NULL tensor, or an error allocating new memory, returns kTfLiteError.

-
-
-
-

TfLiteTensorReset

-
void TfLiteTensorReset(
-  TfLiteType type,
-  const char *name,
-  TfLiteIntArray *dims,
-  TfLiteQuantizationParams quantization,
-  char *buffer,
-  size_t size,
-  TfLiteAllocationType allocation_type,
-  const void *allocation,
-  bool is_variable,
-  TfLiteTensor *tensor
-)
-
-

Set all of a tensor's fields (and free any previously allocated data).

-
-
-
-

TfLiteTensorResizeMaybeCopy

-
TfLiteStatus TfLiteTensorResizeMaybeCopy(
-  size_t num_bytes,
-  TfLiteTensor *tensor,
-  bool preserve_data
-)
-
-

Change the size of the memory block owned by tensor to num_bytes.

-

Tensors with allocation types other than kTfLiteDynamic will be ignored and a kTfLiteOk will be returned. tensor's internal data buffer will be assigned a pointer which can safely be passed to free or realloc if num_bytes is zero. If preserve_data is true, tensor data will be unchanged in the range from the start of the region up to the minimum of the old and new sizes. In the case of NULL tensor, or an error allocating new memory, returns kTfLiteError.

-
-
-
-

TfLiteTypeGetName

-
const char * TfLiteTypeGetName(
-  TfLiteType type
-)
-
-

Return the name of a given type, for error reporting purposes.

-
-
- - diff --git a/site/en/lite/api_docs/c/group/delegate-plugin.html b/site/en/lite/api_docs/c/group/delegate-plugin.html deleted file mode 100644 index 7e3a1249b8..0000000000 --- a/site/en/lite/api_docs/c/group/delegate-plugin.html +++ /dev/null @@ -1,156 +0,0 @@ - - - - lite/acceleration/configuration/c/delegate_plugin.h - - - -
-

lite/acceleration/configuration/c/delegate_plugin.h

-

C API types for TF Lite delegate plugins.

-

Summary

-

-

-

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

Typedefs

-
- TfLiteDelegatePlugin - typedef
Struct to hold all the methods for a delegate plugin.
- TfLiteDelegatePluginCreateFunc(const void *tflite_settings) - typedef
Type of delegate creation function used to allocate and construct a delegate.
- TfLiteDelegatePluginDestroyFunc(TfLiteDelegate *) - typedef
- void -
Type of function to destroy and deallocate a delegate.
- TfLiteDelegatePluginGetDelegateErrnoFunc(TfLiteDelegate *) - typedef
- int -
Type of function to return an error code for the last delegate operation.
- TfLiteOpaqueDelegatePlugin - typedef
- TfLiteOpaqueDelegatePluginCreateFunc - typedef
- TfLiteOpaqueDelegatePluginDestroyFunc - typedef
- TfLiteOpaqueDelegatePluginGetDelegateErrnoFunc - typedef
- - - - - - - - -
-

Structs

-
- TfLiteDelegatePlugin - -

Struct to hold all the methods for a delegate plugin.

-
-

Typedefs

-
-

TfLiteDelegatePlugin

-
struct TfLiteDelegatePlugin TfLiteDelegatePlugin
-
-

Struct to hold all the methods for a delegate plugin.

-
-
-
-

TfLiteDelegatePluginCreateFunc

-
TfLiteDelegate * TfLiteDelegatePluginCreateFunc(const void *tflite_settings)
-
-

Type of delegate creation function used to allocate and construct a delegate.

-

The tflite_settings parameter passed to the delegate creation function should be a pointer to a FlatBuffer table object of type tflite::TFLiteSettings. We use const void * here rather than const tflite::TFLiteSettings* since this is a C API so we don't want to directly reference C++ types such as tflite::TFLiteSettings. But note that this address should point to the 'parsed' FlatBuffer object, not the raw byte buffer. (Note that 'parsing' FlatBuffers is very cheap, it's just an offset load.)

-

If you are using the FlatBuffers C API, then you can alternatively pass in a value of type tflite_TFLiteSettings_table_t, which is a typedef for const struct tflite_TFLiteSettings_table* that is the corresponding type for the 'parsed' FlatBuffer object in the FlatBuffers C API.

-

Ownership of the tflite_settings flatbuffer remains with the caller. The caller of a delegate creation function may end the lifetime of the tflite_settings FlatBuffer immediately after the call to the function. So the delegate creation function should ensure that any settings that the delegate may need to reference later, after the delegate has been constructed, are copied from the FlatBuffer into storage owned by the delegate.

-
-
-
-

TfLiteDelegatePluginDestroyFunc

-
void TfLiteDelegatePluginDestroyFunc(TfLiteDelegate *)
-
-

Type of function to destroy and deallocate a delegate.

-

The delegate argument must have been created with the corresponding create function from the same delegate plugin.

-
-
-
-

TfLiteDelegatePluginGetDelegateErrnoFunc

-
int TfLiteDelegatePluginGetDelegateErrnoFunc(TfLiteDelegate *)
-
-

Type of function to return an error code for the last delegate operation.

-

The delegate argument must have been created with the corresponding create function from the same delegate plugin.

-
-
-
-

TfLiteOpaqueDelegatePlugin

-
TfLiteDelegatePlugin TfLiteOpaqueDelegatePlugin
-
-
-
-

TfLiteOpaqueDelegatePluginCreateFunc

-
TfLiteDelegatePluginCreateFunc TfLiteOpaqueDelegatePluginCreateFunc
-
-
-
-

TfLiteOpaqueDelegatePluginDestroyFunc

-
TfLiteDelegatePluginDestroyFunc TfLiteOpaqueDelegatePluginDestroyFunc
-
-
-
-

TfLiteOpaqueDelegatePluginGetDelegateErrnoFunc

-
TfLiteDelegatePluginGetDelegateErrnoFunc TfLiteOpaqueDelegatePluginGetDelegateErrnoFunc
-
-
- - diff --git a/site/en/lite/api_docs/c/group/gpu-plugin.html b/site/en/lite/api_docs/c/group/gpu-plugin.html deleted file mode 100644 index 3ec30610ab..0000000000 --- a/site/en/lite/api_docs/c/group/gpu-plugin.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - lite/acceleration/configuration/c/gpu_plugin.h - - - -
-

lite/acceleration/configuration/c/gpu_plugin.h

-

This header file is for the delegate plugin for GPU.

-

Summary

-

For the C++ delegate plugin interface, the GPU delegate plugin is added to the DelegatePluginRegistry by the side effect of a constructor for a static object, so there's no public API needed for this plugin, other than the API of tflite::delegates::DelegatePluginRegistrys, which is declared in delegate_registry.h.

-

But to provide a C API to access the GPU delegate plugin, we do expose some functions, which are declared below.

- - - - - - - - -
-

Functions

-
- TfLiteGpuDelegatePluginCApi() - -
- const TfLiteDelegatePlugin * -
-
C API for the GPU delegate plugin.
-
-

Functions

-
-

TfLiteGpuDelegatePluginCApi

-
const TfLiteDelegatePlugin * TfLiteGpuDelegatePluginCApi()
-
-

C API for the GPU delegate plugin.

-

Returns a pointer to a statically allocated table of function pointers.

-
-
- - diff --git a/site/en/lite/api_docs/c/group/tflite.html b/site/en/lite/api_docs/c/group/tflite.html deleted file mode 100644 index 2d52771c80..0000000000 --- a/site/en/lite/api_docs/c/group/tflite.html +++ /dev/null @@ -1,326 +0,0 @@ - - - - lite/abi/tflite.h - - - -
-

lite/abi/tflite.h

-

Native functions for initializing and shutting down the TensorFlow Lite (TFLite) in Google Play Services Native API.

-

Summary

-

One of the following functions must be called (and must return successfully) before any of the TFLite C API functions are called:

    -
  • the GmsTfLiteInitialize() or GmsTfLiteInitializeOrThrow() native functions defined in this header file.
  • -
  • the com.google.android.gms.tflite.java.TfLiteNative.initialize(Context context) or com.google.android.gms.tflite.java.TfLiteNative.initialize(Context context, TfLiteInitializationOptions options) methods defined in the Java API.
  • -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

Functions

-
- GmsTfLiteCheckInitializedOrThrow(JNIEnv *env) - -
- bool -
-
Checks whether the TFLite API has been initialized, throwing a Java exception otherwise.
-
- GmsTfLiteErrorCodeVersionTooNew(int error_code) - -
- bool -
-
Returns true if the error code indicates the TFLite ABI version is too new.
-
- GmsTfLiteErrorCodeVersionTooOld(int error_code) - -
- bool -
-
Returns true if the error code indicates that the TFLite ABI version is too old.
-
- GmsTfLiteInitialize(JNIEnv *env, jobjecthandle) - -
- int -
-
Initialize TFLite with a handle acquired from Google Play Services API.
-
- GmsTfLiteInitializeOrThrow(JNIEnv *env, jobjecthandle) - -
- bool -
-
Initialize TFLite with a handle acquired from Google Play Services API, throwing a Java exception on failure.
-
- GmsTfLiteShutdown(void) - -
- void -
-
Resets the TFLite API.
-
-

Functions

-
-

GmsTfLiteCheckInitializedOrThrow

-
bool GmsTfLiteCheckInitializedOrThrow(
-  JNIEnv *env
-)
-
-

Checks whether the TFLite API has been initialized, throwing a Java exception otherwise.

-

- - - - - - - - - - - - - - -
Details
Parameters - - - - - - - -
- env - -
The JNIEnv for the current thread (which has to be attached to the JVM).
-
-
- Returns - -
Whether or not the TFLite API has been initialized. If this method returns false, no other JNI method should be called until the pending exception has been handled (typically by returning to Java).
-
-

-
-
-

GmsTfLiteErrorCodeVersionTooNew

-
bool GmsTfLiteErrorCodeVersionTooNew(
-  int error_code
-)
-
-

Returns true if the error code indicates the TFLite ABI version is too new.

-

In this case, the client should be updated to a newer version.

-

To avoid this error, make sure that your app is built against the latest version of the TFLite in Google Play Services client library code.

-

If TFLite is important for the functionality of the app, then we recommend that the calling code notify the user in this case. Suggested actions for the user could include:

    -
  • Try updating the app to the latest version
  • -

-

If the in-app update API (https://developer.android.com/guide/playcore/in-app-updates) is available, we also recommend using the in-app update API to allow the user to automatically update the app if a new version is available.

-

- - - - - - - - - - -
Details
Parameters - - - - - - - -
- error_code - -
An error code returned by GmsTfLiteInitialize.
-
-
-

-
-
-

GmsTfLiteErrorCodeVersionTooOld

-
bool GmsTfLiteErrorCodeVersionTooOld(
-  int error_code
-)
-
-

Returns true if the error code indicates that the TFLite ABI version is too old.

-

In this case, the TFLite in Google Play Services module should be updated to a newer version.

-

If TFLite is important for the functionality of the app, then we recommend that the calling code notify the user in this case. Suggested actions for the user could include:

-

- - - - - - - - - - -
Details
Parameters - - - - - - - -
- error_code - -
An error code returned by GmsTfLiteInitialize.
-
-
-

-
-
-

GmsTfLiteInitialize

-
int GmsTfLiteInitialize(
-  JNIEnv *env,
-  jobjecthandle
-)
-
-

Initialize TFLite with a handle acquired from Google Play Services API.

-

-This method (along with GmsTfLiteInitializeOrThrow()) can be called multiple times with the same handle; attempting to initialize with a different handle (without a call to GmsTfLiteShutdown() in between) will fail.

- - - - - - - - - - - - - - -
Details
Parameters - - - - - - - - - - - -
- env - -
The JNIEnv for the current thread (which has to be attached to the JVM).
-
- handle - -
An InternalNativeInitializationHandle object acquired through the Google Play Services API.
-
-
- Returns - -
0 on success, or a non-zero error code on failure. The error codes are implementation-specific, but error conditions that clients may need to deal with can be tested using the GmsTfLiteErrorCodeVersionTooOld() and GmsTfLiteErrorCodeVersionTooNew() functions. Clients may also wish to log the specific error code for ease of debugging.
-
-
-
-
-

GmsTfLiteInitializeOrThrow

-
bool GmsTfLiteInitializeOrThrow(
-  JNIEnv *env,
-  jobjecthandle
-)
-
-

Initialize TFLite with a handle acquired from Google Play Services API, throwing a Java exception on failure.

-

-This method (along with GmsTfLiteInitialize()) can be called multiple times with the same handle; attempting to initialize with a different handle (without a call to GmsTfLiteShutdown() in between) will fail.

- - - - - - - - - - - - - - -
Details
Parameters - - - - - - - - - - - -
- env - -
The JNIEnv for the current thread (which has to be attached to the JVM).
-
- handle - -
An InternalNativeInitializationHandle object acquired through the Google Play Services API.
-
-
- Returns - -
Whether or not initialization was successful. If this method returns false, no other JNI method should be called until the pending exception has been handled (typically by returning to Java).
-
-
-
-
-

GmsTfLiteShutdown

-
void GmsTfLiteShutdown(
-  void
-)
-
-

Resets the TFLite API.

-

After this method is called, the TFLite API will be unusable until a subsequent call to GmsTfLiteInitialize() or GmsTfLiteInitializeOrThrow(). This can be used to switch to a different version of the TFLite library.

-
-
- - diff --git a/site/en/lite/api_docs/c/group/xnnpack-plugin.html b/site/en/lite/api_docs/c/group/xnnpack-plugin.html deleted file mode 100644 index 10b72768d2..0000000000 --- a/site/en/lite/api_docs/c/group/xnnpack-plugin.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - lite/acceleration/configuration/c/xnnpack_plugin.h - - - -
-

lite/acceleration/configuration/c/xnnpack_plugin.h

-

This header file is for the delegate plugin for XNNPACK.

-

Summary

-

For the C++ delegate plugin interface, the XNNPACK delegate plugin is added to the DelegatePluginRegistry by the side effect of a constructor for a static object, so there's no public API needed for this plugin, other than the API of tflite::delegates::DelegatePluginRegistry, which is declared in delegate_registry.h.

-

But to provide a C API to access the XNNPACK delegate plugin, we do expose some functions, which are declared below.

- - - - - - - - -
-

Functions

-
- TfLiteXnnpackDelegatePluginCApi() - -
- const TfLiteDelegatePlugin * -
-
C API for the XNNPACK delegate plugin.
-
-

Functions

-
-

TfLiteXnnpackDelegatePluginCApi

-
const TfLiteDelegatePlugin * TfLiteXnnpackDelegatePluginCApi()
-
-

C API for the XNNPACK delegate plugin.

-

Returns a pointer to a statically allocated table of function pointers.

-
-
- - diff --git a/site/en/lite/api_docs/c/index.html b/site/en/lite/api_docs/c/index.html deleted file mode 100644 index 04a5764e96..0000000000 --- a/site/en/lite/api_docs/c/index.html +++ /dev/null @@ -1,224 +0,0 @@ - - - - TensorFlow Lite C API Reference - - - -
-

TensorFlow Lite C API Reference

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

Modules

-
- lite/abi/tflite.h - Native functions for initializing and shutting down the TensorFlow Lite (TFLite) in Google Play Services Native API.
- lite/acceleration/configuration/c/delegate_plugin.h - C API types for TF Lite delegate plugins.
- lite/acceleration/configuration/c/gpu_plugin.h - This header file is for the delegate plugin for GPU.
- lite/acceleration/configuration/c/xnnpack_plugin.h - This header file is for the delegate plugin for XNNPACK.
- lite/c/c_api.h - C API for TensorFlow Lite.
- lite/c/c_api_opaque.h - C API for TensorFlow Lite Opaque Types.
- lite/c/c_api_types.h - This file declares types used by the pure C inference API defined in c_api.h, some of which are also used in the C++ and C kernel and interpreter APIs.
- lite/c/common.h - This file defines common C types and APIs for implementing operations, delegates and other constructs in TensorFlow Lite.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

Structs

-
- TfLiteAffineQuantization - Parameters for asymmetric quantization across a dimension (i.e per output channel quantization).
- TfLiteComplex128 - Double-precision complex data type compatible with the C99 definition.
- TfLiteComplex64 - Single-precision complex data type compatible with the C99 definition.
- TfLiteContext - TfLiteContext allows an op to access the tensors.
- TfLiteCustomAllocation - Defines a custom memory allocation not owned by the runtime.
- TfLiteDelegate - WARNING: This is an experimental interface that is subject to change.
- TfLiteDelegateParams - WARNING: This is an experimental interface that is subject to change.
- TfLiteDelegatePlugin - Struct to hold all the methods for a delegate plugin.
- TfLiteDimensionMetadata - Metadata to encode each dimension in a sparse tensor.
- TfLiteEvalTensor - Light-weight tensor struct for TF Micro runtime.
- TfLiteExternalContext - An external context is a collection of information unrelated to the TF Lite framework, but useful to a subset of the ops.
- TfLiteFloat16 - Half precision data type compatible with the C99 definition.
- TfLiteFloatArray - Fixed size list of floats. Used for per-channel quantization.
- TfLiteIntArray - Fixed size list of integers.
- TfLiteNode - A structure representing an instance of a node.
- TfLiteOpaqueDelegateBuilder - TfLiteOpaqueDelegateBuilder is used for constructing TfLiteOpaqueDelegate, see TfLiteOpaqueDelegateCreate below.
- TfLiteOpaqueDelegateParams - WARNING: This is an experimental interface that is subject to change.
- TfLiteQuantization - Structure specifying the quantization used by the tensor, if-any.
- TfLiteQuantizationParams - Legacy.
- TfLiteRegistration - TfLiteRegistration defines the implementation of an operation (a built-in op, custom op, or custom delegate kernel).
- TfLiteSparsity - Parameters used to encode a sparse tensor.
- TfLiteTensor - A tensor in the interpreter system which is a wrapper around a buffer of data including a dimensionality (or NULL if not currently defined).
- - - - - - - - - - -
-

Unions

-
- TfLitePtrUnion - A union of pointers that points to memory for a given tensor.
- - diff --git a/site/en/lite/api_docs/c/struct/tf-lite-affine-quantization.html b/site/en/lite/api_docs/c/struct/tf-lite-affine-quantization.html deleted file mode 100644 index 08c7c93f18..0000000000 --- a/site/en/lite/api_docs/c/struct/tf-lite-affine-quantization.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - TfLiteAffineQuantization Struct Reference - - - -
-

TfLiteAffineQuantization

- #include <common.h> -

Parameters for asymmetric quantization across a dimension (i.e per output channel quantization).

-

Summary

-

quantized_dimension specifies which dimension the scales and zero_points correspond to. For a particular value in quantized_dimension, quantized values can be converted back to float using: real_value = scale * (quantized_value - zero_point)

- - - - - - - - - - - - - - - - -
-

Public attributes

-
- quantized_dimension - -
- int32_t -
-
- scale - - -
- zero_point - - -
-

Public attributes

-
-

quantized_dimension

-
int32_t TfLiteAffineQuantization::quantized_dimension
-
-
-
-

scale

-
TfLiteFloatArray * TfLiteAffineQuantization::scale
-
-
-
-

zero_point

-
TfLiteIntArray * TfLiteAffineQuantization::zero_point
-
-
- - diff --git a/site/en/lite/api_docs/c/struct/tf-lite-complex128.html b/site/en/lite/api_docs/c/struct/tf-lite-complex128.html deleted file mode 100644 index ab469fb2c9..0000000000 --- a/site/en/lite/api_docs/c/struct/tf-lite-complex128.html +++ /dev/null @@ -1,52 +0,0 @@ - - - - TfLiteComplex128 Struct Reference - - - -
-

TfLiteComplex128

- #include <common.h> -

Double-precision complex data type compatible with the C99 definition.

-

Summary

- - - - - - - - - - - - -
-

Public attributes

-
- im - -
- double -
-
- re - -
- double -
-
-

Public attributes

-
-

im

-
double TfLiteComplex128::im
-
-
-
-

re

-
double TfLiteComplex128::re
-
-
- - diff --git a/site/en/lite/api_docs/c/struct/tf-lite-complex64.html b/site/en/lite/api_docs/c/struct/tf-lite-complex64.html deleted file mode 100644 index aaf9d756ce..0000000000 --- a/site/en/lite/api_docs/c/struct/tf-lite-complex64.html +++ /dev/null @@ -1,52 +0,0 @@ - - - - TfLiteComplex64 Struct Reference - - - -
-

TfLiteComplex64

- #include <common.h> -

Single-precision complex data type compatible with the C99 definition.

-

Summary

- - - - - - - - - - - - -
-

Public attributes

-
- im - -
- float -
-
- re - -
- float -
-
-

Public attributes

-
-

im

-
float TfLiteComplex64::im
-
-
-
-

re

-
float TfLiteComplex64::re
-
-
- - diff --git a/site/en/lite/api_docs/c/struct/tf-lite-context.html b/site/en/lite/api_docs/c/struct/tf-lite-context.html deleted file mode 100644 index e444432817..0000000000 --- a/site/en/lite/api_docs/c/struct/tf-lite-context.html +++ /dev/null @@ -1,552 +0,0 @@ - - - - TfLiteContext Struct Reference - - - -
-

TfLiteContext

- #include <common.h> -

TfLiteContext allows an op to access the tensors.

-

Summary

-

TfLiteContext is a struct that is created by the TF Lite runtime and passed to the "methods" (C function pointers) in the TfLiteRegistration struct that are used to define custom ops and custom delegate kernels. It contains information and methods (C function pointers) that can be called by the code implementing a custom op or a custom delegate kernel. These methods provide access to the context in which that custom op or custom delegate kernel occurs, such as access to the input and output tensors for that op, as well as methods for allocating memory buffers and intermediate tensors, etc.

-

See also TfLiteOpaqueContext, which is an more ABI-stable equivalent.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

Public attributes

-
- AcquireSubgraphContext)(struct TfLiteContext *context, int subgraph_index, struct TfLiteContext **acquired_context) - -
- TfLiteStatus(* -
-
Retrieves the corresponding TfLiteContext of a subgraph that the given subgraph_index points to and switches to the delegate context for that subgraph.
-
- AddTensors)(struct TfLiteContext *, int tensors_to_add, int *first_new_tensor_index) - -
- TfLiteStatus(* -
-
Add tensors_to_add tensors, preserving pre-existing Tensor entries.
-
- AllocateBufferForEval)(struct TfLiteContext *ctx, size_t bytes, void **ptr) - -
- TfLiteStatus(* -
-
Allocate a buffer which will be deallocated right after invoke phase.
-
- AllocatePersistentBuffer)(struct TfLiteContext *ctx, size_t bytes) - -
- void *(* -
-
Allocate persistent buffer which has the same life time as the interpreter.
-
- GetEvalTensor)(const struct TfLiteContext *context, int tensor_idx) - - -
Returns a TfLiteEvalTensor struct for a given index.
-
- GetExecutionPlan)(struct TfLiteContext *context, TfLiteIntArray **execution_plan) - -
- TfLiteStatus(* -
-
The execution plan contains a list of the node indices in execution order.
-
- GetExternalContext)(struct TfLiteContext *, TfLiteExternalContextType) - - -
Access external contexts by type.
-
- GetModelMetadata)(const struct TfLiteContext *context, const char *name, const char **ptr, size_t *bytes) - -
- TfLiteStatus(* -
-
Retrieves named metadata buffer from the TFLite model.
-
- GetNodeAndRegistration)(struct TfLiteContext *, int node_index, TfLiteNode **node, struct TfLiteRegistration **registration) - -
- TfLiteStatus(* -
-
Get a Tensor node by node_index.
-
- GetScratchBuffer)(struct TfLiteContext *ctx, int buffer_idx) - -
- void *(* -
-
Get the scratch buffer pointer.
-
- GetTensor)(const struct TfLiteContext *context, int tensor_idx) - -
- TfLiteTensor *(* -
-
Returns a TfLiteTensor struct for a given index.
-
- PreviewDelegatePartitioning)(struct TfLiteContext *context, const TfLiteIntArray *nodes_to_replace, TfLiteDelegateParams **partition_params_array, int *num_partitions) - -
- TfLiteStatus(* -
-
This method provides a preview of post-delegation partitioning.
-
- ReleaseSubgraphContext)(struct TfLiteContext *context, int subgraph_index) - -
- TfLiteStatus(* -
-
Releases the subgraph context by switching back to the TFLite kernel context for the subgraph that the given subgraph_index points to.
-
- ReplaceNodeSubsetsWithDelegateKernels)(struct TfLiteContext *, struct TfLiteRegistration registration, const TfLiteIntArray *nodes_to_replace, struct TfLiteDelegate *delegate) - -
- TfLiteStatus(* -
-
Replace ops with one or more stub delegate operations.
-
- ReportError)(struct TfLiteContext *, const char *msg,...) - -
- void(* -
-
Request that an error be reported with format string msg.
-
- RequestScratchBufferInArena)(struct TfLiteContext *ctx, size_t bytes, int *buffer_idx) - -
- TfLiteStatus(* -
-
Request a scratch buffer in the arena through static memory planning.
-
- ResizeTensor)(struct TfLiteContext *, TfLiteTensor *tensor, TfLiteIntArray *new_size) - -
- TfLiteStatus(* -
-
Request memory pointer be resized.
-
- ResizeTensorExplicit)(struct TfLiteContext *ctx, TfLiteTensor *tensor, int dims, const int *shape) - -
- TfLiteStatus(* -
-
Resize the memory pointer of the tensor.
-
- SetExternalContext)(struct TfLiteContext *, TfLiteExternalContextType, TfLiteExternalContext *) - -
- void(* -
-
Set the value of a external context.
-
- allow_fp32_relax_to_fp16 - -
- bool -
-
Flag for allowing float16 precision for FP32 calculation.
-
- impl_ - -
- void * -
-
opaque full context ptr (an opaque c++ data structure)
-
- profiler - -
- void * -
-
Pointer to the op-level profiler, if set; nullptr otherwise.
-
- recommended_num_threads - -
- int -
-
Number of threads that are recommended to subsystems like gemmlowp and eigen.
-
- tensors - -
- TfLiteTensor * -
-
An array of tensors in the interpreter context (of length tensors_size)
-
- tensors_size - -
- size_t -
-
Number of tensors in the context.
-
-

Public attributes

-
-

AcquireSubgraphContext

-
TfLiteStatus(* TfLiteContext::AcquireSubgraphContext)(struct TfLiteContext *context, int subgraph_index, struct TfLiteContext **acquired_context)
-
-

Retrieves the corresponding TfLiteContext of a subgraph that the given subgraph_index points to and switches to the delegate context for that subgraph.

-

If an invalid subgraph index is given, returns kTfLiteError.

-

NOTE: This function is expected to be paired with ReleaseSubgraphContext() once the delegate preparation is done and/or the delegate context functions are no longer needed.

-

WARNING: This is an experimental interface that is subject to change.

-
-
-
-

AddTensors

-
TfLiteStatus(* TfLiteContext::AddTensors)(struct TfLiteContext *, int tensors_to_add, int *first_new_tensor_index)
-
-

Add tensors_to_add tensors, preserving pre-existing Tensor entries.

-

If non-null, the value pointed to by first_new_tensor_index will be set to the index of the first new tensor.

-
-
-
-

AllocateBufferForEval

-
TfLiteStatus(* TfLiteContext::AllocateBufferForEval)(struct TfLiteContext *ctx, size_t bytes, void **ptr)
-
-

Allocate a buffer which will be deallocated right after invoke phase.

-

The memory is allocated from heap in TFL, and from volatile arena in TFLM. This method is only available in invoke stage.

-

NOTE: If possible use RequestScratchBufferInArena method to avoid memory allocation during inference time.

-

WARNING: This is an experimental interface that is subject to change.

-
-
-
-

AllocatePersistentBuffer

-
void *(* TfLiteContext::AllocatePersistentBuffer)(struct TfLiteContext *ctx, size_t bytes)
-
-

Allocate persistent buffer which has the same life time as the interpreter.

-

Returns nullptr on failure. The memory is allocated from heap for TFL, and from tail in TFLM. This method is only available in Init or Prepare stage.

-

WARNING: This is an experimental interface that is subject to change.

-
-
-
-

GetEvalTensor

-
TfLiteEvalTensor *(* TfLiteContext::GetEvalTensor)(const struct TfLiteContext *context, int tensor_idx)
-
-

Returns a TfLiteEvalTensor struct for a given index.

-

WARNING: This is an experimental interface that is subject to change.

-

WARNING: This method may not be available on all platforms.

-
-
-
-

GetExecutionPlan

-
TfLiteStatus(* TfLiteContext::GetExecutionPlan)(struct TfLiteContext *context, TfLiteIntArray **execution_plan)
-
-

The execution plan contains a list of the node indices in execution order.

-

execution_plan->size is the current number of nodes. And, execution_plan->data[0] is the first node that needs to be run. TfLiteDelegates can traverse the current execution plan by iterating through each member of this array and using GetNodeAndRegistration() to access details about a node. i.e.

-

-

TfLiteIntArray* execution_plan;
-TF_LITE_ENSURE_STATUS(context->GetExecutionPlan(context,
-                                                &execution_plan));
-for (int exec_index = 0; exec_index < execution_plan->size;
-      exec_index++) {
-   int node_index = execution_plan->data[exec_index];
-   TfLiteNode* node;
-   TfLiteRegistration* reg;
-   context->GetNodeAndRegistration(context, node_index, &node, ®);
-}
-
-

-

Note: the memory pointed by '*execution_plan is OWNED by TfLite runtime. Future calls to GetExecutionPlan invalidates earlier outputs. The following code snippet shows the issue of such an invocation pattern. After calling CheckNode, subsequent access to plan_1st is undefined.

void CheckNode(const TfLiteNode* node) {
-  ...
-  TfLiteIntArray* plan_2nd;
-  TF_LITE_ENSURE_STATUS(
-      context->GetExecutionPlan(context, &plan_2nd)
-  );
-  ...
-}
-
-TfLiteIntArray* plan_1st;
-TF_LITE_ENSURE_STATUS(context->GetExecutionPlan(context, &plan_1st));
-for (int exec_index = 0; exec_index < plan_1st->size; exec_index++) {
-   int node_index = plan_1st->data[exec_index];
-   TfLiteNode* node;
-   TfLiteRegistration* reg;
-   context->GetNodeAndRegistration(context, node_index, &node, ®);
-   CheckNode(node);
-}
-

-

WARNING: This is an experimental interface that is subject to change.

-
-
-
-

GetExternalContext

-
TfLiteExternalContext *(* TfLiteContext::GetExternalContext)(struct TfLiteContext *, TfLiteExternalContextType)
-
-

Access external contexts by type.

-

WARNING: This is an experimental interface that is subject to change.

-
-
-
-

GetModelMetadata

-
TfLiteStatus(* TfLiteContext::GetModelMetadata)(const struct TfLiteContext *context, const char *name, const char **ptr, size_t *bytes)
-
-

Retrieves named metadata buffer from the TFLite model.

-

Returns kTfLiteOk if metadata is successfully obtained from the flatbuffer Model: that is, there exists a metadata entry with given name string. (see TFLite's schema.fbs). The corresponding buffer information is populated in ptr & bytes. The data from ptr is valid for the lifetime of the Interpreter.

-

WARNING: This is an experimental interface that is subject to change.

-
-
-
-

GetNodeAndRegistration

-
TfLiteStatus(* TfLiteContext::GetNodeAndRegistration)(struct TfLiteContext *, int node_index, TfLiteNode **node, struct TfLiteRegistration **registration)
-
-

Get a Tensor node by node_index.

-

WARNING: This is an experimental interface that is subject to change.

-
-
-
-

GetScratchBuffer

-
void *(* TfLiteContext::GetScratchBuffer)(struct TfLiteContext *ctx, int buffer_idx)
-
-

Get the scratch buffer pointer.

-

This method is only available in Eval stage.

-

WARNING: This is an experimental interface that is subject to change.

-
-
-
-

GetTensor

-
TfLiteTensor *(* TfLiteContext::GetTensor)(const struct TfLiteContext *context, int tensor_idx)
-
-

Returns a TfLiteTensor struct for a given index.

-

WARNING: This is an experimental interface that is subject to change.

-

WARNING: This method may not be available on all platforms.

-
-
-
-

PreviewDelegatePartitioning

-
TfLiteStatus(* TfLiteContext::PreviewDelegatePartitioning)(struct TfLiteContext *context, const TfLiteIntArray *nodes_to_replace, TfLiteDelegateParams **partition_params_array, int *num_partitions)
-
-

This method provides a preview of post-delegation partitioning.

-

Each TfLiteDelegateParams in the referenced array corresponds to one instance of the delegate kernel. Example usage:

TfLiteIntArray* nodes_to_replace = ...;
-TfLiteDelegateParams* params_array;
-int num_partitions = 0;
-TF_LITE_ENSURE_STATUS(context->PreviewDelegatePartitioning(
-   context, delegate, nodes_to_replace, ¶ms_array,
-   &num_partitions));
-for (int idx = 0; idx < num_partitions; idx++) {
-   const auto& partition_params = params_array[idx];
-   ...
-}
-

-

NOTE: The context owns the memory referenced by partition_params_array. It will be cleared with another call to PreviewDelegatePartitioning, or after TfLiteDelegateParams::Prepare returns.

-

WARNING: This is an experimental interface that is subject to change.

-
-
-
-

ReleaseSubgraphContext

-
TfLiteStatus(* TfLiteContext::ReleaseSubgraphContext)(struct TfLiteContext *context, int subgraph_index)
-
-

Releases the subgraph context by switching back to the TFLite kernel context for the subgraph that the given subgraph_index points to.

-

NOTE: This function is expected to be used after AcquireSubgraphContext() once the delegate preparation is done and/or the delegate context functions are no longer needed.

-

WARNING: This is an experimental interface that is subject to change.

-
-
-
-

ReplaceNodeSubsetsWithDelegateKernels

-
TfLiteStatus(* TfLiteContext::ReplaceNodeSubsetsWithDelegateKernels)(struct TfLiteContext *, struct TfLiteRegistration registration, const TfLiteIntArray *nodes_to_replace, struct TfLiteDelegate *delegate)
-
-

Replace ops with one or more stub delegate operations.

-

This function does not take ownership of nodes_to_replace.

-
-
-
-

ReportError

-
void(* TfLiteContext::ReportError)(struct TfLiteContext *, const char *msg,...)
-
-

Request that an error be reported with format string msg.

-
-
-
-

RequestScratchBufferInArena

-
TfLiteStatus(* TfLiteContext::RequestScratchBufferInArena)(struct TfLiteContext *ctx, size_t bytes, int *buffer_idx)
-
-

Request a scratch buffer in the arena through static memory planning.

-

This method is only available in Prepare stage and the buffer is allocated by the interpreter between Prepare and Eval stage. In Eval stage, GetScratchBuffer API can be used to fetch the address.

-

WARNING: This is an experimental interface that is subject to change.

-
-
-
-

ResizeTensor

-
TfLiteStatus(* TfLiteContext::ResizeTensor)(struct TfLiteContext *, TfLiteTensor *tensor, TfLiteIntArray *new_size)
-
-

Request memory pointer be resized.

-

Updates dimensions on the tensor. NOTE: ResizeTensor takes ownership of newSize.

-
-
-
-

ResizeTensorExplicit

-
TfLiteStatus(* TfLiteContext::ResizeTensorExplicit)(struct TfLiteContext *ctx, TfLiteTensor *tensor, int dims, const int *shape)
-
-

Resize the memory pointer of the tensor.

-

This method behaves the same as ResizeTensor, except that it makes a copy of the shape array internally so the shape array could be deallocated right afterwards.

-

WARNING: This is an experimental interface that is subject to change.

-
-
-
-

SetExternalContext

-
void(* TfLiteContext::SetExternalContext)(struct TfLiteContext *, TfLiteExternalContextType, TfLiteExternalContext *)
-
-

Set the value of a external context.

-

Does not take ownership of the pointer.

-

WARNING: This is an experimental interface that is subject to change.

-
-
-
-

allow_fp32_relax_to_fp16

-
bool TfLiteContext::allow_fp32_relax_to_fp16
-
-

Flag for allowing float16 precision for FP32 calculation.

-

default: false.

-

WARNING: This is an experimental API and subject to change.

-
-
-
-

impl_

-
void * TfLiteContext::impl_
-
-

opaque full context ptr (an opaque c++ data structure)

-
-
-
-

profiler

-
void * TfLiteContext::profiler
-
-

Pointer to the op-level profiler, if set; nullptr otherwise.

-
-
-
-

recommended_num_threads

-
int TfLiteContext::recommended_num_threads
-
-

Number of threads that are recommended to subsystems like gemmlowp and eigen.

-
-
-
-

tensors

-
TfLiteTensor * TfLiteContext::tensors
-
-

An array of tensors in the interpreter context (of length tensors_size)

-
-
-
-

tensors_size

-
size_t TfLiteContext::tensors_size
-
-

Number of tensors in the context.

-
-
- - diff --git a/site/en/lite/api_docs/c/struct/tf-lite-custom-allocation.html b/site/en/lite/api_docs/c/struct/tf-lite-custom-allocation.html deleted file mode 100644 index e548c0dda6..0000000000 --- a/site/en/lite/api_docs/c/struct/tf-lite-custom-allocation.html +++ /dev/null @@ -1,53 +0,0 @@ - - - - TfLiteCustomAllocation Struct Reference - - - -
-

TfLiteCustomAllocation

- #include <common.h> -

Defines a custom memory allocation not owned by the runtime.

-

Summary

-

data should be aligned to kDefaultTensorAlignment defined in lite/util.h. (Currently 64 bytes) NOTE: See Interpreter::SetCustomAllocationForTensor for details on usage.

- - - - - - - - - - - - -
-

Public attributes

-
- bytes - -
- size_t -
-
- data - -
- void * -
-
-

Public attributes

-
-

bytes

-
size_t TfLiteCustomAllocation::bytes
-
-
-
-

data

-
void * TfLiteCustomAllocation::data
-
-
- - diff --git a/site/en/lite/api_docs/c/struct/tf-lite-delegate-params.html b/site/en/lite/api_docs/c/struct/tf-lite-delegate-params.html deleted file mode 100644 index 7427af79ca..0000000000 --- a/site/en/lite/api_docs/c/struct/tf-lite-delegate-params.html +++ /dev/null @@ -1,84 +0,0 @@ - - - - TfLiteDelegateParams Struct Reference - - - -
-

TfLiteDelegateParams

- #include <common.h> -

WARNING: This is an experimental interface that is subject to change.

-

Summary

-

Currently, TfLiteDelegateParams has to be allocated in a way that it's trivially destructable. It will be stored as builtin_data field in TfLiteNode of the delegate node.

-

See also the CreateDelegateParams function in interpreter.cc details.

- - - - - - - - - - - - - - - - - - - - -
-

Public attributes

-
- delegate - -
- struct TfLiteDelegate * -
-
- input_tensors - - -
- nodes_to_replace - - -
- output_tensors - - -
-

Public attributes

-
-

delegate

-
struct TfLiteDelegate * TfLiteDelegateParams::delegate
-
-
-
-

input_tensors

-
TfLiteIntArray * TfLiteDelegateParams::input_tensors
-
-
-
-

nodes_to_replace

-
TfLiteIntArray * TfLiteDelegateParams::nodes_to_replace
-
-
-
-

output_tensors

-
TfLiteIntArray * TfLiteDelegateParams::output_tensors
-
-
- - diff --git a/site/en/lite/api_docs/c/struct/tf-lite-delegate-plugin.html b/site/en/lite/api_docs/c/struct/tf-lite-delegate-plugin.html deleted file mode 100644 index 4a2ac33dfe..0000000000 --- a/site/en/lite/api_docs/c/struct/tf-lite-delegate-plugin.html +++ /dev/null @@ -1,76 +0,0 @@ - - - - TfLiteDelegatePlugin Struct Reference - - - -
-

TfLiteDelegatePlugin

- #include <delegate_plugin.h> -

Struct to hold all the methods for a delegate plugin.

-

Summary

- - - - - - - - - - - - - - - - -
-

Public attributes

-
- create - - -
Function to allocate and construct a delegate.
-
- destroy - - -
Function to deallocate a delegate.
-
- get_delegate_errno - - -
Function to return an error code for the last delegate operation.
-
-

Public attributes

-
-

create

-
TfLiteDelegatePluginCreateFunc * TfLiteDelegatePlugin::create
-
-

Function to allocate and construct a delegate.

-
-
-
-

destroy

-
TfLiteDelegatePluginDestroyFunc * TfLiteDelegatePlugin::destroy
-
-

Function to deallocate a delegate.

-
-
-
-

get_delegate_errno

-
TfLiteDelegatePluginGetDelegateErrnoFunc * TfLiteDelegatePlugin::get_delegate_errno
-
-

Function to return an error code for the last delegate operation.

-
-
- - diff --git a/site/en/lite/api_docs/c/struct/tf-lite-delegate.html b/site/en/lite/api_docs/c/struct/tf-lite-delegate.html deleted file mode 100644 index 05210a0e60..0000000000 --- a/site/en/lite/api_docs/c/struct/tf-lite-delegate.html +++ /dev/null @@ -1,155 +0,0 @@ - - - - TfLiteDelegate Struct Reference - - - -
-

TfLiteDelegate

- #include <common.h> -

WARNING: This is an experimental interface that is subject to change.

-

Summary

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

Public attributes

-
- CopyFromBufferHandle)(TfLiteContext *context, struct TfLiteDelegate *delegate, TfLiteBufferHandle buffer_handle, TfLiteTensor *tensor) - -
- TfLiteStatus(* -
-
Copy the data from delegate buffer handle into raw memory of the given tensor.
-
- CopyToBufferHandle)(TfLiteContext *context, struct TfLiteDelegate *delegate, TfLiteBufferHandle buffer_handle, TfLiteTensor *tensor) - -
- TfLiteStatus(* -
-
Copy the data from raw memory of the given tensor to delegate buffer handle.
-
- FreeBufferHandle)(TfLiteContext *context, struct TfLiteDelegate *delegate, TfLiteBufferHandle *handle) - -
- void(* -
-
Free the Delegate Buffer Handle.
-
- Prepare)(TfLiteContext *context, struct TfLiteDelegate *delegate) - -
- TfLiteStatus(* -
-
Invoked by ModifyGraphWithDelegate.
-
- data_ - -
- void * -
-
Data that delegate needs to identify itself.
-
- flags - -
- int64_t -
-
Bitmask flags. See the comments in TfLiteDelegateFlags.
-
- opaque_delegate_builder - - -
The opaque delegate builder associated with this object.
-
-

Public attributes

-
-

CopyFromBufferHandle

-
TfLiteStatus(* TfLiteDelegate::CopyFromBufferHandle)(TfLiteContext *context, struct TfLiteDelegate *delegate, TfLiteBufferHandle buffer_handle, TfLiteTensor *tensor)
-
-

Copy the data from delegate buffer handle into raw memory of the given tensor.

-

Note that the delegate is allowed to allocate the raw bytes as long as it follows the rules for kTfLiteDynamic tensors, in which case this cannot be null.

-
-
-
-

CopyToBufferHandle

-
TfLiteStatus(* TfLiteDelegate::CopyToBufferHandle)(TfLiteContext *context, struct TfLiteDelegate *delegate, TfLiteBufferHandle buffer_handle, TfLiteTensor *tensor)
-
-

Copy the data from raw memory of the given tensor to delegate buffer handle.

-

This can be null if the delegate doesn't use its own buffer.

-
-
-
-

FreeBufferHandle

-
void(* TfLiteDelegate::FreeBufferHandle)(TfLiteContext *context, struct TfLiteDelegate *delegate, TfLiteBufferHandle *handle)
-
-

Free the Delegate Buffer Handle.

-

Note: This only frees the handle, but this doesn't release the underlying resource (e.g. textures). The resources are either owned by application layer or the delegate. This can be null if the delegate doesn't use its own buffer.

-
-
-
-

Prepare

-
TfLiteStatus(* TfLiteDelegate::Prepare)(TfLiteContext *context, struct TfLiteDelegate *delegate)
-
-

Invoked by ModifyGraphWithDelegate.

-

This prepare is called, giving the delegate a view of the current graph through TfLiteContext*. It typically will look at the nodes and call ReplaceNodeSubsetsWithDelegateKernels() to ask the TensorFlow lite runtime to create macro-nodes to represent delegated subgraphs of the original graph.

-
-
-
-

data_

-
void * TfLiteDelegate::data_
-
-

Data that delegate needs to identify itself.

-

This data is owned by the delegate. The delegate is owned in the user code, so the delegate is responsible for deallocating this when it is destroyed.

-
-
-
-

flags

-
int64_t TfLiteDelegate::flags
-
-

Bitmask flags. See the comments in TfLiteDelegateFlags.

-
-
-
-

opaque_delegate_builder

-
struct TfLiteOpaqueDelegateBuilder * TfLiteDelegate::opaque_delegate_builder
-
-

The opaque delegate builder associated with this object.

-

If set then the TF Lite runtime will give precedence to this field. E.g. instead of invoking Prepare via the function pointer inside the TfLiteDelegate object, the runtime will first check if the corresponding function pointer inside opaque_delegate_builder is set and if so invoke that.

-

If this field is non-null, then the Prepare field (of the TfLiteDelegate) should be null.

-
-
- - diff --git a/site/en/lite/api_docs/c/struct/tf-lite-dimension-metadata.html b/site/en/lite/api_docs/c/struct/tf-lite-dimension-metadata.html deleted file mode 100644 index 5311ac449e..0000000000 --- a/site/en/lite/api_docs/c/struct/tf-lite-dimension-metadata.html +++ /dev/null @@ -1,82 +0,0 @@ - - - - TfLiteDimensionMetadata Struct Reference - - - -
-

TfLiteDimensionMetadata

- #include <common.h> -

Metadata to encode each dimension in a sparse tensor.

-

Summary

- - - - - - - - - - - - - - - - - - - - -
-

Public attributes

-
- array_indices - - -
- array_segments - - -
- dense_size - -
- int -
-
- format - - -
-

Public attributes

-
-

array_indices

-
TfLiteIntArray * TfLiteDimensionMetadata::array_indices
-
-
-
-

array_segments

-
TfLiteIntArray * TfLiteDimensionMetadata::array_segments
-
-
-
-

dense_size

-
int TfLiteDimensionMetadata::dense_size
-
-
-
-

format

-
TfLiteDimensionType TfLiteDimensionMetadata::format
-
-
- - diff --git a/site/en/lite/api_docs/c/struct/tf-lite-eval-tensor.html b/site/en/lite/api_docs/c/struct/tf-lite-eval-tensor.html deleted file mode 100644 index ae17810e2d..0000000000 --- a/site/en/lite/api_docs/c/struct/tf-lite-eval-tensor.html +++ /dev/null @@ -1,79 +0,0 @@ - - - - TfLiteEvalTensor Struct Reference - - - -
-

TfLiteEvalTensor

- #include <common.h> -

Light-weight tensor struct for TF Micro runtime.

-

Summary

-

Provides the minimal amount of information required for a kernel to run during TfLiteRegistration::Eval.

- - - - - - - - - - - - - - - - -
-

Public attributes

-
- data - - -
A union of data pointers.
-
- dims - - -
A pointer to a structure representing the dimensionality interpretation that the buffer should have.
-
- type - - -
The data type specification for data stored in data.
-
-

Public attributes

-
-

data

-
TfLitePtrUnion TfLiteEvalTensor::data
-
-

A union of data pointers.

-

The appropriate type should be used for a typed tensor based on type.

-
-
-
-

dims

-
TfLiteIntArray * TfLiteEvalTensor::dims
-
-

A pointer to a structure representing the dimensionality interpretation that the buffer should have.

-
-
-
-

type

-
TfLiteType TfLiteEvalTensor::type
-
-

The data type specification for data stored in data.

-

This affects what member of data union should be used.

-
-
- - diff --git a/site/en/lite/api_docs/c/struct/tf-lite-external-context.html b/site/en/lite/api_docs/c/struct/tf-lite-external-context.html deleted file mode 100644 index b1aa8c0f1d..0000000000 --- a/site/en/lite/api_docs/c/struct/tf-lite-external-context.html +++ /dev/null @@ -1,53 +0,0 @@ - - - - TfLiteExternalContext Struct Reference - - - -
-

TfLiteExternalContext

- #include <common.h> -

An external context is a collection of information unrelated to the TF Lite framework, but useful to a subset of the ops.

-

Summary

-

TF Lite knows very little about the actual contexts, but it keeps a list of them, and is able to refresh them if configurations like the number of recommended threads change.

- - - - - - - - - - - - -
-

Public attributes

-
- Refresh)(struct TfLiteContext *context) - -
- TfLiteStatus(* -
-
- type - - -
-

Public attributes

-
-

Refresh

-
TfLiteStatus(* TfLiteExternalContext::Refresh)(struct TfLiteContext *context)
-
-
-
-

type

-
TfLiteExternalContextType TfLiteExternalContext::type
-
-
- - diff --git a/site/en/lite/api_docs/c/struct/tf-lite-float-array.html b/site/en/lite/api_docs/c/struct/tf-lite-float-array.html deleted file mode 100644 index 581da01913..0000000000 --- a/site/en/lite/api_docs/c/struct/tf-lite-float-array.html +++ /dev/null @@ -1,52 +0,0 @@ - - - - TfLiteFloatArray Struct Reference - - - -
-

TfLiteFloatArray

- #include <common.h> -

Fixed size list of floats. Used for per-channel quantization.

-

Summary

- - - - - - - - - - - - -
-

Public attributes

-
- data[] - -
- float -
-
- size - -
- int -
-
-

Public attributes

-
-

data

-
float TfLiteFloatArray::data[]
-
-
-
-

size

-
int TfLiteFloatArray::size
-
-
- - diff --git a/site/en/lite/api_docs/c/struct/tf-lite-float16.html b/site/en/lite/api_docs/c/struct/tf-lite-float16.html deleted file mode 100644 index 69849a3b94..0000000000 --- a/site/en/lite/api_docs/c/struct/tf-lite-float16.html +++ /dev/null @@ -1,37 +0,0 @@ - - - - TfLiteFloat16 Struct Reference - - - -
-

TfLiteFloat16

- #include <common.h> -

Half precision data type compatible with the C99 definition.

-

Summary

- - - - - - - - -
-

Public attributes

-
- data - -
- uint16_t -
-
-

Public attributes

-
-

data

-
uint16_t TfLiteFloat16::data
-
-
- - diff --git a/site/en/lite/api_docs/c/struct/tf-lite-int-array.html b/site/en/lite/api_docs/c/struct/tf-lite-int-array.html deleted file mode 100644 index ca8c111851..0000000000 --- a/site/en/lite/api_docs/c/struct/tf-lite-int-array.html +++ /dev/null @@ -1,53 +0,0 @@ - - - - TfLiteIntArray Struct Reference - - - -
-

TfLiteIntArray

- #include <common.h> -

Fixed size list of integers.

-

Summary

-

Used for dimensions and inputs/outputs tensor indices

- - - - - - - - - - - - -
-

Public attributes

-
- data[] - -
- int -
-
- size - -
- int -
-
-

Public attributes

-
-

data

-
int TfLiteIntArray::data[]
-
-
-
-

size

-
int TfLiteIntArray::size
-
-
- - diff --git a/site/en/lite/api_docs/c/struct/tf-lite-node.html b/site/en/lite/api_docs/c/struct/tf-lite-node.html deleted file mode 100644 index 20f1e8a63b..0000000000 --- a/site/en/lite/api_docs/c/struct/tf-lite-node.html +++ /dev/null @@ -1,206 +0,0 @@ - - - - TfLiteNode Struct Reference - - - -
-

TfLiteNode

- #include <common.h> -

A structure representing an instance of a node.

-

Summary

-

This structure only exhibits the inputs, outputs, user defined data and some node properties (like statefulness), not other features like the type.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

Public attributes

-
- builtin_data - -
- void * -
-
Opaque data provided to the node if the node is a builtin.
-
- custom_initial_data - -
- const void * -
-
Custom initial data.
-
- custom_initial_data_size - -
- int -
-
- delegate - -
- struct TfLiteDelegate * -
-
The pointer to the delegate.
-
- inputs - - -
Inputs to this node expressed as indices into the simulator's tensors.
-
- intermediates - - -
intermediate tensors to this node expressed as indices into the simulator's tensors.
-
- might_have_side_effect - -
- bool -
-
Whether this op might have side effect (e.g. stateful op).
-
- outputs - - -
Outputs to this node expressed as indices into the simulator's tensors.
-
- temporaries - - -
Temporary tensors uses during the computations.
-
- user_data - -
- void * -
-
Opaque data provided by the node implementer through Registration.init.
-
-

Public attributes

-
-

builtin_data

-
void * TfLiteNode::builtin_data
-
-

Opaque data provided to the node if the node is a builtin.

-

This is usually a structure defined in builtin_op_data.h

-
-
-
-

custom_initial_data

-
const void * TfLiteNode::custom_initial_data
-
-

Custom initial data.

-

This is the opaque data provided in the flatbuffer.

-

WARNING: This is an experimental interface that is subject to change.

-
-
-
-

custom_initial_data_size

-
int TfLiteNode::custom_initial_data_size
-
-
-
-

delegate

-
struct TfLiteDelegate * TfLiteNode::delegate
-
-

The pointer to the delegate.

-

This is non-null only when the node is created by calling interpreter.ModifyGraphWithDelegate.

-

WARNING: This is an experimental interface that is subject to change.

-
-
-
-

inputs

-
TfLiteIntArray * TfLiteNode::inputs
-
-

Inputs to this node expressed as indices into the simulator's tensors.

-
-
-
-

intermediates

-
TfLiteIntArray * TfLiteNode::intermediates
-
-

intermediate tensors to this node expressed as indices into the simulator's tensors.

-
-
-
-

might_have_side_effect

-
bool TfLiteNode::might_have_side_effect
-
-

Whether this op might have side effect (e.g. stateful op).

-
-
-
-

outputs

-
TfLiteIntArray * TfLiteNode::outputs
-
-

Outputs to this node expressed as indices into the simulator's tensors.

-
-
-
-

temporaries

-
TfLiteIntArray * TfLiteNode::temporaries
-
-

Temporary tensors uses during the computations.

-

This usually contains no tensors, but ops are allowed to change that if they need scratch space of any sort.

-
-
-
-

user_data

-
void * TfLiteNode::user_data
-
-

Opaque data provided by the node implementer through Registration.init.

-
-
- - diff --git a/site/en/lite/api_docs/c/struct/tf-lite-opaque-delegate-builder.html b/site/en/lite/api_docs/c/struct/tf-lite-opaque-delegate-builder.html deleted file mode 100644 index aa167e7323..0000000000 --- a/site/en/lite/api_docs/c/struct/tf-lite-opaque-delegate-builder.html +++ /dev/null @@ -1,138 +0,0 @@ - - - - TfLiteOpaqueDelegateBuilder Struct Reference - - - -
-

TfLiteOpaqueDelegateBuilder

- #include <common.h> -

TfLiteOpaqueDelegateBuilder is used for constructing TfLiteOpaqueDelegate, see TfLiteOpaqueDelegateCreate below.

-

Summary

-

Note: This struct is not ABI stable.

-

For forward source compatibility TfLiteOpaqueDelegateBuilder objects should be brace-initialized, so that all fields (including any that might be added in the future) get zero-initialized. The purpose of each field is exactly the same as with TfLiteDelegate.

-

WARNING: This is an experimental interface that is subject to change.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

Public attributes

-
- CopyFromBufferHandle)(TfLiteOpaqueContext *context, TfLiteOpaqueDelegate *delegate, void *data, TfLiteBufferHandle buffer_handle, TfLiteOpaqueTensor *tensor) - -
- TfLiteStatus(* -
-
Copies the data from delegate buffer handle into raw memory of the given tensor.
-
- CopyToBufferHandle)(TfLiteOpaqueContext *context, TfLiteOpaqueDelegate *delegate, void *data, TfLiteBufferHandle buffer_handle, TfLiteOpaqueTensor *tensor) - -
- TfLiteStatus(* -
-
Copies the data from raw memory of the given tensor to delegate buffer handle.
-
- FreeBufferHandle)(TfLiteOpaqueContext *context, TfLiteOpaqueDelegate *delegate, void *data, TfLiteBufferHandle *handle) - -
- void(* -
-
Frees the Delegate Buffer Handle.
-
- Prepare)(TfLiteOpaqueContext *context, TfLiteOpaqueDelegate *delegate, void *data) - -
- TfLiteStatus(* -
-
Invoked by ModifyGraphWithDelegate.
-
- data - -
- void * -
-
Data that delegate needs to identify itself.
-
- flags - -
- int64_t -
-
Bitmask flags. See the comments in TfLiteDelegateFlags.
-
-

Public attributes

-
-

CopyFromBufferHandle

-
TfLiteStatus(* TfLiteOpaqueDelegateBuilder::CopyFromBufferHandle)(TfLiteOpaqueContext *context, TfLiteOpaqueDelegate *delegate, void *data, TfLiteBufferHandle buffer_handle, TfLiteOpaqueTensor *tensor)
-
-

Copies the data from delegate buffer handle into raw memory of the given tensor.

-

Note that the delegate is allowed to allocate the raw bytes as long as it follows the rules for kTfLiteDynamic tensors, in which case this cannot be null.

-
-
-
-

CopyToBufferHandle

-
TfLiteStatus(* TfLiteOpaqueDelegateBuilder::CopyToBufferHandle)(TfLiteOpaqueContext *context, TfLiteOpaqueDelegate *delegate, void *data, TfLiteBufferHandle buffer_handle, TfLiteOpaqueTensor *tensor)
-
-

Copies the data from raw memory of the given tensor to delegate buffer handle.

-

This can be null if the delegate doesn't use its own buffer.

-
-
-
-

FreeBufferHandle

-
void(* TfLiteOpaqueDelegateBuilder::FreeBufferHandle)(TfLiteOpaqueContext *context, TfLiteOpaqueDelegate *delegate, void *data, TfLiteBufferHandle *handle)
-
-

Frees the Delegate Buffer Handle.

-

Note: This only frees the handle, but this doesn't release the underlying resource (e.g. textures). The resources are either owned by application layer or the delegate. This can be null if the delegate doesn't use its own buffer.

-
-
-
-

Prepare

-
TfLiteStatus(* TfLiteOpaqueDelegateBuilder::Prepare)(TfLiteOpaqueContext *context, TfLiteOpaqueDelegate *delegate, void *data)
-
-

Invoked by ModifyGraphWithDelegate.

-

This prepare is called, giving the delegate a view of the current graph through TfLiteContext*. It typically will look at the nodes and call ReplaceNodeSubsetsWithDelegateKernels() to ask the TensorFlow lite runtime to create macro-nodes to represent delegated subgraphs of the original graph.

-
-
-
-

data

-
void * TfLiteOpaqueDelegateBuilder::data
-
-

Data that delegate needs to identify itself.

-

This data is owned by the delegate. The delegate is owned in the user code, so the delegate is responsible for deallocating this when it is destroyed.

-
-
-
-

flags

-
int64_t TfLiteOpaqueDelegateBuilder::flags
-
-

Bitmask flags. See the comments in TfLiteDelegateFlags.

-
-
- - diff --git a/site/en/lite/api_docs/c/struct/tf-lite-opaque-delegate-params.html b/site/en/lite/api_docs/c/struct/tf-lite-opaque-delegate-params.html deleted file mode 100644 index 323fa78ee0..0000000000 --- a/site/en/lite/api_docs/c/struct/tf-lite-opaque-delegate-params.html +++ /dev/null @@ -1,99 +0,0 @@ - - - - TfLiteOpaqueDelegateParams Struct Reference - - - -
-

TfLiteOpaqueDelegateParams

- #include <common.h> -

WARNING: This is an experimental interface that is subject to change.

-

Summary

-

Currently, TfLiteOpaqueDelegateParams has to be allocated in a way that it's trivially destructable. It will be stored as builtin_data field in TfLiteNode of the delegate node.

-

See also the CreateOpaqueDelegateParams function in subgraph.cc details.

- - - - - - - - - - - - - - - - - - - - - - - - -
-

Public attributes

-
- delegate - - -
- delegate_data - -
- void * -
-
- input_tensors - - -
- nodes_to_replace - - -
- output_tensors - - -
-

Public attributes

-
-

delegate

-
TfLiteOpaqueDelegate * TfLiteOpaqueDelegateParams::delegate
-
-
-
-

delegate_data

-
void * TfLiteOpaqueDelegateParams::delegate_data
-
-
-
-

input_tensors

-
TfLiteIntArray * TfLiteOpaqueDelegateParams::input_tensors
-
-
-
-

nodes_to_replace

-
TfLiteIntArray * TfLiteOpaqueDelegateParams::nodes_to_replace
-
-
-
-

output_tensors

-
TfLiteIntArray * TfLiteOpaqueDelegateParams::output_tensors
-
-
- - diff --git a/site/en/lite/api_docs/c/struct/tf-lite-quantization-params.html b/site/en/lite/api_docs/c/struct/tf-lite-quantization-params.html deleted file mode 100644 index 58cbb79a92..0000000000 --- a/site/en/lite/api_docs/c/struct/tf-lite-quantization-params.html +++ /dev/null @@ -1,53 +0,0 @@ - - - - TfLiteQuantizationParams Struct Reference - - - -
-

TfLiteQuantizationParams

- #include <c_api_types.h> -

Legacy.

-

Summary

-

Will be deprecated in favor of TfLiteAffineQuantization. If per-layer quantization is specified this field will still be populated in addition to TfLiteAffineQuantization. Parameters for asymmetric quantization. Quantized values can be converted back to float using: real_value = scale * (quantized_value - zero_point)

- - - - - - - - - - - - -
-

Public attributes

-
- scale - -
- float -
-
- zero_point - -
- int32_t -
-
-

Public attributes

-
-

scale

-
float TfLiteQuantizationParams::scale
-
-
-
-

zero_point

-
int32_t TfLiteQuantizationParams::zero_point
-
-
- - diff --git a/site/en/lite/api_docs/c/struct/tf-lite-quantization.html b/site/en/lite/api_docs/c/struct/tf-lite-quantization.html deleted file mode 100644 index 5e3bc5dbc2..0000000000 --- a/site/en/lite/api_docs/c/struct/tf-lite-quantization.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - TfLiteQuantization Struct Reference - - - -
-

TfLiteQuantization

- #include <common.h> -

Structure specifying the quantization used by the tensor, if-any.

-

Summary

- - - - - - - - - - - - -
-

Public attributes

-
- params - -
- void * -
-
Holds an optional reference to a quantization param structure.
-
- type - - -
The type of quantization held by params.
-
-

Public attributes

-
-

params

-
void * TfLiteQuantization::params
-
-

Holds an optional reference to a quantization param structure.

-

The actual type depends on the value of the type field (see the comment there for the values and corresponding types).

-
-
-
-

type

-
TfLiteQuantizationType TfLiteQuantization::type
-
-

The type of quantization held by params.

-
-
- - diff --git a/site/en/lite/api_docs/c/struct/tf-lite-registration.html b/site/en/lite/api_docs/c/struct/tf-lite-registration.html deleted file mode 100644 index f8584c9e5b..0000000000 --- a/site/en/lite/api_docs/c/struct/tf-lite-registration.html +++ /dev/null @@ -1,251 +0,0 @@ - - - - TfLiteRegistration Struct Reference - - - -
-

TfLiteRegistration

- #include <common.h> -

TfLiteRegistration defines the implementation of an operation (a built-in op, custom op, or custom delegate kernel).

-

Summary

-

It is a struct containing "methods" (C function pointers) that will be invoked by the TF Lite runtime to evaluate instances of the operation.

-

See also TfLiteRegistrationExternal which is a more ABI-stable equivalent.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

Public attributes

-
- async_kernel)(TfLiteContext *context, TfLiteNode *node) - -
- struct TfLiteAsyncKernel *(* -
-
Retrieves asynchronous kernel.
-
- builtin_code - -
- int32_t -
-
Builtin codes.
-
- custom_name - -
- const char * -
-
Custom op name.
-
- free)(TfLiteContext *context, void *buffer) - -
- void(* -
-
The pointer buffer is the data previously returned by an init invocation.
-
- init)(TfLiteContext *context, const char *buffer, size_t length) - -
- void *(* -
-
Initializes the op from serialized data.
-
- inplace_operator - -
- uint64_t -
-
Indicates if an operator's output may safely overwrite its inputs.
-
- invoke)(TfLiteContext *context, TfLiteNode *node) - -
- TfLiteStatus(* -
-
Execute the node (should read node->inputs and output to node->outputs).
-
- prepare)(TfLiteContext *context, TfLiteNode *node) - -
- TfLiteStatus(* -
-
prepare is called when the inputs this node depends on have been resized.
-
- profiling_string)(const TfLiteContext *context, const TfLiteNode *node) - -
- const char *(* -
-
profiling_string is called during summarization of profiling information in order to group executions together.
-
- registration_external - - -
The external version of TfLiteRegistration.
-
- version - -
- int -
-
The version of the op.
-
-

Public attributes

-
-

async_kernel

-
struct TfLiteAsyncKernel *(* TfLiteRegistration::async_kernel)(TfLiteContext *context, TfLiteNode *node)
-
-

Retrieves asynchronous kernel.

-

If the async_kernel field is nullptr, it means the operation described by this TfLiteRegistration object does not support asynchronous execution. Otherwise, the function that the field points to should only be called for delegate kernel nodes, i.e. node should be a delegate kernel node created by applying a delegate. If the function returns nullptr, that means that the underlying delegate does not support asynchronous execution for this node.

-
-
-
-

builtin_code

-
int32_t TfLiteRegistration::builtin_code
-
-

Builtin codes.

-

If this kernel refers to a builtin this is the code of the builtin. This is so we can do marshaling to other frameworks like NN API.

-

Note: It is the responsibility of the registration binder to set this properly.

-
-
-
-

custom_name

-
const char * TfLiteRegistration::custom_name
-
-

Custom op name.

-

If the op is a builtin, this will be null.

-

Note: It is the responsibility of the registration binder to set this properly.

-

WARNING: This is an experimental interface that is subject to change.

-
-
-
-

free

-
void(* TfLiteRegistration::free)(TfLiteContext *context, void *buffer)
-
-

The pointer buffer is the data previously returned by an init invocation.

-
-
-
-

init

-
void *(* TfLiteRegistration::init)(TfLiteContext *context, const char *buffer, size_t length)
-
-

Initializes the op from serialized data.

-

Called only once for the lifetime of the op, so any one-time allocations should be made here (unless they depend on tensor sizes).

-

-

    -
  • If a built-in op:
      -
    • buffer is the op's params data (TfLiteLSTMParams*).
    • -
    • length is zero.
    • -
  • -
  • If custom op:
      -
    • buffer is the op's custom_options.
    • -
    • length is the size of the buffer.
    • -
  • -
-

-

Returns a type-punned (i.e. void*) opaque data (e.g. a primitive pointer or an instance of a struct).

-

The returned pointer will be stored with the node in the user_data field, accessible within prepare and invoke functions below.

-

NOTE: if the data is already in the desired format, simply implement this function to return nullptr and implement the free function to be a no-op.

-
-
-
-

inplace_operator

-
uint64_t TfLiteRegistration::inplace_operator
-
-

Indicates if an operator's output may safely overwrite its inputs.

-

See the comments in TfLiteInPlaceOp.

-
-
-
-

invoke

-
TfLiteStatus(* TfLiteRegistration::invoke)(TfLiteContext *context, TfLiteNode *node)
-
-

Execute the node (should read node->inputs and output to node->outputs).

-

Returns kTfLiteOk on success.

-
-
-
-

prepare

-
TfLiteStatus(* TfLiteRegistration::prepare)(TfLiteContext *context, TfLiteNode *node)
-
-

prepare is called when the inputs this node depends on have been resized.

-

context->ResizeTensor() can be called to request output tensors to be resized. Can be called multiple times for the lifetime of the op.

-

Returns kTfLiteOk on success.

-
-
-
-

profiling_string

-
const char *(* TfLiteRegistration::profiling_string)(const TfLiteContext *context, const TfLiteNode *node)
-
-

profiling_string is called during summarization of profiling information in order to group executions together.

-

Providing a value here will cause a given op to appear multiple times is the profiling report. This is particularly useful for custom ops that can perform significantly different calculations depending on their user-data.

-
-
-
-

registration_external

-
TfLiteRegistrationExternal * TfLiteRegistration::registration_external
-
-

The external version of TfLiteRegistration.

-

Since we can't use internal types (such as TfLiteContext) for C API to maintain ABI stability. C API user will provide TfLiteRegistrationExternal to implement custom ops. We keep it inside of TfLiteRegistration and use it to route callbacks properly.

-
-
-
-

version

-
int TfLiteRegistration::version
-
-

The version of the op.

-

Note: It is the responsibility of the registration binder to set this properly.

-
-
- - diff --git a/site/en/lite/api_docs/c/struct/tf-lite-sparsity.html b/site/en/lite/api_docs/c/struct/tf-lite-sparsity.html deleted file mode 100644 index 777c22f85a..0000000000 --- a/site/en/lite/api_docs/c/struct/tf-lite-sparsity.html +++ /dev/null @@ -1,83 +0,0 @@ - - - - TfLiteSparsity Struct Reference - - - -
-

TfLiteSparsity

- #include <common.h> -

Parameters used to encode a sparse tensor.

-

Summary

-

For detailed explanation of each field please refer to lite/schema/schema.fbs.

- - - - - - - - - - - - - - - - - - - - -
-

Public attributes

-
- block_map - - -
- dim_metadata - - -
- dim_metadata_size - -
- int -
-
- traversal_order - - -
-

Public attributes

-
-

block_map

-
TfLiteIntArray * TfLiteSparsity::block_map
-
-
-
-

dim_metadata

-
TfLiteDimensionMetadata * TfLiteSparsity::dim_metadata
-
-
-
-

dim_metadata_size

-
int TfLiteSparsity::dim_metadata_size
-
-
-
-

traversal_order

-
TfLiteIntArray * TfLiteSparsity::traversal_order
-
-
- - diff --git a/site/en/lite/api_docs/c/struct/tf-lite-tensor.html b/site/en/lite/api_docs/c/struct/tf-lite-tensor.html deleted file mode 100644 index 7b12e1f38e..0000000000 --- a/site/en/lite/api_docs/c/struct/tf-lite-tensor.html +++ /dev/null @@ -1,305 +0,0 @@ - - - - TfLiteTensor Struct Reference - - - -
-

TfLiteTensor

- #include <common.h> -

A tensor in the interpreter system which is a wrapper around a buffer of data including a dimensionality (or NULL if not currently defined).

-

Summary

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

Public attributes

-
- allocation - -
- const void * -
-
An opaque pointer to a tflite::MMapAllocation.
-
- allocation_type - - -
How memory is mapped kTfLiteMmapRo: Memory mapped read only.
-
- buffer_handle - - -
An integer buffer handle that can be handled by delegate.
-
- bytes - -
- size_t -
-
The number of bytes required to store the data of this Tensor.
-
- data - - -
A union of data pointers.
-
- data_is_stale - -
- bool -
-
If the delegate uses its own buffer (e.g.
-
- delegate - -
- struct TfLiteDelegate * -
-
The delegate which knows how to handle buffer_handle.
-
- dims - - -
A pointer to a structure representing the dimensionality interpretation that the buffer should have.
-
- dims_signature - -
- const TfLiteIntArray * -
-
Optional.
-
- is_variable - -
- bool -
-
True if the tensor is a variable.
-
- name - -
- const char * -
-
Null-terminated name of this tensor.
-
- params - - -
Quantization information.
-
- quantization - - -
Quantization information. Replaces params field above.
-
- sparsity - - -
Parameters used to encode a sparse tensor.
-
- type - - -
The data type specification for data stored in data.
-
-

Public attributes

-
-

allocation

-
const void * TfLiteTensor::allocation
-
-

An opaque pointer to a tflite::MMapAllocation.

-
-
-
-

allocation_type

-
TfLiteAllocationType TfLiteTensor::allocation_type
-
-

How memory is mapped kTfLiteMmapRo: Memory mapped read only.

-

i.e. weights kTfLiteArenaRw: Arena allocated read write memory (i.e. temporaries, outputs).

-
-
-
-

buffer_handle

-
TfLiteBufferHandle TfLiteTensor::buffer_handle
-
-

An integer buffer handle that can be handled by delegate.

-

The value is valid only when delegate is not null.

-

WARNING: This is an experimental interface that is subject to change.

-
-
-
-

bytes

-
size_t TfLiteTensor::bytes
-
-

The number of bytes required to store the data of this Tensor.

-

I.e. (bytes of each element) * dims[0] * ... * dims[n-1]. For example, if type is kTfLiteFloat32 and dims = {3, 2} then bytes = sizeof(float) * 3 * 2 = 4 * 3 * 2 = 24.

-
-
-
-

data

-
TfLitePtrUnion TfLiteTensor::data
-
-

A union of data pointers.

-

The appropriate type should be used for a typed tensor based on type.

-
-
-
-

data_is_stale

-
bool TfLiteTensor::data_is_stale
-
-

If the delegate uses its own buffer (e.g.

-

GPU memory), the delegate is responsible to set data_is_stale to true. delegate->CopyFromBufferHandle can be called to copy the data from delegate buffer.

-

WARNING: This is an experimental interface that is subject to change.

-
-
-
-

delegate

-
struct TfLiteDelegate * TfLiteTensor::delegate
-
-

The delegate which knows how to handle buffer_handle.

-

WARNING: This is an experimental interface that is subject to change.

-
-
-
-

dims

-
TfLiteIntArray * TfLiteTensor::dims
-
-

A pointer to a structure representing the dimensionality interpretation that the buffer should have.

-

NOTE: the product of elements of dims and the element datatype size should be equal to bytes below.

-
-
-
-

dims_signature

-
const TfLiteIntArray * TfLiteTensor::dims_signature
-
-

Optional.

-

Encodes shapes with unknown dimensions with -1. This field is only populated when unknown dimensions exist in a read-write tensor (i.e. an input or output tensor). (e.g. dims contains [1, 1, 1, 3] and dims_signature contains [1, -1, -1, 3]). If no unknown dimensions exist then dims_signature is either null, or set to an empty array. Note that this field only exists when TF_LITE_STATIC_MEMORY is not defined.

-
-
-
-

is_variable

-
bool TfLiteTensor::is_variable
-
-

True if the tensor is a variable.

-
-
-
-

name

-
const char * TfLiteTensor::name
-
-

Null-terminated name of this tensor.

-
-
-
-

params

-
TfLiteQuantizationParams TfLiteTensor::params
-
-

Quantization information.

-
-
-
-

quantization

-
TfLiteQuantization TfLiteTensor::quantization
-
-

Quantization information. Replaces params field above.

-
-
-
-

sparsity

-
TfLiteSparsity * TfLiteTensor::sparsity
-
-

Parameters used to encode a sparse tensor.

-

This is optional. The field is NULL if a tensor is dense.

-

WARNING: This is an experimental interface that is subject to change.

-
-
-
-

type

-
TfLiteType TfLiteTensor::type
-
-

The data type specification for data stored in data.

-

This affects what member of data union should be used.

-
-
- - diff --git a/site/en/lite/api_docs/c/union/tf-lite-ptr-union.html b/site/en/lite/api_docs/c/union/tf-lite-ptr-union.html deleted file mode 100644 index 2b9df3bdbd..0000000000 --- a/site/en/lite/api_docs/c/union/tf-lite-ptr-union.html +++ /dev/null @@ -1,281 +0,0 @@ - - - - TfLitePtrUnion Union Reference - - - -
-

TfLitePtrUnion

- #include <common.h> -

A union of pointers that points to memory for a given tensor.

-

Summary

-

Do not access these members directly, if possible, use GetTensorData(tensor) instead, otherwise only access .data, as other members are deprecated.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

Public attributes

-
- b - -
- bool * -
-
- c128 - - -
- c64 - - -
- data - -
- void * -
-
Only use this member.
-
- f - -
- float * -
-
- f16 - - -
- f64 - -
- double * -
-
- i16 - -
- int16_t * -
-
- i32 - -
- int32_t * -
-
- i64 - -
- int64_t * -
-
- int8 - -
- int8_t * -
-
- raw - -
- char * -
-
- raw_const - -
- const char * -
-
- u32 - -
- uint32_t * -
-
- u64 - -
- uint64_t * -
-
- ui16 - -
- uint16_t * -
-
- uint8 - -
- uint8_t * -
-
-

Public attributes

-
-

b

-
bool * b
-
-
-
-

c128

-
TfLiteComplex128 * c128
-
-
-
-

c64

-
TfLiteComplex64 * c64
-
-
-
-

data

-
void * data
-
-

Only use this member.

-
-
-
-

f

-
float * f
-
-
-
-

f16

-
TfLiteFloat16 * f16
-
-
-
-

f64

-
double * f64
-
-
-
-

i16

-
int16_t * i16
-
-
-
-

i32

-
int32_t * i32
-
-
-
-

i64

-
int64_t * i64
-
-
-
-

int8

-
int8_t * int8
-
-
-
-

raw

-
char * raw
-
-
-
-

raw_const

-
const char * raw_const
-
-
-
-

u32

-
uint32_t * u32
-
-
-
-

u64

-
uint64_t * u64
-
-
-
-

ui16

-
uint16_t * ui16
-
-
-
-

uint8

-
uint8_t * uint8
-
-
- - diff --git a/site/en/lite/api_docs/cc/_doxygen.yaml b/site/en/lite/api_docs/cc/_doxygen.yaml deleted file mode 100644 index 115a8693df..0000000000 --- a/site/en/lite/api_docs/cc/_doxygen.yaml +++ /dev/null @@ -1,49 +0,0 @@ -# Generated by c2devsite (go/c2devsite) -toc: -- title: "tflite" - path: /lite/api_docs/cc/namespace/tflite - section: - - title: Classes - section: - - title: "Allocation" - path: /lite/api_docs/cc/class/tflite/allocation - - title: "ErrorReporter" - path: /lite/api_docs/cc/class/tflite/error-reporter - - title: "FileCopyAllocation" - path: /lite/api_docs/cc/class/tflite/file-copy-allocation - - title: "MemoryAllocation" - path: /lite/api_docs/cc/class/tflite/memory-allocation - - title: "MMAPAllocation" - path: /lite/api_docs/cc/class/tflite/m-m-a-p-allocation - - title: "MutableOpResolver" - path: /lite/api_docs/cc/class/tflite/mutable-op-resolver - - title: "OpResolver" - path: /lite/api_docs/cc/class/tflite/op-resolver - - title: "TfLiteIntArrayView" - path: /lite/api_docs/cc/class/tflite/tf-lite-int-array-view - - title: Structs - section: - - title: "StderrReporter" - path: /lite/api_docs/cc/struct/tflite/stderr-reporter -- title: "tflite::impl" - path: /lite/api_docs/cc/namespace/tflite/impl - section: - - title: Classes - section: - - title: "FlatBufferModel" - path: /lite/api_docs/cc/class/tflite/impl/flat-buffer-model - - title: "Interpreter" - path: /lite/api_docs/cc/class/tflite/impl/interpreter - - title: "InterpreterBuilder" - path: /lite/api_docs/cc/class/tflite/impl/interpreter-builder -- title: "tflite::op_resolver_hasher" - path: /lite/api_docs/cc/namespace/tflite/op-resolver-hasher - section: - - title: Structs - section: - - title: "OperatorKeyHasher" - path: /lite/api_docs/cc/struct/tflite/op-resolver-hasher/operator-key-hasher - - title: "ValueHasher" - path: /lite/api_docs/cc/struct/tflite/op-resolver-hasher/value-hasher - - title: "BuiltinOperator >" - path: /lite/api_docs/cc/struct/tflite/op-resolver-hasher/value-hasher-tflite/builtin-operator- diff --git a/site/en/lite/api_docs/cc/class/tflite/allocation.html b/site/en/lite/api_docs/cc/class/tflite/allocation.html deleted file mode 100644 index 4df23886d8..0000000000 --- a/site/en/lite/api_docs/cc/class/tflite/allocation.html +++ /dev/null @@ -1,158 +0,0 @@ - - - - -tflite::Allocation Class Reference - - -

tflite::Allocation

This is an abstract class.

#include <allocation.h>

A memory allocation handle. This could be a mmap or shared memory.

Summary

Inheritance

Direct Known Subclasses:tflite::FileCopyAllocation, tflite::MemoryAllocation, tflite::MMAPAllocation - - - - - - -
-

Constructors and Destructors

-
-~Allocation() -
-
- - - - - - - -
-

Public types

-
-Type -enum
- - - - - - - -
-

Protected attributes

-
-error_reporter_ - - -
- - - - - - - - - - - - - - - - - - - -
-

Public functions

-
-base() const =0 - -
-virtual const void * -
-
Base pointer of this allocation.
-
-bytes() const =0 - -
-virtual size_t -
-
Size in bytes of the allocation.
-
-type() const - -
-Type -
-
Return the type of the Allocation.
-
-valid() const =0 - -
-virtual bool -
-
Whether the allocation is valid.
-
- - - - - - - -
-

Protected functions

-
-Allocation(ErrorReporter *error_reporter, Type type) - -
- -
-

Public types

-

Type

-
 Type
-
-

Protected attributes

-

error_reporter_

-
ErrorReporter * error_reporter_
-
-

Public functions

-

base

-
virtual const void * base() const =0
-
-

Base pointer of this allocation.

-
-
-

bytes

-
virtual size_t bytes() const =0
-
-

Size in bytes of the allocation.

-
-
-

type

-
Type type() const 
-
-

Return the type of the Allocation.

-
-
-

valid

-
virtual bool valid() const =0
-
-

Whether the allocation is valid.

-
-
-

~Allocation

-
virtual  ~Allocation()
-
-

Protected functions

-

Allocation

-
 Allocation(
-  ErrorReporter *error_reporter,
-  Type type
-)
-
-
- diff --git a/site/en/lite/api_docs/cc/class/tflite/error-reporter.html b/site/en/lite/api_docs/cc/class/tflite/error-reporter.html deleted file mode 100644 index 6d9e58bfa8..0000000000 --- a/site/en/lite/api_docs/cc/class/tflite/error-reporter.html +++ /dev/null @@ -1,95 +0,0 @@ - - - - -tflite::ErrorReporter Class Reference - - -

tflite::ErrorReporter

This is an abstract class.

#include <error_reporter.h>

A functor that reports error to supporting system.

Summary

Invoked similar to printf.

Usage: ErrorReporter foo; foo.Report("test %d", 5); or va_list args; foo.Report("test %d", args); // where args is va_list

Subclass ErrorReporter to provide another reporting destination. For example, if you have a GUI program, you might redirect to a buffer that drives a GUI error log box.

Inheritance

Direct Known Subclasses:tflite::StderrReporter - - - - - - -
-

Constructors and Destructors

-
-~ErrorReporter() -
-
- - - - - - - - - - - - - - - -
-

Public functions

-
-Report(const char *format, va_list args)=0 - -
-virtual int -
-
Converts args to character equivalents according to format string, constructs the error string and report it.
-
-Report(const char *format, ...) - -
-int -
-
Converts arguments to character equivalents according to format string, constructs the error string and report it.
-
-ReportError(void *, const char *format, ...) - -
-int -
-
Equivalent to Report above.
-

Public functions

-

Report

-
virtual int Report(
-  const char *format,
-  va_list args
-)=0
-
-

Converts args to character equivalents according to format string, constructs the error string and report it.

-

Returns number of characters written or zero on success, and negative number on error.

-
-
-

Report

-
int Report(
-  const char *format,
-  ...
-)
-
-

Converts arguments to character equivalents according to format string, constructs the error string and report it.

-

Returns number of characters written or zero on success, and negative number on error.

-
-
-

ReportError

-
int ReportError(
-  void *,
-  const char *format,
-  ...
-)
-
-

Equivalent to Report above.

-

The additional void* parameter is unused. This method is for compatibility with macros that takes TfLiteContext, like TF_LITE_ENSURE and related macros.

-
-
-

~ErrorReporter

-
virtual  ~ErrorReporter()=default
-
-
- diff --git a/site/en/lite/api_docs/cc/class/tflite/file-copy-allocation.html b/site/en/lite/api_docs/cc/class/tflite/file-copy-allocation.html deleted file mode 100644 index e625112b1d..0000000000 --- a/site/en/lite/api_docs/cc/class/tflite/file-copy-allocation.html +++ /dev/null @@ -1,89 +0,0 @@ - - - - -tflite::FileCopyAllocation Class Reference - - -

tflite::FileCopyAllocation

Summary

Inheritance

Inherits from: tflite::Allocation - - - - - - - - - -
-

Constructors and Destructors

-
-FileCopyAllocation(const char *filename, ErrorReporter *error_reporter) -
-
Loads the provided file into a heap memory region.
-
-~FileCopyAllocation() -
-
- - - - - - - - - - - - - - - -
-

Public functions

-
-base() const override - -
-const void * -
-
-bytes() const override - -
-size_t -
-
-valid() const override - -
-bool -
-

Public functions

-

FileCopyAllocation

-
 FileCopyAllocation(
-  const char *filename,
-  ErrorReporter *error_reporter
-)
-
-

Loads the provided file into a heap memory region.

-
-
-

base

-
const void * base() const override
-
-
-

bytes

-
size_t bytes() const override
-
-
-

valid

-
bool valid() const override
-
-
-

~FileCopyAllocation

-
 ~FileCopyAllocation() override
-
-
- diff --git a/site/en/lite/api_docs/cc/class/tflite/impl/flat-buffer-model.html b/site/en/lite/api_docs/cc/class/tflite/impl/flat-buffer-model.html deleted file mode 100644 index 5b41c05fbe..0000000000 --- a/site/en/lite/api_docs/cc/class/tflite/impl/flat-buffer-model.html +++ /dev/null @@ -1,522 +0,0 @@ - - - - -tflite::impl::FlatBufferModel Class Reference - - - -
-

tflite::impl::FlatBufferModel

-

Summary

- - - - - - - - - - - - - -
-

Constructors and Destructors

-
-FlatBufferModel(const FlatBufferModel &) -
-
-~FlatBufferModel() -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

Public static functions

-
-BuildFromAllocation(std::unique_ptr< Allocation > allocation, ErrorReporter *error_reporter) - -
-std::unique_ptr< FlatBufferModel > -
-
Builds a model directly from an allocation.
-
-BuildFromBuffer(const char *caller_owned_buffer, size_t buffer_size, ErrorReporter *error_reporter) - -
-std::unique_ptr< FlatBufferModel > -
-
Builds a model based on a pre-loaded flatbuffer.
-
-BuildFromFile(const char *filename, ErrorReporter *error_reporter) - -
-std::unique_ptr< FlatBufferModel > -
-
Builds a model based on a file.
-
-BuildFromModel(const tflite::Model *caller_owned_model_spec, ErrorReporter *error_reporter) - -
-std::unique_ptr< FlatBufferModel > -
-
Builds a model directly from a flatbuffer pointer Caller retains ownership of the buffer and should keep it alive until the returned object is destroyed.
-
-ByteConvertModel(std::unique_ptr< FlatBufferModel > model, ErrorReporter *error_reporter) - -
-std::unique_ptr< FlatBufferModel > -
-
Convert the TFLite buffers field between LE and BE format in a FlatBufferModel which is not empty and return the converted instance.
-
-ByteSwapBuffer(int8_t tensor_type, size_t buffer_size, uint8_t *buffer) - -
-void -
-
Byte swap a constant buffer in place.
-
-ByteSwapFlatBufferModel(std::unique_ptr< FlatBufferModel > model, ErrorReporter *error_reporter) - -
-std::unique_ptr< FlatBufferModel > -
-
Byte Swap the TFLite buffers field in a FlatBufferModel and return the swapped instance.
-
-ByteSwapSerializedModel(std::string *serialized_model) - -
-void -
-
Byte Swap the serialized String of a TFLite model in place.
-
-ByteSwapTFLiteModel(const tflite::Model *tfl_model) - -
-void -
-
Byte swap the buffers field of a TFLite Model instance in place.
-
-ByteSwapTFLiteModelT(tflite::ModelT *tfl_modelt) - -
-void -
-
Byte swap the buffers field of a TFLite ModelT instance in place.
-
-ReadAllMetadata(const ::tflite::Model *model) - -
-std::map< std::string, std::string > -
-
-VerifyAndBuildFromAllocation(std::unique_ptr< Allocation > allocation, TfLiteVerifier *extra_verifier, ErrorReporter *error_reporter) - -
-std::unique_ptr< FlatBufferModel > -
-
Verifies whether the content of the allocation is legit, then builds a model based on the provided allocation.
-
-VerifyAndBuildFromBuffer(const char *caller_owned_buffer, size_t buffer_size, TfLiteVerifier *extra_verifier, ErrorReporter *error_reporter) - -
-std::unique_ptr< FlatBufferModel > -
-
Verifies whether the content of the buffer is legit, then builds a model based on the pre-loaded flatbuffer.
-
-VerifyAndBuildFromFile(const char *filename, TfLiteVerifier *extra_verifier, ErrorReporter *error_reporter) - -
-std::unique_ptr< FlatBufferModel > -
-
Verifies whether the content of the file is legit, then builds a model based on the file.
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

Public functions

-
-CheckModelIdentifier() const - -
-bool -
-
Returns true if the model identifier is correct (otherwise false and reports an error).
-
-GetMinimumRuntime() const - -
-std::string -
-
-GetModel() const - -
-const tflite::Model * -
-
-ReadAllMetadata() const - -
-std::map< std::string, std::string > -
-
-ValidateModelBuffers(ErrorReporter *error_reporter) - -
-void -
-
-allocation() const - -
-const Allocation * -
-
-error_reporter() const - - -
-initialized() const - -
-bool -
-
-operator->() const - -
-const tflite::Model * -
-
-operator=(const FlatBufferModel &)=delete - -
-FlatBufferModel & -
-
-

Public static functions

-
-

BuildFromAllocation

-
std::unique_ptr< FlatBufferModel > BuildFromAllocation(
-  std::unique_ptr< Allocation > allocation,
-  ErrorReporter *error_reporter
-)
-
-

Builds a model directly from an allocation.

-

Ownership of the allocation is passed to the model, but the caller retains ownership of error_reporter and must ensure its lifetime is longer than the FlatBufferModel instance. Returns a nullptr in case of failure (e.g., the allocation is invalid).

-
-
-
-

BuildFromBuffer

-
std::unique_ptr< FlatBufferModel > BuildFromBuffer(
-  const char *caller_owned_buffer,
-  size_t buffer_size,
-  ErrorReporter *error_reporter
-)
-
-

Builds a model based on a pre-loaded flatbuffer.

-

Caller retains ownership of the buffer and should keep it alive until the returned object is destroyed. Caller also retains ownership of error_reporter and must ensure its lifetime is longer than the FlatBufferModel instance. Returns a nullptr in case of failure. NOTE: this does NOT validate the buffer so it should NOT be called on invalid/untrusted input. Use VerifyAndBuildFromBuffer in that case

-
-
-
-

BuildFromFile

-
std::unique_ptr< FlatBufferModel > BuildFromFile(
-  const char *filename,
-  ErrorReporter *error_reporter
-)
-
-

Builds a model based on a file.

-

Caller retains ownership of error_reporter and must ensure its lifetime is longer than the FlatBufferModel instance. Returns a nullptr in case of failure.

-
-
-
-

BuildFromModel

-
std::unique_ptr< FlatBufferModel > BuildFromModel(
-  const tflite::Model *caller_owned_model_spec,
-  ErrorReporter *error_reporter
-)
-
-

Builds a model directly from a flatbuffer pointer Caller retains ownership of the buffer and should keep it alive until the returned object is destroyed.

-

Caller retains ownership of error_reporter and must ensure its lifetime is longer than the FlatBufferModel instance. Returns a nullptr in case of failure.

-
-
-
-

ByteConvertModel

-
std::unique_ptr< FlatBufferModel > ByteConvertModel(
-  std::unique_ptr< FlatBufferModel > model,
-  ErrorReporter *error_reporter
-)
-
-

Convert the TFLite buffers field between LE and BE format in a FlatBufferModel which is not empty and return the converted instance.

-
-
-
-

ByteSwapBuffer

-
void ByteSwapBuffer(
-  int8_t tensor_type,
-  size_t buffer_size,
-  uint8_t *buffer
-)
-
-

Byte swap a constant buffer in place.

-
-
-
-

ByteSwapFlatBufferModel

-
std::unique_ptr< FlatBufferModel > ByteSwapFlatBufferModel(
-  std::unique_ptr< FlatBufferModel > model,
-  ErrorReporter *error_reporter
-)
-
-

Byte Swap the TFLite buffers field in a FlatBufferModel and return the swapped instance.

-
-
-
-

ByteSwapSerializedModel

-
void ByteSwapSerializedModel(
-  std::string *serialized_model
-)
-
-

Byte Swap the serialized String of a TFLite model in place.

-
-
-
-

ByteSwapTFLiteModel

-
void ByteSwapTFLiteModel(
-  const tflite::Model *tfl_model
-)
-
-

Byte swap the buffers field of a TFLite Model instance in place.

-
-
-
-

ByteSwapTFLiteModelT

-
void ByteSwapTFLiteModelT(
-  tflite::ModelT *tfl_modelt
-)
-
-

Byte swap the buffers field of a TFLite ModelT instance in place.

-
-
-
-

ReadAllMetadata

-
std::map< std::string, std::string > ReadAllMetadata(
-  const ::tflite::Model *model
-)
-
-
-
-

VerifyAndBuildFromAllocation

-
std::unique_ptr< FlatBufferModel > VerifyAndBuildFromAllocation(
-  std::unique_ptr< Allocation > allocation,
-  TfLiteVerifier *extra_verifier,
-  ErrorReporter *error_reporter
-)
-
-

Verifies whether the content of the allocation is legit, then builds a model based on the provided allocation.

-

The extra_verifier argument is an additional optional verifier for the buffer. By default, we always check with tflite::VerifyModelBuffer. If extra_verifier is supplied, the buffer is checked against the extra_verifier after the check against tflite::VerifyModelBuilder. Ownership of the allocation is passed to the model, but the caller retains ownership of error_reporter and must ensure its lifetime is longer than the FlatBufferModel instance. Returns a nullptr in case of failure.

-
-
-
-

VerifyAndBuildFromBuffer

-
std::unique_ptr< FlatBufferModel > VerifyAndBuildFromBuffer(
-  const char *caller_owned_buffer,
-  size_t buffer_size,
-  TfLiteVerifier *extra_verifier,
-  ErrorReporter *error_reporter
-)
-
-

Verifies whether the content of the buffer is legit, then builds a model based on the pre-loaded flatbuffer.

-

The extra_verifier argument is an additional optional verifier for the buffer. By default, we always check with tflite::VerifyModelBuffer. If extra_verifier is supplied, the buffer is checked against the extra_verifier after the check against tflite::VerifyModelBuilder. The caller retains ownership of the buffer and should keep it alive until the returned object is destroyed. Caller retains ownership of error_reporter and must ensure its lifetime is longer than the FlatBufferModel instance. Returns a nullptr in case of failure.

-
-
-
-

VerifyAndBuildFromFile

-
std::unique_ptr< FlatBufferModel > VerifyAndBuildFromFile(
-  const char *filename,
-  TfLiteVerifier *extra_verifier,
-  ErrorReporter *error_reporter
-)
-
-

Verifies whether the content of the file is legit, then builds a model based on the file.

-

The extra_verifier argument is an additional optional verifier for the file contents. By default, we always check with tflite::VerifyModelBuffer. If extra_verifier is supplied, the file contents is also checked against the extra_verifier after the check against tflite::VerifyModelBuilder. Caller retains ownership of error_reporter and must ensure its lifetime is longer than the FlatBufferModel instance. Returns a nullptr in case of failure.

-
-
-

Public functions

-
-

CheckModelIdentifier

-
bool CheckModelIdentifier() const 
-
-

Returns true if the model identifier is correct (otherwise false and reports an error).

-
-
-
-

FlatBufferModel

-
 FlatBufferModel(
-  const FlatBufferModel &
-)=delete
-
-
-
-

GetMinimumRuntime

-
std::string GetMinimumRuntime() const 
-
-
-
-

GetModel

-
const tflite::Model * GetModel() const 
-
-
-
-

ReadAllMetadata

-
std::map< std::string, std::string > ReadAllMetadata() const 
-
-
-
-

ValidateModelBuffers

-
void ValidateModelBuffers(
-  ErrorReporter *error_reporter
-)
-
-
-
-

allocation

-
const Allocation * allocation() const 
-
-
-
-

error_reporter

-
ErrorReporter * error_reporter() const 
-
-
-
-

initialized

-
bool initialized() const 
-
-
-
-

operator->

-
const tflite::Model * operator->() const 
-
-
-
-

operator=

-
FlatBufferModel & operator=(
-  const FlatBufferModel &
-)=delete
-
-
-
-

~FlatBufferModel

-
 ~FlatBufferModel()
-
-
- - diff --git a/site/en/lite/api_docs/cc/class/tflite/impl/interpreter-builder.html b/site/en/lite/api_docs/cc/class/tflite/impl/interpreter-builder.html deleted file mode 100644 index 6aa566788e..0000000000 --- a/site/en/lite/api_docs/cc/class/tflite/impl/interpreter-builder.html +++ /dev/null @@ -1,232 +0,0 @@ - - - - -tflite::impl::InterpreterBuilder Class Reference - - - -
-

tflite::impl::InterpreterBuilder

-

Summary

- - - - - - - - - - - - - - - - - - - -
-

Constructors and Destructors

-
-InterpreterBuilder(const FlatBufferModel & model, const OpResolver & op_resolver, const InterpreterOptions *options_experimental) -
-
For this constructor, the ErrorReporter will be extracted from the FlatBufferModel.
-
-InterpreterBuilder(const ::tflite::Model *model, const OpResolver & op_resolver, ErrorReporter *error_reporter, const InterpreterOptions *options_experimental) -
-
Builds an interpreter given only the raw flatbuffer Model object (instead of a FlatBufferModel).
-
-InterpreterBuilder(const InterpreterBuilder &) -
-
-~InterpreterBuilder() -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

Public functions

-
-AddDelegate(TfLiteDelegate *delegate) - -
-void -
-
Any delegates added with AddDelegate will be applied to the Interpreter generated by operator(), in the order that they were added.
-
-AddDelegate(TfLiteOpaqueDelegateStruct *opaque_delegate) - -
-void -
-
-SetNumThreads(int num_threads) - -
-TfLiteStatus -
-
Sets the number of CPU threads to use for the interpreter.
-
-SetTelemetryProfiler(std::unique_ptr< telemetry::TelemetryProfiler > profiler) - -
-void -
-
-operator()(std::unique_ptr< Interpreter > *interpreter) - -
-TfLiteStatus -
-
Builds an interpreter and stores it in *interpreter.
-
-operator()(std::unique_ptr< Interpreter > *interpreter, int num_threads) - -
-TfLiteStatus -
-
Same as above, but also sets the number of CPU threads to use (overriding any previous call to SetNumThreads).
-
-operator=(const InterpreterBuilder &)=delete - - -
-

Public functions

-
-

AddDelegate

-
void AddDelegate(
-  TfLiteDelegate *delegate
-)
-
-

Any delegates added with AddDelegate will be applied to the Interpreter generated by operator(), in the order that they were added.

-

(The delegate parameter passed to AddDelegate should be non-null, otherwise an error will be reported, and the call to AddDelegate will have no other effect.) The lifetime of the delegate must be at least as long as the lifetime of any Interpreter generated by this InterpreterBuilder.

-
-
-
-

AddDelegate

-
void AddDelegate(
-  TfLiteOpaqueDelegateStruct *opaque_delegate
-)
-
-
-
-

InterpreterBuilder

-
 InterpreterBuilder(
-  const FlatBufferModel & model,
-  const OpResolver & op_resolver,
-  const InterpreterOptions *options_experimental
-)
-
-

For this constructor, the ErrorReporter will be extracted from the FlatBufferModel.

-

options object is copied during construction. So caller can release it

-
-
-
-

InterpreterBuilder

-
 InterpreterBuilder(
-  const ::tflite::Model *model,
-  const OpResolver & op_resolver,
-  ErrorReporter *error_reporter,
-  const InterpreterOptions *options_experimental
-)
-
-

Builds an interpreter given only the raw flatbuffer Model object (instead of a FlatBufferModel).

-

Mostly used for testing. If error_reporter is null, then DefaultErrorReporter() is used. options object is copied during construction. So caller can release it

-
-
-
-

InterpreterBuilder

-
 InterpreterBuilder(
-  const InterpreterBuilder &
-)=delete
-
-
-
-

SetNumThreads

-
TfLiteStatus SetNumThreads(
-  int num_threads
-)
-
-

Sets the number of CPU threads to use for the interpreter.

-

Returns kTfLiteOk on success, kTfLiteError on error.

-
-
-
-

SetTelemetryProfiler

-
void SetTelemetryProfiler(
-  std::unique_ptr< telemetry::TelemetryProfiler > profiler
-)
-
-
-
-

operator()

-
TfLiteStatus operator()(
-  std::unique_ptr< Interpreter > *interpreter
-)
-
-

Builds an interpreter and stores it in *interpreter.

-

On success, returns kTfLiteOk and sets *interpreter to a valid Interpreter. On failure, returns an error status and sets *interpreter to nullptr.

-
-
-
-

operator()

-
TfLiteStatus operator()(
-  std::unique_ptr< Interpreter > *interpreter,
-  int num_threads
-)
-
-

Same as above, but also sets the number of CPU threads to use (overriding any previous call to SetNumThreads).

-

Deprecated: use the SetNumThreads method instead.

-
-
-
-

operator=

-
InterpreterBuilder & operator=(
-  const InterpreterBuilder &
-)=delete
-
-
-
-

~InterpreterBuilder

-
 ~InterpreterBuilder()
-
-
- - diff --git a/site/en/lite/api_docs/cc/class/tflite/impl/interpreter.html b/site/en/lite/api_docs/cc/class/tflite/impl/interpreter.html deleted file mode 100644 index a36354f1ea..0000000000 --- a/site/en/lite/api_docs/cc/class/tflite/impl/interpreter.html +++ /dev/null @@ -1,1405 +0,0 @@ - - - - -tflite::impl::Interpreter Class Reference - - - -
-

tflite::impl::Interpreter

-

Summary

- - - - - - - - - - - - - - - - -
-

Constructors and Destructors

-
-Interpreter(ErrorReporter *error_reporter) -
-
-Interpreter(const Interpreter &) -
-
-~Interpreter() -
-
- - - - - - - - -
-

Public types

-
-TfLiteDelegatePtr -using
-std::unique_ptr< TfLiteDelegate, void(*)(TfLiteDelegate *)> -
- - - - - - - - - - - - -
-

Public static attributes

-
-kTensorsCapacityHeadroom = 16 - -
-constexpr int -
-
The capacity headroom of tensors_ vector before calling ops' prepare and invoke function.
-
-kTensorsReservedCapacity = 128 - -
-constexpr int -
-
- - - - - - - - -
-

Friend classes

-
-tflite::impl::InterpreterBuilder - -
-friend class -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

Public functions

-
-AddProfiler(Profiler *profiler) - -
-void -
-
\warning This is an experimental API and subject to change.
-
-AddProfiler(std::unique_ptr< Profiler > profiler) - -
-void -
-
\warning This is an experimental API and subject to change.
-
-AllocateTensors() - -
-TfLiteStatus -
-
Update allocations for all tensors.
-
-ApplyOptions(InterpreterOptions *options) - -
-TfLiteStatus -
-
\warning This is an experimental API and subject to change.
-
-Cancel() - -
-TfLiteStatus -
-
\warning This is an experimental API and subject to change.
-
-EnsureTensorDataIsReadable(int tensor_index) - -
-TfLiteStatus -
-
\warning This is an experimental API and subject to change.
-
-GetAllowFp16PrecisionForFp32() const - -
-bool -
-
\warning Experimental interface, subject to change.
-
-GetAsyncSignatureRunner(const char *signature_key) - -
-async::AsyncSignatureRunner * -
-
\warning Experimental interface, subject to change.
-
-GetBufferHandle(int tensor_index, TfLiteBufferHandle *buffer_handle, TfLiteDelegate **delegate) - -
-TfLiteStatus -
-
\warning This is an experimental API and subject to change.
-
-GetInputName(int index) const - -
-const char * -
-
Return the name of a given input.
-
-GetOutputName(int index) const - -
-const char * -
-
Return the name of a given output.
-
-GetProfiler() - -
-Profiler * -
-
\warning This is an experimental API and subject to change.
-
-GetSignatureRunner(const char *signature_key) - -
-SignatureRunner * -
-
\warning Experimental interface, subject to change.
-
-GetSubgraphIndexFromSignature(const char *signature_key) const - -
-int -
-
\warning Experimental interface, subject to change.
-
-Invoke() - -
-TfLiteStatus -
-
Invoke the interpreter (run the whole graph in dependency order).
-
-ModifyGraphWithDelegate(TfLiteDelegate *delegate) - -
-TfLiteStatus -
-
Allow a delegate to look at the graph and modify the graph to handle parts of the graph themselves.
-
-ModifyGraphWithDelegate(std::unique_ptr< Delegate, Deleter > delegate) - -
-TfLiteStatus -
-
\warning This is an experimental API and subject to change.
-
-ModifyGraphWithDelegate(std::unique_ptr< TfLiteDelegate > delegate)=delete - -
-TfLiteStatus -
-
This overload is never OK.
-
-OpProfilingString(const TfLiteRegistration & op_reg, const TfLiteNode *node) const - -
-const char * -
-
Retrieve an operator's description of its work, for profiling purposes.
-
-ReleaseNonPersistentMemory() - -
-TfLiteStatus -
-
\warning Experimental interface, subject to change.
-
-ResetVariableTensors() - -
-TfLiteStatus -
-
\warning This is an experimental API and subject to change.
-
-ResizeInputTensor(int tensor_index, const std::vector< int > & dims) - -
-TfLiteStatus -
-
Change the dimensionality of a given tensor.
-
-ResizeInputTensorStrict(int tensor_index, const std::vector< int > & dims) - -
-TfLiteStatus -
-
Change the dimensionality of a given tensor.
-
-SetAllowBufferHandleOutput(bool allow_buffer_handle_output) - -
-void -
-
\warning This is an experimental API and subject to change.
-
-SetAllowFp16PrecisionForFp32(bool allow) - -
-void -
-
Allow float16 precision for FP32 calculation when possible.
-
-SetBufferHandle(int tensor_index, TfLiteBufferHandle buffer_handle, TfLiteDelegate *delegate) - -
-TfLiteStatus -
-
\warning This is an experimental API and subject to change.
-
-SetBufferHandle(TfLiteTensor *tensor, TfLiteBufferHandle buffer_handle, TfLiteDelegate *delegate) - -
-TfLiteStatus -
-
\warning This is an experimental API and subject to change.
-
-SetCancellationFunction(void *data, bool(*)(void *) check_cancelled_func) - -
-void -
-
\warning This is an experimental API and subject to change.
-
-SetCustomAllocationForTensor(int tensor_index, const TfLiteCustomAllocation & allocation, int64_t flags) - -
-TfLiteStatus -
-
Assigns (or reassigns) a custom memory allocation for the given tensor.
-
-SetExternalContext(TfLiteExternalContextType type, TfLiteExternalContext *ctx) - -
-void -
-
-SetNumThreads(int num_threads) - -
-TfLiteStatus -
-
Set the number of threads available to the interpreter.
-
-SetProfiler(Profiler *profiler) - -
-void -
-
\warning This is an experimental API and subject to change.
-
-SetProfiler(std::unique_ptr< Profiler > profiler) - -
-void -
-
\warning This is an experimental API and subject to change.
-
-error_reporter() const - - -
\warning Experimental interface, subject to change.
-
-execution_plan() const - -
-const std::vector< int > & -
-
\warning Experimental interface, subject to change.
-
-input_tensor(size_t index) - -
-TfLiteTensor * -
-
Return a mutable pointer to the given input tensor.
-
-input_tensor(size_t index) const - -
-const TfLiteTensor * -
-
Return an immutable pointer to the given input tensor.
-
-input_tensor_by_signature(const char *signature_input_name, const char *signature_key) - -
-TfLiteTensor * -
-
\warning Experimental interface, subject to change.
-
-inputs() const - -
-const std::vector< int > & -
-
Read only access to list of inputs.
-
-node_and_registration(int node_index) const - -
-const std::pair< TfLiteNode, TfLiteRegistration > * -
-
Returns a pointer to an operation and registration data structure if in bounds from the primary subgraph(subgraph_[0]).
-
-node_and_registration(int subgraph_index, int node_index) const - -
-const std::pair< TfLiteNode, TfLiteRegistration > * -
-
Returns a pointer to an operation and registration data structure if in bounds.
-
-nodes_size() const - -
-size_t -
-
Return the number of ops in the model.
-
-operator=(const Interpreter &)=delete - - -
-output_tensor(size_t index) - -
-TfLiteTensor * -
-
Return a mutable pointer to the given output tensor.
-
-output_tensor(size_t index) const - -
-const TfLiteTensor * -
-
Return an immutable pointer to the given output tensor.
-
-output_tensor_by_signature(const char *signature_output_name, const char *signature_key) const - -
-const TfLiteTensor * -
-
\warning Experimental interface, subject to change.
-
-outputs() const - -
-const std::vector< int > & -
-
Read only access to list of outputs.
-
-signature_inputs(const char *signature_key) const - -
-const std::map< std::string, uint32_t > & -
-
\warning Experimental interface, subject to change.
-
-signature_keys() const - -
-std::vector< const std::string * > -
-
\warning Experimental interface, subject to change.
-
-signature_outputs(const char *signature_key) const - -
-const std::map< std::string, uint32_t > & -
-
\warning Experimental interface, subject to change.
-
-tensor(int tensor_index) - -
-TfLiteTensor * -
-
Get a mutable tensor data structure.
-
-tensor(int tensor_index) const - -
-const TfLiteTensor * -
-
Get an immutable tensor data structure.
-
-tensors_size() const - -
-size_t -
-
Return the number of tensors in the model.
-
-typed_input_tensor(int index) - -
-T * -
-
Return a mutable pointer into the data of a given input tensor.
-
-typed_input_tensor(int index) const - -
-const T * -
-
Return an immutable pointer into the data of a given input tensor.
-
-typed_output_tensor(int index) - -
-T * -
-
Return a mutable pointer into the data of a given output tensor.
-
-typed_output_tensor(int index) const - -
-const T * -
-
Return an immutable pointer into the data of a given output tensor.
-
-typed_tensor(int tensor_index) - -
-T * -
-
Perform a checked cast to the appropriate tensor type (mutable pointer version).
-
-typed_tensor(int tensor_index) const - -
-const T * -
-
Perform a checked cast to the appropriate tensor type (immutable pointer version).
-
-variables() const - -
-const std::vector< int > & -
-
Read only access to list of variable tensors.
-
-

Public types

-
-

TfLiteDelegatePtr

-
std::unique_ptr< TfLiteDelegate, void(*)(TfLiteDelegate *)> TfLiteDelegatePtr
-
-
-

Public static attributes

-
-

kTensorsCapacityHeadroom

-
constexpr int kTensorsCapacityHeadroom = 16
-
-

The capacity headroom of tensors_ vector before calling ops' prepare and invoke function.

-

In these functions, it's guaranteed allocating up to kTensorsCapacityHeadroom more tensors won't invalidate pointers to existing tensors.

-
-
-
-

kTensorsReservedCapacity

-
constexpr int kTensorsReservedCapacity = 128
-
-
-

Friend classes

-
-

tflite::impl::InterpreterBuilder

-
friend class tflite::impl::InterpreterBuilder
-
-
-

Public functions

-
-

AddProfiler

-
void AddProfiler(
-  Profiler *profiler
-)
-
-

\warning This is an experimental API and subject to change.

-

\n Adds the profiler to tracing execution. The caller retains ownership of the profiler and must ensure its validity. nullptr profiler will be ignored.

-
-
-
-

AddProfiler

-
void AddProfiler(
-  std::unique_ptr< Profiler > profiler
-)
-
-

\warning This is an experimental API and subject to change.

-

\n Adds the profiler to tracing execution. Transfers ownership of the profiler to the interpreter. nullptr profiler will be ignored.

-
-
-
-

AllocateTensors

-
TfLiteStatus AllocateTensors()
-
-

Update allocations for all tensors.

-

This will redim dependent tensors using the input tensor dimensionality as given. This is relatively expensive. This must be called after the interpreter has been created and before running inference (and accessing tensor buffers), and must be called again if (and only if) an input tensor is resized. Returns status of success or failure. Will fail if any of the ops in the model (other than those which were rewritten by delegates, if any) are not supported by the Interpreter's OpResolver.

-
-
-
-

ApplyOptions

-
TfLiteStatus ApplyOptions(
-  InterpreterOptions *options
-)
-
-

\warning This is an experimental API and subject to change.

-

\n Apply InterpreterOptions which tunes behavior of the interpreter.

-
-
-
-

Cancel

-
TfLiteStatus Cancel()
-
-

\warning This is an experimental API and subject to change.

-

\n Attempts to cancel in flight invocation if any. This will not affect Invokes that happends after the cancellation. Non blocking. Thread safe. Returns kTfLiteError if cancellation is not enabled, otherwise returns kTfLiteOk.

-
-
-
-

EnsureTensorDataIsReadable

-
TfLiteStatus EnsureTensorDataIsReadable(
-  int tensor_index
-)
-
-

\warning This is an experimental API and subject to change.

-

\n Ensure the data in tensor.data is readable. In case delegate is used, it might require to copy the data from delegate buffer to raw memory.

-
-
-
-

GetAllowFp16PrecisionForFp32

-
bool GetAllowFp16PrecisionForFp32() const 
-
-

\warning Experimental interface, subject to change.

-

\n Get the half precision flag.

-
-
-
-

GetAsyncSignatureRunner

-
async::AsyncSignatureRunner * GetAsyncSignatureRunner(
-  const char *signature_key
-)
-
-

\warning Experimental interface, subject to change.

-

\n Returns a pointer to the AsyncSignatureRunner instance to run the part of the graph identified by a SignatureDef. The nullptr is returned if the given signature key is not valid. The async delegate should be applied before calling this function.

-
-
-
-

GetBufferHandle

-
TfLiteStatus GetBufferHandle(
-  int tensor_index,
-  TfLiteBufferHandle *buffer_handle,
-  TfLiteDelegate **delegate
-)
-
-

\warning This is an experimental API and subject to change.

-

\n Get the delegate buffer handle, and the delegate which can process the buffer handle.

-
-
-
-

GetInputName

-
const char * GetInputName(
-  int index
-) const 
-
-

Return the name of a given input.

-

The given index must be between 0 and inputs().size().

-
-
-
-

GetOutputName

-
const char * GetOutputName(
-  int index
-) const 
-
-

Return the name of a given output.

-

The given index must be between 0 and outputs().size().

-
-
-
-

GetProfiler

-
Profiler * GetProfiler()
-
-

\warning This is an experimental API and subject to change.

-

\n Gets the profiler used for op tracing.

-
-
-
-

GetSignatureRunner

-
SignatureRunner * GetSignatureRunner(
-  const char *signature_key
-)
-
-

\warning Experimental interface, subject to change.

-

\n Returns a pointer to the SignatureRunner instance to run the part of the graph identified by a SignatureDef. The nullptr is returned if the given signature key is not valid. If you need to specify delegates, you have to do that before calling this function. This function will additionally apply default delegates. Thus, applying delegates after that might lead to undesirable behaviors. Note, the pointed instance has lifetime same as the Interpreter object and the SignatureRunner class is not thread-safe.

-
-
-
-

GetSubgraphIndexFromSignature

-
int GetSubgraphIndexFromSignature(
-  const char *signature_key
-) const 
-
-

\warning Experimental interface, subject to change.

-

\n Return the subgraph index that corresponds to a SignatureDef, defined by 'signature_key'. If invalid name passed, -1 will be returned.

-
-
-
-

Interpreter

-
 Interpreter(
-  ErrorReporter *error_reporter
-)
-
-
-
-

Interpreter

-
 Interpreter(
-  const Interpreter &
-)=delete
-
-
-
-

Invoke

-
TfLiteStatus Invoke()
-
-

Invoke the interpreter (run the whole graph in dependency order).

-

NOTE: It is possible that the interpreter is not in a ready state to evaluate (i.e. if a ResizeTensor() has been performed without an AllocateTensors(). Returns status of success or failure.

-
-
-
-

ModifyGraphWithDelegate

-
TfLiteStatus ModifyGraphWithDelegate(
-  TfLiteDelegate *delegate
-)
-
-

Allow a delegate to look at the graph and modify the graph to handle parts of the graph themselves.

-

After this is called, the graph may contain new nodes that replace 1 more nodes. 'delegate' must outlive the interpreter. Returns one of the following status codes:

    -
  1. kTfLiteOk: Success.
  2. -
  3. kTfLiteDelegateError: Delegation failed due to an error in the delegate, or the delegate parameter was null. The Interpreter has been restored to its pre-delegation state. NOTE: This undoes all delegates previously applied to the Interpreter.
  4. -
  5. kTfLiteApplicationError : Delegation failed to be applied due to the incompatibility with the TfLite runtime, e.g., the model graph is already immutable when applying the delegate. However, the interpreter could still be invoked.
  6. -
  7. kTfLiteUnresolvedOps: Delegation failed because the model has an operator that cannot be resolved. This can happen when the op is not registered or built with the TF Lite framework.
  8. -
  9. kTfLiteError: Unexpected/runtime failure. \n \warning This is an experimental API and subject to change. \n
  10. -

-
-
-
-

ModifyGraphWithDelegate

-
TfLiteStatus ModifyGraphWithDelegate(
-  std::unique_ptr< Delegate, Deleter > delegate
-)
-
-

\warning This is an experimental API and subject to change.

-

\n Same as ModifyGraphWithDelegate except this interpreter takes ownership of the provided delegate.

-
-
-
-

ModifyGraphWithDelegate

-
TfLiteStatus ModifyGraphWithDelegate(
-  std::unique_ptr< TfLiteDelegate > delegate
-)=delete
-
-

This overload is never OK.

-

TfLiteDelegate is a C structure, so it has no virtual destructor. The default deleter of the unique_ptr does not know how to delete C++ objects deriving from TfLiteDelegate.

-
-
-
-

OpProfilingString

-
const char * OpProfilingString(
-  const TfLiteRegistration & op_reg,
-  const TfLiteNode *node
-) const 
-
-

Retrieve an operator's description of its work, for profiling purposes.

-
-
-
-

ReleaseNonPersistentMemory

-
TfLiteStatus ReleaseNonPersistentMemory()
-
-

\warning Experimental interface, subject to change.

-

\n This releases memory held by non-persistent tensors. It does NOT re-perform memory planning. AllocateTensors needs to be called before next invocation.

-
-
-
-

ResetVariableTensors

-
TfLiteStatus ResetVariableTensors()
-
-

\warning This is an experimental API and subject to change.

-

\n Reset all variable tensors to the default value. If a variable tensor doesn't have a buffer, reset it to zero. TODO(b/115961645): Implement - If a variable tensor has a buffer, reset it to the value of the buffer.

-
-
-
-

ResizeInputTensor

-
TfLiteStatus ResizeInputTensor(
-  int tensor_index,
-  const std::vector< int > & dims
-)
-
-

Change the dimensionality of a given tensor.

-

Note, this is only acceptable for tensor indices that are inputs or variables. Returns status of failure or success. Note that this doesn't actually resize any existing buffers. A call to AllocateTensors() is required to change the tensor input buffer.

-
-
-
-

ResizeInputTensorStrict

-
TfLiteStatus ResizeInputTensorStrict(
-  int tensor_index,
-  const std::vector< int > & dims
-)
-
-

Change the dimensionality of a given tensor.

-

This is only acceptable for tensor indices that are inputs or variables. Only unknown dimensions can be resized with this function. Unknown dimensions are indicated as -1 in the dims_signature attribute of a TfLiteTensor. Returns status of failure or success. Note that this doesn't actually resize any existing buffers. A call to AllocateTensors() is required to change the tensor input buffer.

-
-
-
-

SetAllowBufferHandleOutput

-
void SetAllowBufferHandleOutput(
-  bool allow_buffer_handle_output
-)
-
-

\warning This is an experimental API and subject to change.

-

\n Set if buffer handle output is allowed.

-

When using hardware delegation, Interpreter will make the data of output tensors available in tensor->data by default. If the application can consume the buffer handle directly (e.g. reading output from OpenGL texture), it can set this flag to false, so Interpreter won't copy the data from buffer handle to CPU memory.

-
-
-
-

SetAllowFp16PrecisionForFp32

-
void SetAllowFp16PrecisionForFp32(
-  bool allow
-)
-
-

Allow float16 precision for FP32 calculation when possible.

-

Default: not allow.

-

WARNING: This API is deprecated: prefer controlling this via delegate options, e.g. `tflite::StatefulNnApiDelegate::Options::allow_fp16' or TfLiteGpuDelegateOptionsV2::is_precision_loss_allowed. This method will be removed in a future release.

-
-
-
-

SetBufferHandle

-
TfLiteStatus SetBufferHandle(
-  int tensor_index,
-  TfLiteBufferHandle buffer_handle,
-  TfLiteDelegate *delegate
-)
-
-

\warning This is an experimental API and subject to change.

-

\n Set the delegate buffer handle to a tensor. It can be called in the following cases:

    -
  1. Set the buffer handle to a tensor that's not being written by a delegate. For example, feeding an OpenGL texture as the input of the inference graph.
  2. -
  3. Set the buffer handle to a tensor that uses the same delegate. For example, set an OpenGL texture as the output of inference, while the node which produces output is an OpenGL delegate node.
  4. -

-
-
-
-

SetBufferHandle

-
TfLiteStatus SetBufferHandle(
-  TfLiteTensor *tensor,
-  TfLiteBufferHandle buffer_handle,
-  TfLiteDelegate *delegate
-)
-
-

\warning This is an experimental API and subject to change.

-

\n Set the delegate buffer handle to the given tensor.

-
-
-
-

SetCancellationFunction

-
void SetCancellationFunction(
-  void *data,
-  bool(*)(void *) check_cancelled_func
-)
-
-

\warning This is an experimental API and subject to change.

-

\n Sets the cancellation function pointer in order to cancel a request in the middle of a call to Invoke(). The interpreter queries this function during inference, between op invocations; when it returns true, the interpreter will abort execution and return kTfLiteError. The data parameter contains any data used by the cancellation function, and if non-null, remains owned by the caller.

-
-
-
-

SetCustomAllocationForTensor

-
TfLiteStatus SetCustomAllocationForTensor(
-  int tensor_index,
-  const TfLiteCustomAllocation & allocation,
-  int64_t flags
-)
-
-

Assigns (or reassigns) a custom memory allocation for the given tensor.

-

flags is a bitmask, see TfLiteCustomAllocationFlags. The runtime does NOT take ownership of the underlying memory.

-

NOTE: User needs to call AllocateTensors() after this. Invalid/insufficient buffers will cause an error during AllocateTensors or Invoke (in case of dynamic shapes in the graph).

-

Parameters should satisfy the following conditions:

    -
  1. tensor->allocation_type == kTfLiteArenaRw or kTfLiteArenaRwPersistent In general, this is true for I/O tensors & variable tensors.
  2. -
  3. allocation->data has the appropriate permissions for runtime access (Read-only for inputs, Read-Write for others), and outlives Interpreter.
  4. -
  5. allocation->bytes >= tensor->bytes. This condition is checked again if any tensors are resized.
  6. -
  7. allocation->data should be aligned to kDefaultTensorAlignment defined in lite/util.h. (Currently 64 bytes) This check is skipped if kTfLiteCustomAllocationFlagsSkipAlignCheck is set through flags. \warning This is an experimental API and subject to change. \n
  8. -

-
-
-
-

SetExternalContext

-
void SetExternalContext(
-  TfLiteExternalContextType type,
-  TfLiteExternalContext *ctx
-)
-
-
-
-

SetNumThreads

-
TfLiteStatus SetNumThreads(
-  int num_threads
-)
-
-

Set the number of threads available to the interpreter.

-

NOTE: num_threads should be >= -1. Setting num_threads to 0 has the effect to disable multithreading, which is equivalent to setting num_threads to 1. If set to the value -1, the number of threads used will be implementation-defined and platform-dependent.

-

As TfLite interpreter could internally apply a TfLite delegate by default (i.e. XNNPACK), the number of threads that are available to the default delegate should be set via InterpreterBuilder APIs as follows:

std::unique_ptr interpreter;
-tflite::InterpreterBuilder builder(tflite model, op resolver);
-builder.SetNumThreads(...)
-ASSERT_EQ(builder(&interpreter), kTfLiteOk);
-

-

WARNING: This API is deprecated: prefer using InterpreterBuilder::SetNumThreads, as documented above.

-
-
-
-

SetProfiler

-
void SetProfiler(
-  Profiler *profiler
-)
-
-

\warning This is an experimental API and subject to change.

-

\n Sets the profiler to tracing execution. The caller retains ownership of the profiler and must ensure its validity. Previously registered profilers will be unregistered. If profiler is nullptr, all previously installed profilers will be removed.

-
-
-
-

SetProfiler

-
void SetProfiler(
-  std::unique_ptr< Profiler > profiler
-)
-
-

\warning This is an experimental API and subject to change.

-

\n Same as SetProfiler except this interpreter takes ownership of the provided profiler. Previously registered profilers will be unregistered. If profiler is nullptr, all previously installed profilers will be removed.

-
-
-
-

error_reporter

-
ErrorReporter * error_reporter() const 
-
-

\warning Experimental interface, subject to change.

-

\n Get the error reporter associated with this interpreter.

-
-
-
-

execution_plan

-
const std::vector< int > & execution_plan() const 
-
-

\warning Experimental interface, subject to change.

-
-
-
-

input_tensor

-
TfLiteTensor * input_tensor(
-  size_t index
-)
-
-

Return a mutable pointer to the given input tensor.

-

The given index must be between 0 and inputs().size().

-
-
-
-

input_tensor

-
const TfLiteTensor * input_tensor(
-  size_t index
-) const 
-
-

Return an immutable pointer to the given input tensor.

-

The given index must be between 0 and inputs().size().

-
-
-
-

input_tensor_by_signature

-
TfLiteTensor * input_tensor_by_signature(
-  const char *signature_input_name,
-  const char *signature_key
-)
-
-

\warning Experimental interface, subject to change.

-

\n Returns the input tensor identified by 'signature_input_name' in the signature identified by 'signature_key'. Returns nullptr if not found.

-
-
-
-

inputs

-
const std::vector< int > & inputs() const 
-
-

Read only access to list of inputs.

-
-
-
-

node_and_registration

-
const std::pair< TfLiteNode, TfLiteRegistration > * node_and_registration(
-  int node_index
-) const 
-
-

Returns a pointer to an operation and registration data structure if in bounds from the primary subgraph(subgraph_[0]).

-
-
-
-

node_and_registration

-
const std::pair< TfLiteNode, TfLiteRegistration > * node_and_registration(
-  int subgraph_index,
-  int node_index
-) const 
-
-

Returns a pointer to an operation and registration data structure if in bounds.

-
-
-
-

nodes_size

-
size_t nodes_size() const 
-
-

Return the number of ops in the model.

-
-
-
-

operator=

-
Interpreter & operator=(
-  const Interpreter &
-)=delete
-
-
-
-

output_tensor

-
TfLiteTensor * output_tensor(
-  size_t index
-)
-
-

Return a mutable pointer to the given output tensor.

-

The given index must be between 0 and outputs().size().

-
-
-
-

output_tensor

-
const TfLiteTensor * output_tensor(
-  size_t index
-) const 
-
-

Return an immutable pointer to the given output tensor.

-

The given index must be between 0 and outputs().size().

-
-
-
-

output_tensor_by_signature

-
const TfLiteTensor * output_tensor_by_signature(
-  const char *signature_output_name,
-  const char *signature_key
-) const 
-
-

\warning Experimental interface, subject to change.

-

\n Returns the output tensor identified by 'signature_output_name' in the signature identified by 'signature_key'. Returns nullptr if not found.

-
-
-
-

outputs

-
const std::vector< int > & outputs() const 
-
-

Read only access to list of outputs.

-
-
-
-

signature_inputs

-
const std::map< std::string, uint32_t > & signature_inputs(
-  const char *signature_key
-) const 
-
-

\warning Experimental interface, subject to change.

-

\n Returns the mapping of inputs to tensor index in the signature specified through 'signature_key'. If invalid name passed, an empty list will be returned.

-
-
-
-

signature_keys

-
std::vector< const std::string * > signature_keys() const 
-
-

\warning Experimental interface, subject to change.

-

\n Returns list of all keys of different method signatures defined in the model. Note, pointers returned have lifetime same as the Interpreter object.

-
-
-
-

signature_outputs

-
const std::map< std::string, uint32_t > & signature_outputs(
-  const char *signature_key
-) const 
-
-

\warning Experimental interface, subject to change.

-

\n Returns the mapping of outputs to tensor index in the signature specified through 'signature_key'. If invalid name passed, an empty list will be returned.

-
-
-
-

tensor

-
TfLiteTensor * tensor(
-  int tensor_index
-)
-
-

Get a mutable tensor data structure.

-
-
-
-

tensor

-
const TfLiteTensor * tensor(
-  int tensor_index
-) const 
-
-

Get an immutable tensor data structure.

-
-
-
-

tensors_size

-
size_t tensors_size() const 
-
-

Return the number of tensors in the model.

-
-
-
-

typed_input_tensor

-
T * typed_input_tensor(
-  int index
-)
-
-

Return a mutable pointer into the data of a given input tensor.

-

The given index must be between 0 and inputs().size().

-
-
-
-

typed_input_tensor

-
const T * typed_input_tensor(
-  int index
-) const 
-
-

Return an immutable pointer into the data of a given input tensor.

-

The given index must be between 0 and inputs().size().

-
-
-
-

typed_output_tensor

-
T * typed_output_tensor(
-  int index
-)
-
-

Return a mutable pointer into the data of a given output tensor.

-

The given index must be between 0 and outputs().size().

-
-
-
-

typed_output_tensor

-
const T * typed_output_tensor(
-  int index
-) const 
-
-

Return an immutable pointer into the data of a given output tensor.

-

The given index must be between 0 and outputs().size().

-
-
-
-

typed_tensor

-
T * typed_tensor(
-  int tensor_index
-)
-
-

Perform a checked cast to the appropriate tensor type (mutable pointer version).

-
-
-
-

typed_tensor

-
const T * typed_tensor(
-  int tensor_index
-) const 
-
-

Perform a checked cast to the appropriate tensor type (immutable pointer version).

-
-
-
-

variables

-
const std::vector< int > & variables() const 
-
-

Read only access to list of variable tensors.

-
-
-
-

~Interpreter

-
 ~Interpreter()
-
-
- - diff --git a/site/en/lite/api_docs/cc/class/tflite/m-m-a-p-allocation.html b/site/en/lite/api_docs/cc/class/tflite/m-m-a-p-allocation.html deleted file mode 100644 index ad1e1c8be3..0000000000 --- a/site/en/lite/api_docs/cc/class/tflite/m-m-a-p-allocation.html +++ /dev/null @@ -1,286 +0,0 @@ - - - - -tflite::MMAPAllocation Class Reference - - -

tflite::MMAPAllocation

#include <allocation.h>

Note that not all platforms support MMAP-based allocation.

Summary

Use IsSupported() to check.

Inheritance

Inherits from: tflite::Allocation - - - - - - - - - - - - - - - -
-

Constructors and Destructors

-
-MMAPAllocation(const char *filename, ErrorReporter *error_reporter) -
-
Loads and maps the provided file to a memory region.
-
-MMAPAllocation(int fd, ErrorReporter *error_reporter) -
-
Maps the provided file descriptor to a memory region.
-
-MMAPAllocation(int fd, size_t offset, size_t length, ErrorReporter *error_reporter) -
-
Maps the provided file descriptor, with the given offset and length (both in bytes), to a memory region.
-
-~MMAPAllocation() -
-
- - - - - - - - - - - - - - - - - - - - - - - -
-

Protected attributes

-
-buffer_size_bytes_ = 0 - -
-size_t -
-
-mmap_fd_ = -1 - -
-int -
-
-mmapped_buffer_ - -
-const void * -
-
-offset_in_buffer_ = 0 - -
-size_t -
-
-offset_of_buffer_in_file_ = 0 - -
-size_t -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

Public functions

-
-base() const override - -
-virtual const void * -
-
Base pointer of this allocation.
-
-bytes() const override - -
-virtual size_t -
-
Size in bytes of the allocation.
-
-fd() const - -
-int -
-
-mmapped_buffer() const - -
-const void * -
-
-mmapped_buffer_offset_in_file() const - -
-size_t -
-
-mmapped_buffer_size() const - -
-size_t -
-
-valid() const override - -
-virtual bool -
-
Whether the allocation is valid.
-
- - - - - - - -
-

Public static functions

-
-IsSupported() - -
-bool -
-

Protected attributes

-

buffer_size_bytes_

-
size_t buffer_size_bytes_ = 0
-
-
-

mmap_fd_

-
int mmap_fd_ = -1
-
-
-

mmapped_buffer_

-
const void * mmapped_buffer_
-
-
-

offset_in_buffer_

-
size_t offset_in_buffer_ = 0
-
-
-

offset_of_buffer_in_file_

-
size_t offset_of_buffer_in_file_ = 0
-
-

Public functions

-

MMAPAllocation

-
 MMAPAllocation(
-  const char *filename,
-  ErrorReporter *error_reporter
-)
-
-

Loads and maps the provided file to a memory region.

-
-
-

MMAPAllocation

-
 MMAPAllocation(
-  int fd,
-  ErrorReporter *error_reporter
-)
-
-

Maps the provided file descriptor to a memory region.

-

Note: The provided file descriptor will be dup'ed for usage; the caller retains ownership of the provided descriptor and should close accordingly.

-
-
-

MMAPAllocation

-
 MMAPAllocation(
-  int fd,
-  size_t offset,
-  size_t length,
-  ErrorReporter *error_reporter
-)
-
-

Maps the provided file descriptor, with the given offset and length (both in bytes), to a memory region.

-

Note: The provided file descriptor will be dup'ed for usage; the caller retains ownership of the provided descriptor and should close accordingly.

-
-
-

base

-
virtual const void * base() const override
-
-

Base pointer of this allocation.

-
-
-

bytes

-
virtual size_t bytes() const override
-
-

Size in bytes of the allocation.

-
-
-

fd

-
int fd() const 
-
-
-

mmapped_buffer

-
const void * mmapped_buffer() const 
-
-
-

mmapped_buffer_offset_in_file

-
size_t mmapped_buffer_offset_in_file() const 
-
-
-

mmapped_buffer_size

-
size_t mmapped_buffer_size() const 
-
-
-

valid

-
virtual bool valid() const override
-
-

Whether the allocation is valid.

-
-
-

~MMAPAllocation

-
 ~MMAPAllocation() override
-
-

Public static functions

-

IsSupported

-
bool IsSupported()
-
-
- diff --git a/site/en/lite/api_docs/cc/class/tflite/memory-allocation.html b/site/en/lite/api_docs/cc/class/tflite/memory-allocation.html deleted file mode 100644 index a0e8438707..0000000000 --- a/site/en/lite/api_docs/cc/class/tflite/memory-allocation.html +++ /dev/null @@ -1,91 +0,0 @@ - - - - -tflite::MemoryAllocation Class Reference - - -

tflite::MemoryAllocation

Summary

Inheritance

Inherits from: tflite::Allocation - - - - - - - - - -
-

Constructors and Destructors

-
-MemoryAllocation(const void *ptr, size_t num_bytes, ErrorReporter *error_reporter) -
-
Provides a (read-only) view of the provided buffer region as an allocation.
-
-~MemoryAllocation() -
-
- - - - - - - - - - - - - - - -
-

Public functions

-
-base() const override - -
-const void * -
-
-bytes() const override - -
-size_t -
-
-valid() const override - -
-bool -
-

Public functions

-

MemoryAllocation

-
 MemoryAllocation(
-  const void *ptr,
-  size_t num_bytes,
-  ErrorReporter *error_reporter
-)
-
-

Provides a (read-only) view of the provided buffer region as an allocation.

-

Note: The caller retains ownership of ptr, and must ensure it remains valid for the lifetime of the class instance.

-
-
-

base

-
const void * base() const override
-
-
-

bytes

-
size_t bytes() const override
-
-
-

valid

-
bool valid() const override
-
-
-

~MemoryAllocation

-
 ~MemoryAllocation() override
-
-
- diff --git a/site/en/lite/api_docs/cc/class/tflite/mutable-op-resolver.html b/site/en/lite/api_docs/cc/class/tflite/mutable-op-resolver.html deleted file mode 100644 index a51dc532ae..0000000000 --- a/site/en/lite/api_docs/cc/class/tflite/mutable-op-resolver.html +++ /dev/null @@ -1,279 +0,0 @@ - - - - -tflite::MutableOpResolver Class Reference - - -

tflite::MutableOpResolver

#include <mutable_op_resolver.h>

An OpResolver that is mutable, also used as the op in gen_op_registration.

Summary

A typical usage: MutableOpResolver resolver; resolver.AddBuiltin(BuiltinOperator_ADD, Register_ADD()); resolver.AddCustom("CustomOp", Register_CUSTOM_OP()); InterpreterBuilder(model, resolver)(&interpreter);

Inheritance

Inherits from: tflite::OpResolver - - - - - - - - - - - - - - - -
-

Protected attributes

-
-delegate_creators_ - -
-TfLiteDelegateCreators -
-
A vector of delegate creators to create optional delegates for resolving and handling ops in the flatbuffer model.
-
-may_directly_contain_user_defined_ops_ = false - -
-bool -
-
True if this OpResolver itself (as opposed to chained op resolvers registed with ChainOpResolver) may contain user defined ops.
-
-opaque_delegate_creators_ - -
-TfLiteOpaqueDelegateCreators -
-
A vector of opaque delegate creators to create optional opaque delegates for resolving and handling ops in the flatbuffer model.
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

Public functions

-
-AddAll(const MutableOpResolver & other) - -
-void -
-
Registers all operator versions supported by another MutableOpResolver.
-
-AddBuiltin(tflite::BuiltinOperator op, const TfLiteRegistration *registration, int version) - -
-void -
-
Registers the specified version of the specified builtin operator op.
-
-AddBuiltin(tflite::BuiltinOperator op, const TfLiteRegistration *registration, int min_version, int max_version) - -
-void -
-
Registers the specified version range (versions min_version to max_version, inclusive) of the specified builtin operator op.
-
-AddCustom(const char *name, const TfLiteRegistration *registration, int version) - -
-void -
-
Registers the specified version of the specified builtin operator op.
-
-AddCustom(const char *name, const TfLiteRegistration *registration, int min_version, int max_version) - -
-void -
-
Registers the specified version range (versions min_version to max_version, inclusive) of the specified custom operator name.
-
-FindOp(tflite::BuiltinOperator op, int version) const override - -
-virtual const TfLiteRegistration * -
-
Finds the op registration for a builtin operator by enum code.
-
-FindOp(const char *op, int version) const override - -
-virtual const TfLiteRegistration * -
-
Finds the op registration of a custom operator by op name.
-
-GetDelegateCreators() const final - -
-virtual OpResolver::TfLiteDelegateCreators -
-
-GetOpaqueDelegateCreators() const final - -
-virtual OpResolver::TfLiteOpaqueDelegateCreators -
-
- - - - - - - -
-

Protected functions

-
-ChainOpResolver(const OpResolver *other) - -
-void -
-
Registers all operator versions supported by another OpResolver, except any already registered in this MutableOpResolver.
-

Protected attributes

-

delegate_creators_

-
TfLiteDelegateCreators delegate_creators_
-
-

A vector of delegate creators to create optional delegates for resolving and handling ops in the flatbuffer model.

-

This may be used in addition to the standard TfLiteRegistration lookup for graph resolution.

-
-
-

may_directly_contain_user_defined_ops_

-
bool may_directly_contain_user_defined_ops_ = false
-
-

True if this OpResolver itself (as opposed to chained op resolvers registed with ChainOpResolver) may contain user defined ops.

-

By "user defined" ops, we mean any op definitions other than those contained in tflite::ops::builtin::BuiltinOpResolver.

-
-
-

opaque_delegate_creators_

-
TfLiteOpaqueDelegateCreators opaque_delegate_creators_
-
-

A vector of opaque delegate creators to create optional opaque delegates for resolving and handling ops in the flatbuffer model.

-

This may be used in addition to the standard TfLiteRegistration lookup for graph resolution. This is used for TF Lite in Google Play Services.

-
-

Public functions

-

AddAll

-
void AddAll(
-  const MutableOpResolver & other
-)
-
-

Registers all operator versions supported by another MutableOpResolver.

-

Replaces any previous registrations for the same operator versions, except that registrations made with AddBuiltin or AddCustom always take precedence over registrations made with ChainOpResolver.

-
-
-

AddBuiltin

-
void AddBuiltin(
-  tflite::BuiltinOperator op,
-  const TfLiteRegistration *registration,
-  int version
-)
-
-

Registers the specified version of the specified builtin operator op.

-

Replaces any previous registration for the same operator version.

-
-
-

AddBuiltin

-
void AddBuiltin(
-  tflite::BuiltinOperator op,
-  const TfLiteRegistration *registration,
-  int min_version,
-  int max_version
-)
-
-

Registers the specified version range (versions min_version to max_version, inclusive) of the specified builtin operator op.

-

Replaces any previous registration for the same operator version.

-
-
-

AddCustom

-
void AddCustom(
-  const char *name,
-  const TfLiteRegistration *registration,
-  int version
-)
-
-

Registers the specified version of the specified builtin operator op.

-

Replaces any previous registration for the same operator version.

-
-
-

AddCustom

-
void AddCustom(
-  const char *name,
-  const TfLiteRegistration *registration,
-  int min_version,
-  int max_version
-)
-
-

Registers the specified version range (versions min_version to max_version, inclusive) of the specified custom operator name.

-

Replaces any previous registration for the same operator version.

-
-
-

FindOp

-
virtual const TfLiteRegistration * FindOp(
-  tflite::BuiltinOperator op,
-  int version
-) const override
-
-

Finds the op registration for a builtin operator by enum code.

-
-
-

FindOp

-
virtual const TfLiteRegistration * FindOp(
-  const char *op,
-  int version
-) const override
-
-

Finds the op registration of a custom operator by op name.

-
-
-

GetDelegateCreators

-
virtual OpResolver::TfLiteDelegateCreators GetDelegateCreators() const final
-
-
-

GetOpaqueDelegateCreators

-
virtual OpResolver::TfLiteOpaqueDelegateCreators GetOpaqueDelegateCreators() const final
-
-

Protected functions

-

ChainOpResolver

-
void ChainOpResolver(
-  const OpResolver *other
-)
-
-

Registers all operator versions supported by another OpResolver, except any already registered in this MutableOpResolver.

-

other must point to an OpResolver whose lifetime is at least as long as the lifetime of the MutableOpResolver pointed to by this. The OpResolver pointed to by other should not be modified during the lifetime of this MutableOpResolver.

-
-
- diff --git a/site/en/lite/api_docs/cc/class/tflite/op-resolver.html b/site/en/lite/api_docs/cc/class/tflite/op-resolver.html deleted file mode 100644 index 25f35a2af2..0000000000 --- a/site/en/lite/api_docs/cc/class/tflite/op-resolver.html +++ /dev/null @@ -1,193 +0,0 @@ - - - - -tflite::OpResolver Class Reference - - -

tflite::OpResolver

This is an abstract class.

#include <op_resolver.h>

Abstract interface that returns TfLiteRegistrations given op codes or custom op names.

Summary

This is the mechanism that ops being referenced in the flatbuffer model are mapped to executable function pointers (TfLiteRegistrations).

Inheritance

Direct Known Subclasses:tflite::MutableOpResolver - - - - - - -
-

Constructors and Destructors

-
-~OpResolver() -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

Public types

-
-TfLiteDelegateCreator -using
-std::function< std::unique_ptr< TfLiteDelegate, void(*)(TfLiteDelegate *)>(TfLiteContext *)> -
-TfLiteDelegateCreators -using
-std::vector< TfLiteDelegateCreator > -
-TfLiteDelegatePtrVector -using
-std::vector< std::unique_ptr< TfLiteDelegate, void(*)(TfLiteDelegate *)>> -
-TfLiteOpaqueDelegateCreator -using
-std::function< TfLiteOpaqueDelegatePtr(int)> -
-TfLiteOpaqueDelegateCreators -using
-std::vector< TfLiteOpaqueDelegateCreator > -
-TfLiteOpaqueDelegatePtr -using
-std::unique_ptr< TfLiteOpaqueDelegate, void(*)(TfLiteOpaqueDelegate *)> -
- - - - - - - - - - - - - - - - - - - - - - - -
-

Public functions

-
-FindOp(tflite::BuiltinOperator op, int version) const =0 - -
-virtual const TfLiteRegistration * -
-
Finds the op registration for a builtin operator by enum code.
-
-FindOp(const char *op, int version) const =0 - -
-virtual const TfLiteRegistration * -
-
Finds the op registration of a custom operator by op name.
-
-GetDelegateCreators() const - -
-virtual TfLiteDelegateCreators -
-
-GetDelegates(int num_threads) const - -
-virtual TfLiteDelegatePtrVector -
-
-GetOpaqueDelegateCreators() const - -
-virtual TfLiteOpaqueDelegateCreators -
-

Public types

-

TfLiteDelegateCreator

-
std::function< std::unique_ptr< TfLiteDelegate, void(*)(TfLiteDelegate *)>(TfLiteContext *)> TfLiteDelegateCreator
-
-
-

TfLiteDelegateCreators

-
std::vector< TfLiteDelegateCreator > TfLiteDelegateCreators
-
-
-

TfLiteDelegatePtrVector

-
std::vector< std::unique_ptr< TfLiteDelegate, void(*)(TfLiteDelegate *)>> TfLiteDelegatePtrVector
-
-
-

TfLiteOpaqueDelegateCreator

-
std::function< TfLiteOpaqueDelegatePtr(int)> TfLiteOpaqueDelegateCreator
-
-
-

TfLiteOpaqueDelegateCreators

-
std::vector< TfLiteOpaqueDelegateCreator > TfLiteOpaqueDelegateCreators
-
-
-

TfLiteOpaqueDelegatePtr

-
std::unique_ptr< TfLiteOpaqueDelegate, void(*)(TfLiteOpaqueDelegate *)> TfLiteOpaqueDelegatePtr
-
-

Public functions

-

FindOp

-
virtual const TfLiteRegistration * FindOp(
-  tflite::BuiltinOperator op,
-  int version
-) const =0
-
-

Finds the op registration for a builtin operator by enum code.

-
-
-

FindOp

-
virtual const TfLiteRegistration * FindOp(
-  const char *op,
-  int version
-) const =0
-
-

Finds the op registration of a custom operator by op name.

-
-
-

GetDelegateCreators

-
virtual TfLiteDelegateCreators GetDelegateCreators() const 
-
-
-

GetDelegates

-
virtual TfLiteDelegatePtrVector GetDelegates(
-  int num_threads
-) const 
-
-
-

GetOpaqueDelegateCreators

-
virtual TfLiteOpaqueDelegateCreators GetOpaqueDelegateCreators() const 
-
-
-

~OpResolver

-
virtual  ~OpResolver()
-
-
- diff --git a/site/en/lite/api_docs/cc/class/tflite/tf-lite-int-array-view.html b/site/en/lite/api_docs/cc/class/tflite/tf-lite-int-array-view.html deleted file mode 100644 index 3b64793592..0000000000 --- a/site/en/lite/api_docs/cc/class/tflite/tf-lite-int-array-view.html +++ /dev/null @@ -1,160 +0,0 @@ - - - - -tflite::TfLiteIntArrayView Class Reference - - - -
-

tflite::TfLiteIntArrayView

-#include <context_util.h> -

Provides a range iterable wrapper for TfLiteIntArray* (C lists) that TfLite C api uses.

-

Summary

- - - - - - - - - - -
-

Constructors and Destructors

-
-TfLiteIntArrayView(const TfLiteIntArray *int_array) -
-
Construct a view of a TfLiteIntArray*.
-
-TfLiteIntArrayView(const TfLiteIntArrayView &) -
-
- - - - - - - - -
-

Public types

-
-const_iterator -typedef
-const int * -
- - - - - - - - - - - - - - - - - - - - - - - - -
-

Public functions

-
-begin() const - -
-const_iterator -
-
-end() const - -
-const_iterator -
-
-operator=(const TfLiteIntArrayView & rhs)=default - - -
-operator[](size_t pos) const - -
-int -
-
-size() const - -
-size_t -
-
-

Public types

-
-

const_iterator

-
const int * const_iterator
-
-
-

Public functions

-
-

TfLiteIntArrayView

-
 TfLiteIntArrayView(
-  const TfLiteIntArray *int_array
-)
-
-

Construct a view of a TfLiteIntArray*.

-

Note, int_array should be non-null and this view does not take ownership of it.

-
-
-
-

TfLiteIntArrayView

-
 TfLiteIntArrayView(
-  const TfLiteIntArrayView &
-)=default
-
-
-
-

begin

-
const_iterator begin() const 
-
-
-
-

end

-
const_iterator end() const 
-
-
-
-

operator=

-
TfLiteIntArrayView & operator=(
-  const TfLiteIntArrayView & rhs
-)=default
-
-
-
-

operator[]

-
int operator[](
-  size_t pos
-) const 
-
-
-
-

size

-
size_t size() const 
-
-
- - diff --git a/site/en/lite/api_docs/cc/index.html b/site/en/lite/api_docs/cc/index.html deleted file mode 100644 index 9ddcef9593..0000000000 --- a/site/en/lite/api_docs/cc/index.html +++ /dev/null @@ -1,147 +0,0 @@ - - - - -TensorFlow Lite C++ API Reference - - - -
-

TensorFlow Lite C++ API Reference

-

-tflite -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

Classes

-
-tflite::Allocation -A memory allocation handle. This could be a mmap or shared memory.
-tflite::ErrorReporter -A functor that reports error to supporting system.
-tflite::FileCopyAllocation -
-tflite::MemoryAllocation -
-tflite::MMAPAllocation -Note that not all platforms support MMAP-based allocation.
-tflite::MutableOpResolver -An OpResolver that is mutable, also used as the op in gen_op_registration.
-tflite::OpResolver -Abstract interface that returns TfLiteRegistrations given op codes or custom op names.
-tflite::TfLiteIntArrayView -Provides a range iterable wrapper for TfLiteIntArray* (C lists) that TfLite C api uses.
- - - - - - - - - - -
-

Structs

-
-tflite::StderrReporter -
-

-tflite::impl -

- - - - - - - - - - - - - - - - - - -
-

Classes

-
-tflite::impl::FlatBufferModel -
-tflite::impl::Interpreter -
-tflite::impl::InterpreterBuilder -
-

-tflite::op_resolver_hasher -

- - - - - - - - - - - - - - - - - - -
-

Structs

-
-tflite::op_resolver_hasher::OperatorKeyHasher -
-tflite::op_resolver_hasher::ValueHasher -
-tflite::op_resolver_hasher::ValueHasher< tflite::BuiltinOperator > -
- - diff --git a/site/en/lite/api_docs/cc/namespace/tflite.html b/site/en/lite/api_docs/cc/namespace/tflite.html deleted file mode 100644 index 998ef97c9b..0000000000 --- a/site/en/lite/api_docs/cc/namespace/tflite.html +++ /dev/null @@ -1,254 +0,0 @@ - - - - -tflite Namespace - - - -
-

tflite

-

\file

-

Summary

-

For documentation, see tensorflow/lite/core/interpreter.h.

-

Memory management for TF Lite.

-

This provides a few C++ helpers that are useful for manipulating C structures in C++.

-

Main abstraction controlling the tflite interpreter. Do NOT include this file directly, instead include third_party/tensorflow/lite/interpreter.h See third_party/tensorflow/lite/c/common.h for the API for defining operations (TfLiteRegistration).

-

Provides functionality to construct an interpreter for a model.

-

WARNING: Users of TensorFlow Lite should not include this file directly, but should instead include "third_party/tensorflow/lite/interpreter_builder.h". Only the TensorFlow Lite implementation itself should include this file directly.

-

Deserialization infrastructure for tflite. Provides functionality to go from a serialized tflite model in flatbuffer format to an in-memory representation of the model.

-

WARNING: Users of TensorFlow Lite should not include this file directly, but should instead include "third_party/tensorflow/lite/model_builder.h". Only the TensorFlow Lite implementation itself should include this file directly.

- - - - - - - - - - - - - - - - -
-

Typedefs

-
-FlatBufferModel -using
-impl::FlatBufferModel -
-Interpreter -typedef
-::tflite::impl::Interpreter -
An interpreter for a graph of nodes that input and output from tensors.
-InterpreterBuilder -using
-impl::InterpreterBuilder -
Build an interpreter capable of interpreting model.
- - - - - - - - - - - - -
-

Functions

-
-DefaultErrorReporter() - - -
-GetRegistrationFromOpCode(const OperatorCode *opcode, const OpResolver & op_resolver, ErrorReporter *error_reporter, const TfLiteRegistration **registration) - -
-TfLiteStatus -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

Classes

-
-tflite::Allocation - -

A memory allocation handle. This could be a mmap or shared memory.

-
-tflite::ErrorReporter - -

A functor that reports error to supporting system.

-
-tflite::FileCopyAllocation -
-tflite::MMAPAllocation - -

Note that not all platforms support MMAP-based allocation.

-
-tflite::MemoryAllocation -
-tflite::MutableOpResolver - -

An OpResolver that is mutable, also used as the op in gen_op_registration.

-
-tflite::OpResolver - -

Abstract interface that returns TfLiteRegistrations given op codes or custom op names.

-
-tflite::TfLiteIntArrayView - -

Provides a range iterable wrapper for TfLiteIntArray* (C lists) that TfLite C api uses.

-
- - - - - - - - -
-

Structs

-
-tflite::StderrReporter -
- - - - - - - - - - - - -
-

Namespaces

-
-tflite::impl - -

An RAII object that represents a read-only tflite model, copied from disk, or mmapped.

-
-tflite::op_resolver_hasher -
-

Typedefs

-
-

FlatBufferModel

-
impl::FlatBufferModel FlatBufferModel
-
-
-
-

Interpreter

-
::tflite::impl::Interpreter Interpreter
-
-

An interpreter for a graph of nodes that input and output from tensors.

-

Each node of the graph processes a set of input tensors and produces a set of output Tensors. All inputs/output tensors are referenced by index.

-

Usage:

-

-


-// Create model from file. Note that the model instance must outlive the
-// interpreter instance.
-auto model = tflite::FlatBufferModel::BuildFromFile(...);
-if (model == nullptr) {
-  // Return error.
-}
-// Create an Interpreter with an InterpreterBuilder.
-std::unique_ptr interpreter;
-tflite::ops::builtin::BuiltinOpResolver resolver;
-if (InterpreterBuilder(*model, resolver)(&interpreter) != kTfLiteOk) {
-  // Return failure.
-}
-if (interpreter->AllocateTensors() != kTfLiteOk) {
-  // Return failure.
-}
-

-

-

auto input = interpreter->typed_tensor(0);
-for (int i = 0; i < input_size; i++) {
-  input[i] = ...;  interpreter->Invoke();
-
-

-

Note: For nearly all practical use cases, one should not directly construct an Interpreter object, but rather use the InterpreterBuilder.

-

\warning This class is not thread-safe. The client is responsible for ensuring serialized interaction to avoid data races and undefined behavior.

-
-
-
-

InterpreterBuilder

-
impl::InterpreterBuilder InterpreterBuilder
-
-

Build an interpreter capable of interpreting model.

-

-

    -
  • model: A model whose lifetime must be at least as long as any interpreter(s) created by the builder. In principle multiple interpreters can be made from a single model.
  • -
  • op_resolver: An instance that implements the OpResolver interface, which maps custom op names and builtin op codes to op registrations. The lifetime of the provided op_resolver object must be at least as long as the InterpreterBuilder; unlike model and error_reporter, the op_resolver does not need to exist for the duration of any created Interpreter objects.
  • -
  • error_reporter: a functor that is called to report errors that handles printf var arg semantics. The lifetime of the error_reporter object must be greater than or equal to the Interpreter created by operator().
  • -
  • options_experimental: Options that can change behavior of interpreter. WARNING: this parameter is an experimental API and is subject to change.
  • -
-

-

Returns a kTfLiteOk when successful and sets interpreter to a valid Interpreter. Note: The user must ensure the lifetime of the model (and error reporter, if provided) is at least as long as interpreter's lifetime, and a single model instance may safely be used with multiple interpreters.

-
-
-

Functions

-
-

DefaultErrorReporter

-
ErrorReporter * DefaultErrorReporter()
-
-
-
-

GetRegistrationFromOpCode

-
TfLiteStatus GetRegistrationFromOpCode(
-  const OperatorCode *opcode,
-  const OpResolver & op_resolver,
-  ErrorReporter *error_reporter,
-  const TfLiteRegistration **registration
-)
-
-
- - diff --git a/site/en/lite/api_docs/cc/namespace/tflite/impl.html b/site/en/lite/api_docs/cc/namespace/tflite/impl.html deleted file mode 100644 index 9a3cbd430c..0000000000 --- a/site/en/lite/api_docs/cc/namespace/tflite/impl.html +++ /dev/null @@ -1,57 +0,0 @@ - - - - -tflite::impl Namespace - - - -
-

tflite::impl

-

An RAII object that represents a read-only tflite model, copied from disk, or mmapped.

-

Summary

-

This uses flatbuffers as the serialization format.

-

NOTE: The current API requires that a FlatBufferModel instance be kept alive by the client as long as it is in use by any dependent Interpreter instances. As the FlatBufferModel instance is effectively immutable after creation, the client may safely use a single model with multiple dependent Interpreter instances, even across multiple threads (though note that each Interpreter instance is not thread-safe).

-

-


-using namespace tflite;
-StderrReporter error_reporter;
-auto model = FlatBufferModel::BuildFromFile("interesting_model.tflite",
-                                            &error_reporter);
-MyOpResolver resolver;  // You need to subclass OpResolver to provide
-                        // implementations.
-InterpreterBuilder builder(*model, resolver);
-std::unique_ptr interpreter;
-if(builder(&interpreter) == kTfLiteOk) {
-  .. run model inference with interpreter
-}
-
-

-

OpResolver must be defined to provide your kernel implementations to the interpreter. This is environment specific and may consist of just the builtin ops, or some custom operators you defined to extend tflite.

- - - - - - - - - - - - - - - - -
-

Classes

-
-tflite::impl::FlatBufferModel -
-tflite::impl::Interpreter -
-tflite::impl::InterpreterBuilder -
- - diff --git a/site/en/lite/api_docs/cc/namespace/tflite/op-resolver-hasher.html b/site/en/lite/api_docs/cc/namespace/tflite/op-resolver-hasher.html deleted file mode 100644 index 51301dbaa8..0000000000 --- a/site/en/lite/api_docs/cc/namespace/tflite/op-resolver-hasher.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - -tflite::op_resolver_hasher Namespace - - - -
-

tflite::op_resolver_hasher

-

Summary

- - - - - - - - - - - - - - - - -
-

Structs

-
-tflite::op_resolver_hasher::OperatorKeyHasher -
-tflite::op_resolver_hasher::ValueHasher -
-tflite::op_resolver_hasher::ValueHasher< tflite::BuiltinOperator > -
- - diff --git a/site/en/lite/api_docs/cc/struct/tflite/op-resolver-hasher/operator-key-hasher.html b/site/en/lite/api_docs/cc/struct/tflite/op-resolver-hasher/operator-key-hasher.html deleted file mode 100644 index e088a39c1a..0000000000 --- a/site/en/lite/api_docs/cc/struct/tflite/op-resolver-hasher/operator-key-hasher.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - -tflite::op_resolver_hasher::OperatorKeyHasher Struct Reference - - - -
-

tflite::op_resolver_hasher::OperatorKeyHasher

-

Summary

- - - - - - - - -
-

Public functions

-
-operator()(const T & x) const - -
-size_t -
-
-

Public functions

-
-

operator()

-
size_t tflite::op_resolver_hasher::OperatorKeyHasher::operator()(
-  const T & x
-) const 
-
-
- - diff --git a/site/en/lite/api_docs/cc/struct/tflite/op-resolver-hasher/value-hasher-tflite/builtin-operator-.html b/site/en/lite/api_docs/cc/struct/tflite/op-resolver-hasher/value-hasher-tflite/builtin-operator-.html deleted file mode 100644 index ff19b006f4..0000000000 --- a/site/en/lite/api_docs/cc/struct/tflite/op-resolver-hasher/value-hasher-tflite/builtin-operator-.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - -tflite::op_resolver_hasher::ValueHasher< tflite::BuiltinOperator > Struct Reference - - - -
-

tflite::op_resolver_hasher::ValueHasher< tflite::BuiltinOperator >

-

Summary

- - - - - - - - -
-

Public functions

-
-operator()(const tflite::BuiltinOperator & v) const - -
-size_t -
-
-

Public functions

-
-

operator()

-
size_t tflite::op_resolver_hasher::ValueHasher< tflite::BuiltinOperator >::operator()(
-  const tflite::BuiltinOperator & v
-) const 
-
-
- - diff --git a/site/en/lite/api_docs/cc/struct/tflite/op-resolver-hasher/value-hasher.html b/site/en/lite/api_docs/cc/struct/tflite/op-resolver-hasher/value-hasher.html deleted file mode 100644 index 9d4a11e84a..0000000000 --- a/site/en/lite/api_docs/cc/struct/tflite/op-resolver-hasher/value-hasher.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - -tflite::op_resolver_hasher::ValueHasher Struct Reference - - - -
-

tflite::op_resolver_hasher::ValueHasher

-

Summary

- - - - - - - - -
-

Public functions

-
-operator()(const V & v) const - -
-size_t -
-
-

Public functions

-
-

operator()

-
size_t tflite::op_resolver_hasher::ValueHasher::operator()(
-  const V & v
-) const 
-
-
- - diff --git a/site/en/lite/api_docs/cc/struct/tflite/stderr-reporter.html b/site/en/lite/api_docs/cc/struct/tflite/stderr-reporter.html deleted file mode 100644 index f6450b95c3..0000000000 --- a/site/en/lite/api_docs/cc/struct/tflite/stderr-reporter.html +++ /dev/null @@ -1,32 +0,0 @@ - - - - -tflite::StderrReporter Struct Reference - - -

tflite::StderrReporter

Summary

Inheritance

Inherits from: tflite::ErrorReporter - - - - - - - -
-

Public functions

-
-Report(const char *format, va_list args) override - -
-int -
-

Public functions

-

Report

-
int tflite::StderrReporter::Report(
-  const char *format,
-  va_list args
-) override
-
-
- diff --git a/site/en/lite/api_docs/index.md b/site/en/lite/api_docs/index.md deleted file mode 100644 index b300a368b6..0000000000 --- a/site/en/lite/api_docs/index.md +++ /dev/null @@ -1,16 +0,0 @@ -# TensorFlow Lite API Reference - -The API reference documentation provides detailed information for each of the -classes and methods in the TensorFlow Lite library. Choose your preferred -platform from the list below. - -* [Python API reference](./python/tf/lite) -* [Android (Java) API reference](./java/org/tensorflow/lite/package-summary) -* [Swift API reference](./swift/Classes) -* [C++ API reference](./cc) -* [C API reference](./c) - -We also provide other tools related to TensorFlow Lite. - -* [TensorFlow Lite Model Maker Python API reference](./python/tflite_model_maker) -* [TensorFlow Lite Python Support Library](./python/tflite_support) diff --git a/site/en/lite/api_docs/java/_toc.yaml b/site/en/lite/api_docs/java/_toc.yaml deleted file mode 100644 index d139a93fb7..0000000000 --- a/site/en/lite/api_docs/java/_toc.yaml +++ /dev/null @@ -1,431 +0,0 @@ -toc: -- heading: Core -- title: org.tensorflow.lite - path: /lite/api_docs/java/org/tensorflow/lite/package-summary.html - section: - - title: DataType - path: /lite/api_docs/java/org/tensorflow/lite/DataType.html - - title: Delegate - path: /lite/api_docs/java/org/tensorflow/lite/Delegate.html - - title: DelegateFactory - path: /lite/api_docs/java/org/tensorflow/lite/DelegateFactory.html - - title: Interpreter - path: /lite/api_docs/java/org/tensorflow/lite/Interpreter.html - section: - - title: Options - path: /lite/api_docs/java/org/tensorflow/lite/Interpreter.Options.html - - title: InterpreterApi - path: /lite/api_docs/java/org/tensorflow/lite/InterpreterApi.html - section: - - title: InterpreterApi.Options - path: /lite/api_docs/java/org/tensorflow/lite/InterpreterApi.Options.html - section: - - title: TfLiteRuntime - path: /lite/api_docs/java/org/tensorflow/lite/InterpreterApi.Options.TfLiteRuntime.html - - title: InterpreterFactory - path: /lite/api_docs/java/org/tensorflow/lite/InterpreterFactory.html - - title: RuntimeFlavor - path: /lite/api_docs/java/org/tensorflow/lite/RuntimeFlavor.html - - title: Tensor - path: /lite/api_docs/java/org/tensorflow/lite/Tensor.html - section: - - title: QuantizationParams - path: /lite/api_docs/java/org/tensorflow/lite/Tensor.QuantizationParams.html - - title: TensorFlowLite - path: /lite/api_docs/java/org/tensorflow/lite/TensorFlowLite.html -- heading: acceleration -- title: acceleration - path: /lite/api_docs/java/org/tensorflow/lite/acceleration/package-summary.html - section: - - title: ValidatedAccelerationConfig - path: /lite/api_docs/java/org/tensorflow/lite/acceleration/ValidatedAccelerationConfig.html -- heading: Support Library -- title: support.audio - path: /lite/api_docs/java/org/tensorflow/lite/support/audio/package-summary.html - section: - - title: TensorAudio - path: /lite/api_docs/java/org/tensorflow/lite/support/audio/TensorAudio.html - section: - - title: TensorAudio.TensorAudioFormat - path: /lite/api_docs/java/org/tensorflow/lite/support/audio/TensorAudio.TensorAudioFormat.html - section: - - title: Builder - path: /lite/api_docs/java/org/tensorflow/lite/support/audio/TensorAudio.TensorAudioFormat.Builder.html -- title: support.common - path: /lite/api_docs/java/org/tensorflow/lite/support/common/package-summary.html - section: - - title: FileUtil - path: /lite/api_docs/java/org/tensorflow/lite/support/common/FileUtil.html - - title: Operator - path: /lite/api_docs/java/org/tensorflow/lite/support/common/Operator.html - - title: Processor - path: /lite/api_docs/java/org/tensorflow/lite/support/common/Processor.html - - title: SequentialProcessor - path: /lite/api_docs/java/org/tensorflow/lite/support/common/SequentialProcessor.html - - title: TensorOperator - path: /lite/api_docs/java/org/tensorflow/lite/support/common/TensorOperator.html - - title: TensorProcessor - path: /lite/api_docs/java/org/tensorflow/lite/support/common/TensorProcessor.html - section: - - title: Builder - path: /lite/api_docs/java/org/tensorflow/lite/support/common/TensorProcessor.Builder.html -- title: support.common.ops - path: /lite/api_docs/java/org/tensorflow/lite/support/common/ops/package-summary.html - section: - - title: CastOp - path: /lite/api_docs/java/org/tensorflow/lite/support/common/ops/CastOp.html - - title: DequantizeOp - path: /lite/api_docs/java/org/tensorflow/lite/support/common/ops/DequantizeOp.html - - title: NormalizeOp - path: /lite/api_docs/java/org/tensorflow/lite/support/common/ops/NormalizeOp.html - - title: QuantizeOp - path: /lite/api_docs/java/org/tensorflow/lite/support/common/ops/QuantizeOp.html -- title: support.image - path: /lite/api_docs/java/org/tensorflow/lite/support/image/package-summary.html - section: - - title: BoundingBoxUtil - path: /lite/api_docs/java/org/tensorflow/lite/support/image/BoundingBoxUtil.html - section: - - title: CoordinateType - path: /lite/api_docs/java/org/tensorflow/lite/support/image/BoundingBoxUtil.CoordinateType.html - - title: Type - path: /lite/api_docs/java/org/tensorflow/lite/support/image/BoundingBoxUtil.Type.html - - title: ColorSpaceType - path: /lite/api_docs/java/org/tensorflow/lite/support/image/ColorSpaceType.html - - title: ImageOperator - path: /lite/api_docs/java/org/tensorflow/lite/support/image/ImageOperator.html - - title: ImageProcessor - path: /lite/api_docs/java/org/tensorflow/lite/support/image/ImageProcessor.html - section: - - title: Builder - path: /lite/api_docs/java/org/tensorflow/lite/support/image/ImageProcessor.Builder.html - - title: ImageProperties - path: /lite/api_docs/java/org/tensorflow/lite/support/image/ImageProperties.html - section: - - title: Builder - path: /lite/api_docs/java/org/tensorflow/lite/support/image/ImageProperties.Builder.html - - title: MlImageAdapter - path: /lite/api_docs/java/org/tensorflow/lite/support/image/MlImageAdapter.html - - title: TensorImage - path: /lite/api_docs/java/org/tensorflow/lite/support/image/TensorImage.html -- title: support.image.ops - path: /lite/api_docs/java/org/tensorflow/lite/support/image/ops/package-summary.html - section: - - title: ResizeOp - path: /lite/api_docs/java/org/tensorflow/lite/support/image/ops/ResizeOp.html - section: - - title: ResizeMethod - path: /lite/api_docs/java/org/tensorflow/lite/support/image/ops/ResizeOp.ResizeMethod.html - - title: ResizeWithCropOrPadOp - path: /lite/api_docs/java/org/tensorflow/lite/support/image/ops/ResizeWithCropOrPadOp.html - - title: Rot90Op - path: /lite/api_docs/java/org/tensorflow/lite/support/image/ops/Rot90Op.html - - title: TensorOperatorWrapper - path: /lite/api_docs/java/org/tensorflow/lite/support/image/ops/TensorOperatorWrapper.html - - title: TransformToGrayscaleOp - path: /lite/api_docs/java/org/tensorflow/lite/support/image/ops/TransformToGrayscaleOp.html -- title: support.label - path: /lite/api_docs/java/org/tensorflow/lite/support/label/package-summary.html - section: - - title: Category - path: /lite/api_docs/java/org/tensorflow/lite/support/label/Category.html - - title: LabelUtil - path: /lite/api_docs/java/org/tensorflow/lite/support/label/LabelUtil.html - - title: TensorLabel - path: /lite/api_docs/java/org/tensorflow/lite/support/label/TensorLabel.html -- title: support.label.ops - path: /lite/api_docs/java/org/tensorflow/lite/support/label/ops/package-summary.html - section: - - title: LabelAxisOp - path: /lite/api_docs/java/org/tensorflow/lite/support/label/ops/LabelAxisOp.html - section: - - title: Builder - path: /lite/api_docs/java/org/tensorflow/lite/support/label/ops/LabelAxisOp.Builder.html -- title: support.metadata - path: /lite/api_docs/java/org/tensorflow/lite/support/metadata/package-summary.html - section: - - title: MetadataExtractor - path: /lite/api_docs/java/org/tensorflow/lite/support/metadata/MetadataExtractor.html - section: - - title: QuantizationParams - path: /lite/api_docs/java/org/tensorflow/lite/support/metadata/MetadataExtractor.QuantizationParams.html - - title: MetadataParser - path: /lite/api_docs/java/org/tensorflow/lite/support/metadata/MetadataParser.html -- title: support.model - path: /lite/api_docs/java/org/tensorflow/lite/support/model/package-summary.html - section: - - title: Model - path: /lite/api_docs/java/org/tensorflow/lite/support/model/Model.html - section: - - title: Builder - path: /lite/api_docs/java/org/tensorflow/lite/support/model/Model.Builder.html - - title: Device - path: /lite/api_docs/java/org/tensorflow/lite/support/model/Model.Device.html - - title: Model.Options - path: /lite/api_docs/java/org/tensorflow/lite/support/model/Model.Options.html - section: - - title: Builder - path: /lite/api_docs/java/org/tensorflow/lite/support/model/Model.Options.Builder.html -- title: support.tensorbuffer - path: /lite/api_docs/java/org/tensorflow/lite/support/tensorbuffer/package-summary.html - section: - - title: TensorBuffer - path: /lite/api_docs/java/org/tensorflow/lite/support/tensorbuffer/TensorBuffer.html - - title: TensorBufferFloat - path: /lite/api_docs/java/org/tensorflow/lite/support/tensorbuffer/TensorBufferFloat.html - - title: TensorBufferUint8 - path: /lite/api_docs/java/org/tensorflow/lite/support/tensorbuffer/TensorBufferUint8.html -- heading: Task Library (Play Services) -- title: task.gms.audio - path: /lite/api_docs/java/org/tensorflow/lite/task/gms/audio/package-summary.html - section: - - title: TfLiteAudio - path: /lite/api_docs/java/org/tensorflow/lite/task/gms/audio/TfLiteAudio.html -- title: task.gms.text - path: /lite/api_docs/java/org/tensorflow/lite/task/gms/text/package-summary.html - section: - - title: TfLiteText - path: /lite/api_docs/java/org/tensorflow/lite/task/gms/text/TfLiteText.html -- heading: Task Library -- title: task.audio.classifier - path: /lite/api_docs/java/org/tensorflow/lite/task/audio/classifier/package-summary.html - section: - - title: AudioClassifier - path: /lite/api_docs/java/org/tensorflow/lite/task/audio/classifier/AudioClassifier.html - section: - - title: AudioClassifier.AudioClassifierOptions - path: /lite/api_docs/java/org/tensorflow/lite/task/audio/classifier/AudioClassifier.AudioClassifierOptions.html - section: - - title: Builder - path: /lite/api_docs/java/org/tensorflow/lite/task/audio/classifier/AudioClassifier.AudioClassifierOptions.Builder.html - - title: Classifications - path: /lite/api_docs/java/org/tensorflow/lite/task/audio/classifier/Classifications.html -- title: task.core - path: /lite/api_docs/java/org/tensorflow/lite/task/core/package-summary.html - section: - - title: BaseOptions - path: /lite/api_docs/java/org/tensorflow/lite/task/core/BaseOptions.html - section: - - title: Builder - path: /lite/api_docs/java/org/tensorflow/lite/task/core/BaseOptions.Builder.html - - title: BaseTaskApi - path: /lite/api_docs/java/org/tensorflow/lite/task/core/BaseTaskApi.html - - title: ComputeSettings - path: /lite/api_docs/java/org/tensorflow/lite/task/core/ComputeSettings.html - section: - - title: Builder - path: /lite/api_docs/java/org/tensorflow/lite/task/core/ComputeSettings.Builder.html - - title: Delegate - path: /lite/api_docs/java/org/tensorflow/lite/task/core/ComputeSettings.Delegate.html - - title: TaskJniUtils - path: /lite/api_docs/java/org/tensorflow/lite/task/core/TaskJniUtils.html - section: - - title: EmptyHandleProvider - path: /lite/api_docs/java/org/tensorflow/lite/task/core/TaskJniUtils.EmptyHandleProvider.html - - title: FdAndOptionsHandleProvider - path: /lite/api_docs/java/org/tensorflow/lite/task/core/TaskJniUtils.FdAndOptionsHandleProvider.html - - title: MultipleBuffersHandleProvider - path: /lite/api_docs/java/org/tensorflow/lite/task/core/TaskJniUtils.MultipleBuffersHandleProvider.html -- title: task.core.vision - path: /lite/api_docs/java/org/tensorflow/lite/task/core/vision/package-summary.html - section: - - title: ImageProcessingOptions - path: /lite/api_docs/java/org/tensorflow/lite/task/core/vision/ImageProcessingOptions.html - section: - - title: Builder - path: /lite/api_docs/java/org/tensorflow/lite/task/core/vision/ImageProcessingOptions.Builder.html - - title: Orientation - path: /lite/api_docs/java/org/tensorflow/lite/task/core/vision/ImageProcessingOptions.Orientation.html -- title: task.processor - path: /lite/api_docs/java/org/tensorflow/lite/task/processor/package-summary.html - section: - - title: NearestNeighbor - path: /lite/api_docs/java/org/tensorflow/lite/task/processor/NearestNeighbor.html - - title: SearcherOptions - path: /lite/api_docs/java/org/tensorflow/lite/task/processor/SearcherOptions.html - section: - - title: Builder - path: /lite/api_docs/java/org/tensorflow/lite/task/processor/SearcherOptions.Builder.html -- title: task.text.bertclu - path: /lite/api_docs/java/org/tensorflow/lite/task/text/bertclu/package-summary.html - section: - - title: BertCluAnnotator - path: /lite/api_docs/java/org/tensorflow/lite/task/text/bertclu/BertCluAnnotator.html - section: - - title: BertCluAnnotator.BertCluAnnotatorOptions - path: /lite/api_docs/java/org/tensorflow/lite/task/text/bertclu/BertCluAnnotator.BertCluAnnotatorOptions.html - section: - - title: Builder - path: /lite/api_docs/java/org/tensorflow/lite/task/text/bertclu/BertCluAnnotator.BertCluAnnotatorOptions.Builder.html - - title: CluRequest - path: /lite/api_docs/java/org/tensorflow/lite/task/text/bertclu/CluRequest.html - - title: CluResponse - path: /lite/api_docs/java/org/tensorflow/lite/task/text/bertclu/CluResponse.html - section: - - title: CategoricalSlot - path: /lite/api_docs/java/org/tensorflow/lite/task/text/bertclu/CluResponse.CategoricalSlot.html - - title: Mention - path: /lite/api_docs/java/org/tensorflow/lite/task/text/bertclu/CluResponse.Mention.html - - title: MentionedSlot - path: /lite/api_docs/java/org/tensorflow/lite/task/text/bertclu/CluResponse.MentionedSlot.html -- title: task.text.nlclassifier - path: /lite/api_docs/java/org/tensorflow/lite/task/text/nlclassifier/package-summary.html - section: - - title: BertNLClassifier - path: /lite/api_docs/java/org/tensorflow/lite/task/text/nlclassifier/BertNLClassifier.html - section: - - title: BertNLClassifier.BertNLClassifierOptions - path: /lite/api_docs/java/org/tensorflow/lite/task/text/nlclassifier/BertNLClassifier.BertNLClassifierOptions.html - section: - - title: Builder - path: /lite/api_docs/java/org/tensorflow/lite/task/text/nlclassifier/BertNLClassifier.BertNLClassifierOptions.Builder.html - - title: NLClassifier - path: /lite/api_docs/java/org/tensorflow/lite/task/text/nlclassifier/NLClassifier.html - section: - - title: NLClassifier.NLClassifierOptions - path: /lite/api_docs/java/org/tensorflow/lite/task/text/nlclassifier/NLClassifier.NLClassifierOptions.html - section: - - title: Builder - path: /lite/api_docs/java/org/tensorflow/lite/task/text/nlclassifier/NLClassifier.NLClassifierOptions.Builder.html -- title: task.text.qa - path: /lite/api_docs/java/org/tensorflow/lite/task/text/qa/package-summary.html - section: - - title: BertQuestionAnswerer - path: /lite/api_docs/java/org/tensorflow/lite/task/text/qa/BertQuestionAnswerer.html - section: - - title: BertQuestionAnswerer.BertQuestionAnswererOptions - path: /lite/api_docs/java/org/tensorflow/lite/task/text/qa/BertQuestionAnswerer.BertQuestionAnswererOptions.html - section: - - title: Builder - path: /lite/api_docs/java/org/tensorflow/lite/task/text/qa/BertQuestionAnswerer.BertQuestionAnswererOptions.Builder.html - - title: QaAnswer - path: /lite/api_docs/java/org/tensorflow/lite/task/text/qa/QaAnswer.html - section: - - title: Pos - path: /lite/api_docs/java/org/tensorflow/lite/task/text/qa/QaAnswer.Pos.html - - title: QuestionAnswerer - path: /lite/api_docs/java/org/tensorflow/lite/task/text/qa/QuestionAnswerer.html -- title: task.text.searcher - path: /lite/api_docs/java/org/tensorflow/lite/task/text/searcher/package-summary.html - section: - - title: TextSearcher - path: /lite/api_docs/java/org/tensorflow/lite/task/text/searcher/TextSearcher.html - section: - - title: TextSearcher.TextSearcherOptions - path: /lite/api_docs/java/org/tensorflow/lite/task/text/searcher/TextSearcher.TextSearcherOptions.html - section: - - title: Builder - path: /lite/api_docs/java/org/tensorflow/lite/task/text/searcher/TextSearcher.TextSearcherOptions.Builder.html -- title: task.vision.classifier - path: /lite/api_docs/java/org/tensorflow/lite/task/vision/classifier/package-summary.html - section: - - title: Classifications - path: /lite/api_docs/java/org/tensorflow/lite/task/vision/classifier/Classifications.html - - title: ImageClassifier - path: /lite/api_docs/java/org/tensorflow/lite/task/vision/classifier/ImageClassifier.html - section: - - title: ImageClassifier.ImageClassifierOptions - path: /lite/api_docs/java/org/tensorflow/lite/task/vision/classifier/ImageClassifier.ImageClassifierOptions.html - section: - - title: Builder - path: /lite/api_docs/java/org/tensorflow/lite/task/vision/classifier/ImageClassifier.ImageClassifierOptions.Builder.html -- title: task.vision.core - path: /lite/api_docs/java/org/tensorflow/lite/task/vision/core/package-summary.html - section: - - title: BaseVisionTaskApi - path: /lite/api_docs/java/org/tensorflow/lite/task/vision/core/BaseVisionTaskApi.html - section: - - title: InferenceProvider - path: /lite/api_docs/java/org/tensorflow/lite/task/vision/core/BaseVisionTaskApi.InferenceProvider.html -- title: task.vision.detector - path: /lite/api_docs/java/org/tensorflow/lite/task/vision/detector/package-summary.html - section: - - title: Detection - path: /lite/api_docs/java/org/tensorflow/lite/task/vision/detector/Detection.html - - title: ObjectDetector - path: /lite/api_docs/java/org/tensorflow/lite/task/vision/detector/ObjectDetector.html - section: - - title: ObjectDetector.ObjectDetectorOptions - path: /lite/api_docs/java/org/tensorflow/lite/task/vision/detector/ObjectDetector.ObjectDetectorOptions.html - section: - - title: Builder - path: /lite/api_docs/java/org/tensorflow/lite/task/vision/detector/ObjectDetector.ObjectDetectorOptions.Builder.html -- title: task.vision.searcher - path: /lite/api_docs/java/org/tensorflow/lite/task/vision/searcher/package-summary.html - section: - - title: ImageSearcher - path: /lite/api_docs/java/org/tensorflow/lite/task/vision/searcher/ImageSearcher.html - section: - - title: ImageSearcher.ImageSearcherOptions - path: /lite/api_docs/java/org/tensorflow/lite/task/vision/searcher/ImageSearcher.ImageSearcherOptions.html - section: - - title: Builder - path: /lite/api_docs/java/org/tensorflow/lite/task/vision/searcher/ImageSearcher.ImageSearcherOptions.Builder.html -- title: task.vision.segmenter - path: /lite/api_docs/java/org/tensorflow/lite/task/vision/segmenter/package-summary.html - section: - - title: ColoredLabel - path: /lite/api_docs/java/org/tensorflow/lite/task/vision/segmenter/ColoredLabel.html - - title: ImageSegmenter - path: /lite/api_docs/java/org/tensorflow/lite/task/vision/segmenter/ImageSegmenter.html - section: - - title: ImageSegmenter.ImageSegmenterOptions - path: /lite/api_docs/java/org/tensorflow/lite/task/vision/segmenter/ImageSegmenter.ImageSegmenterOptions.html - section: - - title: Builder - path: /lite/api_docs/java/org/tensorflow/lite/task/vision/segmenter/ImageSegmenter.ImageSegmenterOptions.Builder.html - - title: OutputType - path: /lite/api_docs/java/org/tensorflow/lite/task/vision/segmenter/OutputType.html - - title: Segmentation - path: /lite/api_docs/java/org/tensorflow/lite/task/vision/segmenter/Segmentation.html -- heading: Delegates -- title: gpu - path: /lite/api_docs/java/org/tensorflow/lite/gpu/package-summary.html - section: - - title: CompatibilityList - path: /lite/api_docs/java/org/tensorflow/lite/gpu/CompatibilityList.html - - title: GpuDelegate - path: /lite/api_docs/java/org/tensorflow/lite/gpu/GpuDelegate.html - section: - - title: Options - path: /lite/api_docs/java/org/tensorflow/lite/gpu/GpuDelegate.Options.html - - title: GpuDelegateFactory - path: /lite/api_docs/java/org/tensorflow/lite/gpu/GpuDelegateFactory.html - section: - - title: GpuDelegateFactory.Options - path: /lite/api_docs/java/org/tensorflow/lite/gpu/GpuDelegateFactory.Options.html - section: - - title: GpuBackend - path: /lite/api_docs/java/org/tensorflow/lite/gpu/GpuDelegateFactory.Options.GpuBackend.html -- heading: ODML -- title: image - path: /lite/api_docs/java/com/google/android/odml/image/package-summary.html - section: - - title: BitmapExtractor - path: /lite/api_docs/java/com/google/android/odml/image/BitmapExtractor.html - - title: BitmapMlImageBuilder - path: /lite/api_docs/java/com/google/android/odml/image/BitmapMlImageBuilder.html - - title: ByteBufferExtractor - path: /lite/api_docs/java/com/google/android/odml/image/ByteBufferExtractor.html - - title: ByteBufferMlImageBuilder - path: /lite/api_docs/java/com/google/android/odml/image/ByteBufferMlImageBuilder.html - - title: ImageProperties - path: /lite/api_docs/java/com/google/android/odml/image/ImageProperties.html - - title: MediaImageExtractor - path: /lite/api_docs/java/com/google/android/odml/image/MediaImageExtractor.html - - title: MediaMlImageBuilder - path: /lite/api_docs/java/com/google/android/odml/image/MediaMlImageBuilder.html - - title: MlImage - path: /lite/api_docs/java/com/google/android/odml/image/MlImage.html - section: - - title: ImageFormat - path: /lite/api_docs/java/com/google/android/odml/image/MlImage.ImageFormat.html - - title: Internal - path: /lite/api_docs/java/com/google/android/odml/image/MlImage.Internal.html - - title: StorageType - path: /lite/api_docs/java/com/google/android/odml/image/MlImage.StorageType.html -- title: image.annotation - path: /lite/api_docs/java/com/google/android/odml/image/annotation/package-summary.html - section: - - title: KeepForSdk - path: /lite/api_docs/java/com/google/android/odml/image/annotation/KeepForSdk.html diff --git a/site/en/lite/api_docs/java/classes.html b/site/en/lite/api_docs/java/classes.html deleted file mode 100644 index 92babbf0e2..0000000000 --- a/site/en/lite/api_docs/java/classes.html +++ /dev/null @@ -1,674 +0,0 @@ - - - - - - - - - -Class Index - - - -
-A -B -C -D -F -G -I -K -L -M -N -O -P -Q -R -S -T -V -
-

A

- - - - - - - - - - - - - -
AudioClassifierPerforms classification on audio waveforms. 
AudioClassifier.AudioClassifierOptionsOptions for setting up an AudioClassifier
AudioClassifier.AudioClassifierOptions.BuilderA builder that helps to configure an instance of AudioClassifierOptions. 
-

B

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
BaseOptionsOptions to configure Task APIs in general. 
BaseOptions.BuilderBuilder for BaseOptions
BaseTaskApiBase class for Task API, provides shared logic to load/unload native libs to its C++ counterpart. 
BaseVisionTaskApiBase class for Task Vision APIs. 
BaseVisionTaskApi.InferenceProvider<T>Syntax sugar to run vision tasks with FrameBuffer and image processing options. 
BertCluAnnotatorAPI for BERT-based Conversational Language Understanding. 
BertCluAnnotator.BertCluAnnotatorOptionsOptions for setting up a BertCluAnnotator
BertCluAnnotator.BertCluAnnotatorOptions.BuilderBuilder for BertCluAnnotator.BertCluAnnotatorOptions
BertNLClassifierClassifier API for NLClassification tasks with Bert models, categorizes string into different - classes. 
BertNLClassifier.BertNLClassifierOptionsOptions to configure BertNLClassifier. 
BertNLClassifier.BertNLClassifierOptions.BuilderBuilder for BertNLClassifier.BertNLClassifierOptions
BertQuestionAnswererReturns the most possible answers on a given question for QA models (BERT, Albert, etc.). 
BertQuestionAnswerer.BertQuestionAnswererOptionsOptions for setting up a BertQuestionAnswerer
BertQuestionAnswerer.BertQuestionAnswererOptions.BuilderBuilder for BertQuestionAnswerer.BertQuestionAnswererOptions
BitmapExtractorUtility for extracting Bitmap from MlImage
BitmapMlImageBuilderBuilds MlImage from Bitmap
BoundingBoxUtilHelper class for converting values that represents bounding boxes into rectangles. 
BoundingBoxUtil.CoordinateTypeDenotes if the coordinates are actual pixels or relative ratios. 
BoundingBoxUtil.TypeDenotes how a bounding box is represented. 
ByteBufferExtractorUtility for extracting ByteBuffer from MlImage
ByteBufferMlImageBuilderBuilds a MlImage from a ByteBuffer
-

C

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
CastOpCasts a TensorBuffer to a specified data type. 
CategoryCategory is a util class, contains a label, its display name, a float value as score, and the - index of the label in the corresponding label file. 
ClassificationsThe classification results of one head in a multihead (a.k.a. 
ClassificationsThe classification results of one head in a multihead (a.k.a. 
CluRequestThe input dialogue history for the BertCluAnnotator
CluResponseThe output domain, intent, and slot information for the BertCluAnnotator
CluResponse.CategoricalSlotRepresents a categorical slot whose values are within a finite set. 
CluResponse.MentionA single mention. 
CluResponse.MentionedSlotRepresents a mentioned slot whose values are open text extracted from the input text. 
ColoredLabelRepresents a label associated with a color for display purposes. 
ColorSpaceTypeRepresents the type of color space of an image. 
CompatibilityListGPU Delegate CompatibilityListing data. 
ComputeSettingsOptions to configure how to accelerate the model inference using dedicated delegates. 
ComputeSettings.BuilderBuilder for ComputeSettings
ComputeSettings.DelegateTFLite accelerator delegate options. 
-

D

- - - - - - - - - - - - - - - - - - - - - -
DataTypeRepresents the type of elements in a TensorFlow Lite Tensor as an enum. 
DelegateWrapper for a native TensorFlow Lite Delegate. 
DelegateFactoryAllows creating delegates for different runtime flavors. 
DequantizeOpDequantizes a TensorBuffer with given zeroPoint and scale
DetectionRepresents one detected object in the results of a ObjectDetector
-

F

- - - - - -
FileUtilFile I/O utilities. 
-

G

- - - - - - - - - - - - - - - - - - - - - -
GpuDelegateDelegate for GPU inference. 
GpuDelegate.Options - This class is deprecated. Use GpuDelegateFactory.Options instead. - 
GpuDelegateFactoryDelegateFactory for creating a GpuDelegate
GpuDelegateFactory.OptionsDelegate options. 
GpuDelegateFactory.Options.GpuBackendWhich GPU backend to select. 
-

I

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ImageClassifierPerforms classification on images. 
ImageClassifier.ImageClassifierOptionsOptions for setting up an ImageClassifier. 
ImageClassifier.ImageClassifierOptions.BuilderA builder that helps to configure an instance of ImageClassifierOptions. 
ImageOperatorOperates a TensorImage object. 
ImageProcessingOptionsOptions to configure the image processing pipeline, which operates before inference. 
ImageProcessingOptions.BuilderBuilder for ImageProcessingOptions
ImageProcessingOptions.OrientationOrientation type that follows EXIF specification. 
ImageProcessorImageProcessor is a helper class for preprocessing and postprocessing TensorImage
ImageProcessor.BuilderThe Builder to create an ImageProcessor, which could be executed later. 
ImagePropertiesGroups a set of properties to describe how an image is stored. 
ImagePropertiesRepresents the properties of an image object when being loaded to a TensorImage
ImageProperties.BuilderBuilder for ImageProperties
ImageSearcherPerforms similarity search on images. 
ImageSearcher.ImageSearcherOptionsOptions for setting up an ImageSearcher. 
ImageSearcher.ImageSearcherOptions.BuilderBuilder for ImageSearcher.ImageSearcherOptions
ImageSegmenterPerforms segmentation on images. 
ImageSegmenter.ImageSegmenterOptionsOptions for setting up an ImageSegmenter
ImageSegmenter.ImageSegmenterOptions.BuilderBuilder for ImageSegmenter.ImageSegmenterOptions
InterpreterDriver class to drive model inference with TensorFlow Lite. 
Interpreter.OptionsAn options class for controlling runtime interpreter behavior. 
InterpreterApiInterface to TensorFlow Lite model interpreter, excluding experimental methods. 
InterpreterApi.OptionsAn options class for controlling runtime interpreter behavior. 
InterpreterApi.Options.TfLiteRuntimeEnum to represent where to get the TensorFlow Lite runtime implementation from. 
InterpreterFactoryFactory for constructing InterpreterApi instances. 
-

K

- - - - - -
KeepForSdkIndicates that this object (class, method, etc) should be retained and not renamed when - generating the SDK, but should be allowed to be stripped or renamed in end developer apps. 
-

L

- - - - - - - - - - - - - -
LabelAxisOpLabels TensorBuffer with axisLabels for outputs. 
LabelAxisOp.BuilderThe inner builder class to build a LabelTensor Operator. 
LabelUtilLabel operation utils. 
-

M

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MediaImageExtractorUtility for extracting Image from MlImage
MediaMlImageBuilderBuilds MlImage from Image
MetadataExtractorLoads metadata from TFLite Model FlatBuffer. 
MetadataExtractor.QuantizationParamsQuantization parameters that corresponds to the table, QuantizationParameters, in the - TFLite - Model schema file. 
MetadataParserInformation about the metadata parser that this metadata extractor library is depending on. 
MlImageWraps image data for on-device machine learning (ODML) usages. 
MlImage.ImageFormatSpecifies the image format of an image. 
MlImage.InternalAdvanced API access for MlImage
MlImage.StorageTypeSpecifies the image container type. 
MlImageAdapterConverts MlImage to TensorImage and vice versa. 
ModelThe wrapper class for a TFLite model and a TFLite interpreter. 
Model.Builder - This class is deprecated. Please use Model.createModel(Context, String, Options). - 
Model.DeviceThe runtime device type used for executing classification. 
Model.OptionsOptions for running the model. 
Model.Options.BuilderBuilder of Model.Options
-

N

- - - - - - - - - - - - - - - - - - - - - -
NearestNeighborRepresents the search result of a Searcher model. 
NLClassifierClassifier API for natural language classification tasks, categorizes string into different - classes. 
NLClassifier.NLClassifierOptionsOptions to identify input and output tensors of the model. 
NLClassifier.NLClassifierOptions.BuilderBuilder for NLClassifier.NLClassifierOptions
NormalizeOpNormalizes a TensorBuffer with given mean and stddev: output = (input - mean) / stddev. 
-

O

- - - - - - - - - - - - - - - - - - - - - -
ObjectDetectorPerforms object detection on images. 
ObjectDetector.ObjectDetectorOptionsOptions for setting up an ObjectDetector. 
ObjectDetector.ObjectDetectorOptions.BuilderA builder that helps to configure an instance of ObjectDetectorOptions. 
Operator<T>The common interface for classes that carries an "apply" method, which converts T to another one. 
OutputTypeOutput mask type. 
-

P

- - - - - -
Processor<T>Processes T object with prepared Operator&lt;T&gt;
-

Q

- - - - - - - - - - - - - - - - - -
QaAnswerAnswers to QuestionAnswerer
QaAnswer.PosPosition information of the answer relative to context. 
QuantizeOpQuantizes a TensorBuffer with given zeroPoint and scale
QuestionAnswererAPI to answer questions based on context. 
-

R

- - - - - - - - - - - - - - - - - - - - - -
ResizeOpAs a computation unit for processing images, it can resize an image to user-specified size. 
ResizeOp.ResizeMethodAlgorithms for resizing. 
ResizeWithCropOrPadOpAs a computation unit for processing images, it could resize image to predefined size. 
Rot90OpRotates image counter-clockwise. 
RuntimeFlavorRepresents a TFLite runtime. 
-

S

- - - - - - - - - - - - - - - - - -
SearcherOptionsOptions to configure Searcher API. 
SearcherOptions.BuilderBuilder for SearcherOptions
SegmentationRepresents the segmentation result of an ImageSegmenter
SequentialProcessor<T>A processor base class that chains a serial of Operator&lt;T&gt; and executes them. 
-

T

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TaskJniUtilsJNI utils for Task API. 
TaskJniUtils.EmptyHandleProviderSyntax sugar to get nativeHandle from empty param list. 
TaskJniUtils.FdAndOptionsHandleProvider<T>Syntax sugar to get nativeHandle from file descriptor and options. 
TaskJniUtils.MultipleBuffersHandleProviderSyntax sugar to get nativeHandle from an array of ByteBuffers. 
TensorA typed multi-dimensional array used in Tensorflow Lite. 
Tensor.QuantizationParamsQuantization parameters that corresponds to the table, QuantizationParameters, in the - TFLite - Model schema file. 
TensorAudioDefines a ring buffer and some utility functions to prepare the input audio samples. 
TensorAudio.TensorAudioFormatWraps a few constants describing the format of the incoming audio samples, namely number of - channels and the sample rate. 
TensorAudio.TensorAudioFormat.BuilderBuilder for TensorAudio.TensorAudioFormat  
TensorBufferRepresents the data buffer for either a model's input or its output. 
TensorBufferFloatRepresents data buffer with float values. 
TensorBufferUint8Represents data buffer with 8-bit unsigned integer values. 
TensorFlowLiteStatic utility methods for loading the TensorFlowLite runtime and native code. 
TensorImageTensorImage is the wrapper class for Image object. 
TensorLabelTensorLabel is an util wrapper for TensorBuffers with meaningful labels on an axis. 
TensorOperatorApplies some operation on TensorBuffers. 
TensorOperatorWrapperThe adapter that makes a TensorOperator able to run with TensorImage. 
TensorProcessorTensorProcessor is a helper class for preprocessing and postprocessing tensors. 
TensorProcessor.BuilderThe Builder to create an TensorProcessor, which could be executed later. 
TextSearcherPerforms similarity search on text string. 
TextSearcher.TextSearcherOptionsOptions for setting up an TextSearcher. 
TextSearcher.TextSearcherOptions.BuilderBuilder for TextSearcher.TextSearcherOptions
TfLiteAudioEntry point for the TensorFlow Lite (TFLite) Tasks Audio API provided by Google Play services. 
TfLiteTextEntry point for the TensorFlow Lite (TFLite) Tasks Text API provided by Google Play services. 
TransformToGrayscaleOpTransforms an image to GrayScale as an image processing unit. 
-

V

- - - - - -
ValidatedAccelerationConfigInterface specifying validated acceleration configuration. 
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/DataType.html b/site/en/lite/api_docs/java/org/tensorflow/lite/DataType.html deleted file mode 100644 index 075eb0efab..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/DataType.html +++ /dev/null @@ -1,554 +0,0 @@ - - - - - - - - - -DataType - - - -
-
-
-
-
- -
- public final enum - DataType -
-
-
-
-

Represents the type of elements in a TensorFlow Lite Tensor as an enum.

-
-
-
- -
-

Inherited Methods

- - - -
-
- -
- - - - -
-

Enum Values

- -
-

- - public - static - final - - - DataType - - -BOOL -

-
-
-
-

Bool.

-
-
- -
-

- - public - static - final - - - DataType - - -FLOAT32 -

-
-
-
-

32-bit single precision floating point.

-
-
- -
-

- - public - static - final - - - DataType - - -INT16 -

-
-
-
-

16-bit signed integer.

-
-
- -
-

- - public - static - final - - - DataType - - -INT32 -

-
-
-
-

32-bit signed integer.

-
-
- -
-

- - public - static - final - - - DataType - - -INT64 -

-
-
-
-

64-bit signed integer.

-
-
- -
-

- - public - static - final - - - DataType - - -INT8 -

-
-
-
-

8-bit signed integer.

-
-
- -
-

- - public - static - final - - - DataType - - -STRING -

-
-
-
-

Strings.

-
-
- -
-

- - public - static - final - - - DataType - - -UINT8 -

-
-
-
-

8-bit unsigned integer.

-
-
-
- - - - - - - - - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/Delegate.html b/site/en/lite/api_docs/java/org/tensorflow/lite/Delegate.html deleted file mode 100644 index 376b43f6cf..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/Delegate.html +++ /dev/null @@ -1,250 +0,0 @@ - - - - - - - - - -Delegate - - - -
-
-
-
-
- -
- public interface - Delegate -
-
-
-
- Known Indirect Subclasses - -
- - -
-
-
-

Wrapper for a native TensorFlow Lite Delegate. - -

If a delegate implementation holds additional resources or memory that should be explicitly - freed, then best practice is to add a close() method to the implementation and have the - client call that explicitly when the delegate instance is no longer in use. While this approach - technically allows sharing of a single delegate instance across multiple interpreter instances, - the delegate implementation must explicitly support this. -

-

-
-
- -
-

Public Methods

- - - - - - - - - -
- - - - - - void - -
-close() - -
Closes the delegate and releases any resources associated with it.
-
-
- abstract - - - - - long - -
-getNativeHandle() - -
Returns a native handle to the TensorFlow Lite delegate implementation.
-
-
-
- -
-

Inherited Methods

- - -
-
- -
- - - - - - - - - - -
-

Public Methods

- -
-

- - public - - - - - void - -close -() -

-
-
-
-
-

Closes the delegate and releases any resources associated with it. - -

In contrast to the method declared in the base Closeable interface, this method - does not throw checked exceptions. -

-
-
- -
-

- - public - - - abstract - - long - -getNativeHandle -() -

-
-
-
-
-

Returns a native handle to the TensorFlow Lite delegate implementation. - -

Note: The Java Delegate maintains ownership of the native delegate instance, and - must ensure its existence for the duration of usage with any InterpreterApi instance. - -

Note: the native delegate instance may not be created until the delegate has been attached - to an interpreter, so this method should not be called until after an interpreter has been - constructed with this delegate.

-
-
Returns
-
  • The native delegate handle. In C/C++, this should be a pointer to - 'TfLiteOpaqueDelegate'. -
-
-
-
Throws
- - - - - -
IllegalStateExceptionif called before the native delegate instance has been - constructed.
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/DelegateFactory.html b/site/en/lite/api_docs/java/org/tensorflow/lite/DelegateFactory.html deleted file mode 100644 index 0c2b49dda2..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/DelegateFactory.html +++ /dev/null @@ -1,128 +0,0 @@ - - - - - - - - - -DelegateFactory - - - -
-
-
-
-
- -
- public interface - DelegateFactory -
-
-
-
- Known Indirect Subclasses - -
- - -
-
-
-

Allows creating delegates for different runtime flavors.

-
-
-
- -
-

Public Methods

- - - - - -
- abstract - - - - - Delegate - -
-create(RuntimeFlavor runtimeFlavor) - -
Create a Delegate for the given RuntimeFlavor.
-
-
-
-
- -
- - - - - - - - - - -
-

Public Methods

- -
-

- - public - - - abstract - - Delegate - -create -(RuntimeFlavor runtimeFlavor) -

-
-
-
-
-

Create a Delegate for the given RuntimeFlavor. - -

Note for developers implementing this interface: Currently TF Lite in Google Play Services - does not support external (developer-provided) delegates. Correspondingly, implementations of - this method can expect to be called with RuntimeFlavor.APPLICATION. -

-
-
Parameters
- - - - - -
runtimeFlavor
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/Interpreter.Options.html b/site/en/lite/api_docs/java/org/tensorflow/lite/Interpreter.Options.html deleted file mode 100644 index 70060b95db..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/Interpreter.Options.html +++ /dev/null @@ -1,947 +0,0 @@ - - - - - - - - - -Interpreter.Options - - - -
-
-
-
-
- -
- public static class - Interpreter.Options -
-
-
-
-

An options class for controlling runtime interpreter behavior.

-
-
-
- -
-

Public Constructors

- - - - - - - - - -
- -
-Options() - -
-
- - -
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Interpreter.Options - -
-addDelegate(Delegate delegate) - -
Adds a Delegate to be applied during interpreter creation.
-
-
-Interpreter.Options - -
-addDelegateFactory(DelegateFactory delegateFactory) - -
Adds a DelegateFactory which will be invoked to apply its created Delegate - during interpreter creation.
-
-
-Interpreter.Options - -
-setAllowBufferHandleOutput(boolean allow) - -
Advanced: Set if buffer handle output is allowed.
-
-
-Interpreter.Options - -
-setAllowFp16PrecisionForFp32(boolean allow) - -
- This method is deprecated. Prefer using NnApiDelegate.Options#setAllowFp16(boolean - enable). -
-
-
-Interpreter.Options - -
-setCancellable(boolean allow) - -
Advanced: Set if the interpreter is able to be cancelled.
-
-
-Interpreter.Options - -
-setNumThreads(int numThreads) - -
Sets the number of threads to be used for ops that support multi-threading.
-
-
-Interpreter.Options - -
-setRuntime(InterpreterApi.Options.TfLiteRuntime runtime) - -
Specify where to get the TF Lite runtime implementation from.
-
-
-Interpreter.Options - -
-setUseNNAPI(boolean useNNAPI) - -
Sets whether to use NN API (if available) for op execution.
-
-
-Interpreter.Options - -
-setUseXNNPACK(boolean useXNNPACK) - -
Enable or disable an optimized set of CPU kernels (provided by XNNPACK).
-
-
-
- -
-

Inherited Methods

- - -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -Options -() -

-
-
-
-
-

-
-
- -
-

- - public - - - - - - -Options -(InterpreterApi.Options options) -

-
-
-
-
-

-
-
Parameters
- - - - - -
options
-
-
-
-
- - - - -
-

Public Methods

- -
-

- - public - - - - - Interpreter.Options - -addDelegate -(Delegate delegate) -

-
-
-
-
-

Adds a Delegate to be applied during interpreter creation. - -

Delegates added here are applied before any delegates created from a DelegateFactory that was added with addDelegateFactory(DelegateFactory). - -

Note that TF Lite in Google Play Services (see setRuntime(InterpreterApi.Options.TfLiteRuntime)) does not support - external (developer-provided) delegates, and adding a Delegate other than ERROR(/NnApiDelegate) here is not allowed when using TF Lite in Google Play Services. -

-
-
Parameters
- - - - - -
delegate
-
-
-
- -
-

- - public - - - - - Interpreter.Options - -addDelegateFactory -(DelegateFactory delegateFactory) -

-
-
-
-
-

Adds a DelegateFactory which will be invoked to apply its created Delegate - during interpreter creation. - -

Delegates from a delegated factory that was added here are applied after any delegates - added with addDelegate(Delegate). -

-
-
Parameters
- - - - - -
delegateFactory
-
-
-
- -
-

- - public - - - - - Interpreter.Options - -setAllowBufferHandleOutput -(boolean allow) -

-
-
-
-
-

Advanced: Set if buffer handle output is allowed. - -

When a Delegate supports hardware acceleration, the interpreter will make the data - of output tensors available in the CPU-allocated tensor buffers by default. If the client can - consume the buffer handle directly (e.g. reading output from OpenGL texture), it can set this - flag to false, avoiding the copy of data to the CPU buffer. The delegate documentation should - indicate whether this is supported and how it can be used. - -

WARNING: This is an experimental interface that is subject to change. -

-
-
Parameters
- - - - - -
allow
-
-
-
- -
-

- - public - - - - - Interpreter.Options - -setAllowFp16PrecisionForFp32 -(boolean allow) -

-
-
-
-
-

-

- - This method is deprecated.
Prefer using NnApiDelegate.Options#setAllowFp16(boolean - enable). - -

-

Sets whether to allow float16 precision for FP32 calculation when possible. Defaults to false - (disallow).

-
-
Parameters
- - - - - -
allow
-
-

-
- -
-

- - public - - - - - Interpreter.Options - -setCancellable -(boolean allow) -

-
-
-
-
-

Advanced: Set if the interpreter is able to be cancelled. - -

Interpreters may have an experimental API setCancelled(boolean). - If this interpreter is cancellable and such a method is invoked, a cancellation flag will be - set to true. The interpreter will check the flag between Op invocations, and if it's true, the interpreter will stop execution. The interpreter will remain a cancelled state - until explicitly "uncancelled" by setCancelled(false). -

-
-
Parameters
- - - - - -
allow
-
-
-
- -
-

- - public - - - - - Interpreter.Options - -setNumThreads -(int numThreads) -

-
-
-
-
-

Sets the number of threads to be used for ops that support multi-threading. - -

numThreads should be &gt;= -1. Setting numThreads to 0 has the effect - of disabling multithreading, which is equivalent to setting numThreads to 1. If - unspecified, or set to the value -1, the number of threads used will be - implementation-defined and platform-dependent. -

-
-
Parameters
- - - - - -
numThreads
-
-
-
- -
-

- - public - - - - - Interpreter.Options - -setRuntime -(InterpreterApi.Options.TfLiteRuntime runtime) -

-
-
-
-
-

Specify where to get the TF Lite runtime implementation from.

-
-
Parameters
- - - - - -
runtime
-
-
-
- -
-

- - public - - - - - Interpreter.Options - -setUseNNAPI -(boolean useNNAPI) -

-
-
-
-
-

Sets whether to use NN API (if available) for op execution. Defaults to false (disabled).

-
-
Parameters
- - - - - -
useNNAPI
-
-
-
- -
-

- - public - - - - - Interpreter.Options - -setUseXNNPACK -(boolean useXNNPACK) -

-
-
-
-
-

Enable or disable an optimized set of CPU kernels (provided by XNNPACK). Enabled by default. -

-
-
Parameters
- - - - - -
useXNNPACK
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/Interpreter.html b/site/en/lite/api_docs/java/org/tensorflow/lite/Interpreter.html deleted file mode 100644 index 861011c402..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/Interpreter.html +++ /dev/null @@ -1,1975 +0,0 @@ - - - - - - - - - -Interpreter - - - -
-
-
-
-
- -
- public final class - Interpreter -
-
-
-
-

Driver class to drive model inference with TensorFlow Lite. - -

Note: If you don't need access to any of the "experimental" API features below, prefer to use - InterpreterApi and InterpreterFactory rather than using Interpreter directly. - -

A Interpreter encapsulates a pre-trained TensorFlow Lite model, in which operations - are executed for model inference. - -

For example, if a model takes only one input and returns only one output: - -

try (Interpreter interpreter = new Interpreter(file_of_a_tensorflowlite_model)) {
-   interpreter.run(input, output);
- }
- 
-

If a model takes multiple inputs or outputs: - -

Object[] inputs = {input0, input1, ...};
- Map&lt;Integer, Object&gt; map_of_indices_to_outputs = new HashMap&lt;&gt;();
- FloatBuffer ith_output = FloatBuffer.allocateDirect(3 * 2 * 4);  // Float tensor, shape 3x2x4.
- ith_output.order(ByteOrder.nativeOrder());
- map_of_indices_to_outputs.put(i, ith_output);
- try (Interpreter interpreter = new Interpreter(file_of_a_tensorflowlite_model)) {
-   interpreter.runForMultipleInputsOutputs(inputs, map_of_indices_to_outputs);
- }
- 
-

If a model takes or produces string tensors: - -

String[] input = {"foo", "bar"};  // Input tensor shape is [2].
- String[][] output = new String[3][2];  // Output tensor shape is [3, 2].
- try (Interpreter interpreter = new Interpreter(file_of_a_tensorflowlite_model)) {
-   interpreter.runForMultipleInputsOutputs(input, output);
- }
- 
-

Note that there's a distinction between shape [] and shape[1]. For scalar string tensor - outputs: - -

String[] input = {"foo"};  // Input tensor shape is [1].
- ByteBuffer outputBuffer = ByteBuffer.allocate(OUTPUT_BYTES_SIZE);  // Output tensor shape is [].
- try (Interpreter interpreter = new Interpreter(file_of_a_tensorflowlite_model)) {
-   interpreter.runForMultipleInputsOutputs(input, outputBuffer);
- }
- byte[] outputBytes = new byte[outputBuffer.remaining()];
- outputBuffer.get(outputBytes);
- // Below, the `charset` can be StandardCharsets.UTF_8.
- String output = new String(outputBytes, charset);
- 
-

Orders of inputs and outputs are determined when converting TensorFlow model to TensorFlowLite - model with Toco, as are the default shapes of the inputs. - -

When inputs are provided as (multi-dimensional) arrays, the corresponding input tensor(s) will - be implicitly resized according to that array's shape. When inputs are provided as Buffer - types, no implicit resizing is done; the caller must ensure that the Buffer byte size - either matches that of the corresponding tensor, or that they first resize the tensor via resizeInput(int, int[]). Tensor shape and type information can be obtained via the Tensor class, available via getInputTensor(int) and getOutputTensor(int). - -

WARNING:Interpreter instances are not thread-safe. A Interpreter - owns resources that must be explicitly freed by invoking close() -

The TFLite library is built against NDK API 19. It may work for Android API levels below 19, - but is not guaranteed. -

-

-
-
- -
-

Nested Classes

- - - - - - -
- - - - - classInterpreter.OptionsAn options class for controlling runtime interpreter behavior. 
-
- -
-

Public Constructors

- - - - - - - - - - - - - - - - - -
- -
-Interpreter(File modelFile) - -
Initializes an Interpreter.
-
-
- -
-Interpreter(File modelFile, Interpreter.Options options) - -
Initializes an Interpreter and specifies options for customizing interpreter behavior.
-
-
- -
-Interpreter(ByteBuffer byteBuffer) - -
Initializes an Interpreter with a ByteBuffer of a model file.
-
-
- -
-Interpreter(ByteBuffer byteBuffer, Interpreter.Options options) - -
Initializes an Interpreter with a ByteBuffer of a model file and a set of - custom Interpreter.Options.
-
-
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - void - -
-allocateTensors() - -
Explicitly updates allocations for all tensors, if necessary.
-
-
- - - - - - void - -
-close() - -
Release resources associated with the InterpreterApi instance.
-
-
- - - - - - int - -
-getInputIndex(String opName) - -
Gets index of an input given the op name of the input.
-
-
-Tensor - -
-getInputTensor(int inputIndex) - -
Gets the Tensor associated with the provided input index.
-
-
- - - - - - int - -
-getInputTensorCount() - -
Gets the number of input tensors.
-
-
-Tensor - -
-getInputTensorFromSignature(String inputName, String signatureKey) - -
Gets the Tensor associated with the provided input name and signature method name.
-
-
-Long - -
-getLastNativeInferenceDurationNanoseconds() - -
Returns native inference timing.
-
-
- - - - - - int - -
-getOutputIndex(String opName) - -
Gets index of an output given the op name of the output.
-
-
-Tensor - -
-getOutputTensor(int outputIndex) - -
Gets the Tensor associated with the provided output index.
-
-
- - - - - - int - -
-getOutputTensorCount() - -
Gets the number of output Tensors.
-
-
-Tensor - -
-getOutputTensorFromSignature(String outputName, String signatureKey) - -
Gets the Tensor associated with the provided output name in specific signature method.
-
-
-String[] - -
-getSignatureInputs(String signatureKey) - -
Gets the list of SignatureDefs inputs for method signatureKey.
-
-
-String[] - -
-getSignatureKeys() - -
Gets the list of SignatureDef exported method names available in the model.
-
-
-String[] - -
-getSignatureOutputs(String signatureKey) - -
Gets the list of SignatureDefs outputs for method signatureKey.
-
-
- - - - - - void - -
-resetVariableTensors() - -
Advanced: Resets all variable tensors to the default value.
-
-
- - - - - - void - -
-resizeInput(int idx, int[] dims, boolean strict) - -
Resizes idx-th input of the native model to the given dims.
-
-
- - - - - - void - -
-resizeInput(int idx, int[] dims) - -
Resizes idx-th input of the native model to the given dims.
-
-
- - - - - - void - -
-run(Object input, Object output) - -
Runs model inference if the model takes only one input, and provides only one output.
-
-
- - - - - - void - -
-runForMultipleInputsOutputs(Object[] inputs, Map<IntegerObject> outputs) - -
Runs model inference if the model takes multiple inputs, or returns multiple outputs.
-
-
- - - - - - void - -
-runSignature(Map<StringObject> inputs, Map<StringObject> outputs) - -
Same as runSignature(Map, Map, String) but doesn't require passing a signatureKey, - assuming the model has one SignatureDef.
-
-
- - - - - - void - -
-runSignature(Map<StringObject> inputs, Map<StringObject> outputs, String signatureKey) - -
Runs model inference based on SignatureDef provided through signatureKey.
-
-
- - - - - - void - -
-setCancelled(boolean cancelled) - -
Advanced: Interrupts inference in the middle of a call to run(Object, Object).
-
-
-
- -
-

Inherited Methods

- - - -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -Interpreter -(File modelFile) -

-
-
-
-
-

Initializes an Interpreter.

-
-
Parameters
- - - - - -
modelFilea File of a pre-trained TF Lite model.
-
-
-
Throws
- - - - - -
IllegalArgumentExceptionif modelFile does not encode a valid TensorFlow Lite - model. -
-
-
-
- -
-

- - public - - - - - - -Interpreter -(File modelFile, Interpreter.Options options) -

-
-
-
-
-

Initializes an Interpreter and specifies options for customizing interpreter behavior.

-
-
Parameters
- - - - - - - - - -
modelFilea file of a pre-trained TF Lite model
optionsa set of options for customizing interpreter behavior
-
-
-
Throws
- - - - - -
IllegalArgumentExceptionif modelFile does not encode a valid TensorFlow Lite - model. -
-
-
-
- -
-

- - public - - - - - - -Interpreter -(ByteBuffer byteBuffer) -

-
-
-
-
-

Initializes an Interpreter with a ByteBuffer of a model file. - -

The ByteBuffer should not be modified after the construction of a Interpreter. The - ByteBuffer can be either a MappedByteBuffer that memory-maps a model file, or a - direct ByteBuffer of nativeOrder() that contains the bytes content of a model.

-
-
Parameters
- - - - - -
byteBuffer
-
-
-
Throws
- - - - - -
IllegalArgumentExceptionif byteBuffer is not a MappedByteBuffer nor a - direct ByteBuffer of nativeOrder. -
-
-
-
- -
-

- - public - - - - - - -Interpreter -(ByteBuffer byteBuffer, Interpreter.Options options) -

-
-
-
-
-

Initializes an Interpreter with a ByteBuffer of a model file and a set of - custom Interpreter.Options. - -

The ByteBuffer should not be modified after the construction of an Interpreter. The ByteBuffer can be either a MappedByteBuffer that memory-maps - a model file, or a direct ByteBuffer of nativeOrder() that contains the bytes content - of a model.

-
-
Parameters
- - - - - - - - - -
byteBuffer
options
-
-
-
Throws
- - - - - -
IllegalArgumentExceptionif byteBuffer is not a MappedByteBuffer nor a - direct ByteBuffer of nativeOrder. -
-
-
-
-
- - - - -
-

Public Methods

- -
-

- - public - - - - - void - -allocateTensors -() -

-
-
-
-
-

Explicitly updates allocations for all tensors, if necessary. - -

This will propagate shapes and memory allocations for dependent tensors using the input - tensor shape(s) as given. - -

Note: This call is *purely optional*. Tensor allocation will occur automatically during - execution if any input tensors have been resized. This call is most useful in determining the - shapes for any output tensors before executing the graph, e.g., - -

 interpreter.resizeInput(0, new int[]{1, 4, 4, 3}));
- interpreter.allocateTensors();
- FloatBuffer input = FloatBuffer.allocate(interpreter.getInputTensor(0).numElements());
- // Populate inputs...
- FloatBuffer output = FloatBuffer.allocate(interpreter.getOutputTensor(0).numElements());
- interpreter.run(input, output)
- // Process outputs...
-

Note: Some graphs have dynamically shaped outputs, in which case the output shape may not - fully propagate until inference is executed.

-
-
- -
-

- - public - - - - - void - -close -() -

-
-
-
-
-

Release resources associated with the InterpreterApi instance.

-
-
- -
-

- - public - - - - - int - -getInputIndex -(String opName) -

-
-
-
-
-

Gets index of an input given the op name of the input.

-
-
Parameters
- - - - - -
opName
-
-
-
- -
-

- - public - - - - - Tensor - -getInputTensor -(int inputIndex) -

-
-
-
-
-

Gets the Tensor associated with the provided input index.

-
-
Parameters
- - - - - -
inputIndex
-
-
-
- -
-

- - public - - - - - int - -getInputTensorCount -() -

-
-
-
-
-

Gets the number of input tensors.

-
-
- -
-

- - public - - - - - Tensor - -getInputTensorFromSignature -(String inputName, String signatureKey) -

-
-
-
-
-

Gets the Tensor associated with the provided input name and signature method name. - -

WARNING: This is an experimental API and subject to change.

-
-
Parameters
- - - - - - - - - -
inputNameInput name in the signature.
signatureKeySignature key identifying the SignatureDef, can be null if the model has - one signature.
-
-
-
Throws
- - - - - -
IllegalArgumentExceptionif inputName or signatureKey is null or empty, - or invalid name provided. -
-
-
-
- -
-

- - public - - - - - Long - -getLastNativeInferenceDurationNanoseconds -() -

-
-
-
-
-

Returns native inference timing.

-
-
- -
-

- - public - - - - - int - -getOutputIndex -(String opName) -

-
-
-
-
-

Gets index of an output given the op name of the output.

-
-
Parameters
- - - - - -
opName
-
-
-
- -
-

- - public - - - - - Tensor - -getOutputTensor -(int outputIndex) -

-
-
-
-
-

Gets the Tensor associated with the provided output index. - -

Note: Output tensor details (e.g., shape) may not be fully populated until after inference - is executed. If you need updated details *before* running inference (e.g., after resizing an - input tensor, which may invalidate output tensor shapes), use allocateTensors() to - explicitly trigger allocation and shape propagation. Note that, for graphs with output shapes - that are dependent on input *values*, the output shape may not be fully determined until - running inference.

-
-
Parameters
- - - - - -
outputIndex
-
-
-
- -
-

- - public - - - - - int - -getOutputTensorCount -() -

-
-
-
-
-

Gets the number of output Tensors.

-
-
- -
-

- - public - - - - - Tensor - -getOutputTensorFromSignature -(String outputName, String signatureKey) -

-
-
-
-
-

Gets the Tensor associated with the provided output name in specific signature method. - -

Note: Output tensor details (e.g., shape) may not be fully populated until after inference - is executed. If you need updated details *before* running inference (e.g., after resizing an - input tensor, which may invalidate output tensor shapes), use allocateTensors() to - explicitly trigger allocation and shape propagation. Note that, for graphs with output shapes - that are dependent on input *values*, the output shape may not be fully determined until - running inference. - -

WARNING: This is an experimental API and subject to change.

-
-
Parameters
- - - - - - - - - -
outputNameOutput name in the signature.
signatureKeySignature key identifying the SignatureDef, can be null if the model has - one signature.
-
-
-
Throws
- - - - - -
IllegalArgumentExceptionif outputName or signatureKey is null or - empty, or invalid name provided. -
-
-
-
- -
-

- - public - - - - - String[] - -getSignatureInputs -(String signatureKey) -

-
-
-
-
-

Gets the list of SignatureDefs inputs for method signatureKey. - -

WARNING: This is an experimental API and subject to change. -

-
-
Parameters
- - - - - -
signatureKey
-
-
-
- -
-

- - public - - - - - String[] - -getSignatureKeys -() -

-
-
-
-
-

Gets the list of SignatureDef exported method names available in the model. - -

WARNING: This is an experimental API and subject to change. -

-
-
- -
-

- - public - - - - - String[] - -getSignatureOutputs -(String signatureKey) -

-
-
-
-
-

Gets the list of SignatureDefs outputs for method signatureKey. - -

WARNING: This is an experimental API and subject to change. -

-
-
Parameters
- - - - - -
signatureKey
-
-
-
- -
-

- - public - - - - - void - -resetVariableTensors -() -

-
-
-
-
-

Advanced: Resets all variable tensors to the default value. - -

If a variable tensor doesn't have an associated buffer, it will be reset to zero. - -

WARNING: This is an experimental API and subject to change. -

-
-
- -
-

- - public - - - - - void - -resizeInput -(int idx, int[] dims, boolean strict) -

-
-
-
-
-

Resizes idx-th input of the native model to the given dims. - -

When `strict` is True, only unknown dimensions can be resized. Unknown dimensions are - indicated as `-1` in the array returned by `Tensor.shapeSignature()`.

-
-
Parameters
- - - - - - - - - - - - - -
idx
dims
strict
-
-
-
- -
-

- - public - - - - - void - -resizeInput -(int idx, int[] dims) -

-
-
-
-
-

Resizes idx-th input of the native model to the given dims.

-
-
Parameters
- - - - - - - - - -
idx
dims
-
-
-
- -
-

- - public - - - - - void - -run -(Object input, Object output) -

-
-
-
-
-

Runs model inference if the model takes only one input, and provides only one output. - -

Warning: The API is more efficient if a Buffer (preferably direct, but not required) - is used as the input/output data type. Please consider using Buffer to feed and fetch - primitive data for better performance. The following concrete Buffer types are - supported: - -

    -
  • ByteBuffer - compatible with any underlying primitive Tensor type. -
  • FloatBuffer - compatible with float Tensors. -
  • IntBuffer - compatible with int32 Tensors. -
  • LongBuffer - compatible with int64 Tensors. -
- - Note that boolean types are only supported as arrays, not Buffers, or as scalar inputs.

-
-
Parameters
- - - - - - - - - -
inputan array or multidimensional array, or a Buffer of primitive types - including int, float, long, and byte. Buffer is the preferred way to pass large - input data for primitive types, whereas string types require using the (multi-dimensional) - array input path. When a Buffer is used, its content should remain unchanged until - model inference is done, and the caller must ensure that the Buffer is at the - appropriate read position. A null value is allowed only if the caller is using a - Delegate that allows buffer handle interop, and such a buffer has been bound to the - input Tensor.
outputa multidimensional array of output data, or a Buffer of primitive types - including int, float, long, and byte. When a Buffer is used, the caller must ensure - that it is set the appropriate write position. A null value is allowed, and is useful for - certain cases, e.g., if the caller is using a Delegate that allows buffer handle - interop, and such a buffer has been bound to the output Tensor (see also Interpreter.Options#setAllowBufferHandleOutput(boolean)), - or if the graph has dynamically shaped outputs and the caller must query the output Tensor shape after inference has been invoked, fetching the data directly from the output - tensor (via Tensor.asReadOnlyBuffer()).
-
-
-
- -
-

- - public - - - - - void - -runForMultipleInputsOutputs -(Object[] inputs, Map<IntegerObject> outputs) -

-
-
-
-
-

Runs model inference if the model takes multiple inputs, or returns multiple outputs. - -

Warning: The API is more efficient if Buffers (preferably direct, but not required) - are used as the input/output data types. Please consider using Buffer to feed and fetch - primitive data for better performance. The following concrete Buffer types are - supported: - -

    -
  • ByteBuffer - compatible with any underlying primitive Tensor type. -
  • FloatBuffer - compatible with float Tensors. -
  • IntBuffer - compatible with int32 Tensors. -
  • LongBuffer - compatible with int64 Tensors. -
- - Note that boolean types are only supported as arrays, not Buffers, or as scalar inputs. - -

Note: null values for invididual elements of inputs and outputs is - allowed only if the caller is using a Delegate that allows buffer handle interop, and - such a buffer has been bound to the corresponding input or output Tensor(s).

-
-
Parameters
- - - - - - - - - -
inputsan array of input data. The inputs should be in the same order as inputs of the - model. Each input can be an array or multidimensional array, or a Buffer of - primitive types including int, float, long, and byte. Buffer is the preferred way - to pass large input data, whereas string types require using the (multi-dimensional) array - input path. When Buffer is used, its content should remain unchanged until model - inference is done, and the caller must ensure that the Buffer is at the appropriate - read position.
outputsa map mapping output indices to multidimensional arrays of output data or Buffers of primitive types including int, float, long, and byte. It only needs to keep - entries for the outputs to be used. When a Buffer is used, the caller must ensure - that it is set the appropriate write position. The map may be empty for cases where either - buffer handles are used for output tensor data, or cases where the outputs are dynamically - shaped and the caller must query the output Tensor shape after inference has been - invoked, fetching the data directly from the output tensor (via Tensor.asReadOnlyBuffer()).
-
-
-
- -
-

- - public - - - - - void - -runSignature -(Map<StringObject> inputs, Map<StringObject> outputs) -

-
-
-
-
-

Same as runSignature(Map, Map, String) but doesn't require passing a signatureKey, - assuming the model has one SignatureDef. If the model has more than one SignatureDef it will - throw an exception. - -

WARNING: This is an experimental API and subject to change. -

-
-
Parameters
- - - - - - - - - -
inputs
outputs
-
-
-
- -
-

- - public - - - - - void - -runSignature -(Map<StringObject> inputs, Map<StringObject> outputs, String signatureKey) -

-
-
-
-
-

Runs model inference based on SignatureDef provided through signatureKey. - -

See run(Object, Object) for more details on the allowed input and output - data types. - -

WARNING: This is an experimental API and subject to change.

-
-
Parameters
- - - - - - - - - - - - - -
inputsA map from input name in the SignatureDef to an input object.
outputsA map from output name in SignatureDef to output data. This may be empty if the - caller wishes to query the Tensor data directly after inference (e.g., if the - output shape is dynamic, or output buffer handles are used).
signatureKeySignature key identifying the SignatureDef.
-
-
-
Throws
- - - - - -
IllegalArgumentExceptionif inputs is null or empty, if outputs or - signatureKey is null, or if an error occurs when running inference. -
-
-
-
- -
-

- - public - - - - - void - -setCancelled -(boolean cancelled) -

-
-
-
-
-

Advanced: Interrupts inference in the middle of a call to run(Object, Object). - -

A cancellation flag will be set to true when this function gets called. The interpreter will - check the flag between Op invocations, and if it's true, the interpreter will stop - execution. The interpreter will remain a cancelled state until explicitly "uncancelled" by - setCancelled(false). - -

WARNING: This is an experimental API and subject to change.

-
-
Parameters
- - - - - -
cancelledtrue to cancel inference in a best-effort way; false to - resume.
-
-
-
Throws
- - - - - -
IllegalStateExceptionif the interpreter is not initialized with the cancellable - option, which is by default off.
-
- -
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/InterpreterApi.Options.TfLiteRuntime.html b/site/en/lite/api_docs/java/org/tensorflow/lite/InterpreterApi.Options.TfLiteRuntime.html deleted file mode 100644 index bacec2eaea..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/InterpreterApi.Options.TfLiteRuntime.html +++ /dev/null @@ -1,485 +0,0 @@ - - - - - - - - - -InterpreterApi.Options.TfLiteRuntime - - - -
-
-
-
-
- -
- public static final enum - InterpreterApi.Options.TfLiteRuntime -
-
-
-
-

Enum to represent where to get the TensorFlow Lite runtime implementation from. - -

The difference between this class and the RuntimeFlavor class: This class specifies a - preference which runtime to use, whereas RuntimeFlavor specifies which exact - runtime is being used. -

-

-
-
- -
-

Inherited Methods

- - - -
-
- -
- - - - -
-

Enum Values

- -
-

- - public - static - final - - - InterpreterApi.Options.TfLiteRuntime - - -FROM_APPLICATION_ONLY -

-
-
-
-

Use a TF Lite runtime implementation that is linked into the application. If there is no - suitable TF Lite runtime implementation linked into the application, then attempting to - create an InterpreterApi instance with this TfLiteRuntime setting will throw an - IllegalStateException exception (even if the OS or system services could provide a TF Lite - runtime implementation). - -

This is the default setting. This setting is also appropriate for apps that must run on - systems that don't provide a TF Lite runtime implementation. -

-
-
- -
-

- - public - static - final - - - InterpreterApi.Options.TfLiteRuntime - - -FROM_SYSTEM_ONLY -

-
-
-
-

Use a TF Lite runtime implementation provided by the OS or system services. This will be - obtained from a system library / shared object / service, such as Google Play Services. It - may be newer than the version linked into the application (if any). If there is no suitable - TF Lite runtime implementation provided by the system, then attempting to create an - InterpreterApi instance with this TfLiteRuntime setting will throw an IllegalStateException - exception (even if there is a TF Lite runtime implementation linked into the application). - -

This setting is appropriate for code that will use a system-provided TF Lite runtime, - which can reduce app binary size and can be updated more frequently. -

-
-
- -
-

- - public - static - final - - - InterpreterApi.Options.TfLiteRuntime - - -PREFER_SYSTEM_OVER_APPLICATION -

-
-
-
-

Use a system-provided TF Lite runtime implementation, if any, otherwise use the TF Lite - runtime implementation linked into the application, if any. If no suitable TF Lite runtime - can be found in any location, then attempting to create an InterpreterApi instance with - this TFLiteRuntime setting will throw an IllegalStateException. If there is both a suitable - TF Lite runtime linked into the application and also a suitable TF Lite runtime provided by - the system, the one provided by the system will be used. - -

This setting is suitable for use in code that doesn't care where the TF Lite runtime is - coming from (e.g. middleware layers). -

-
-
-
- - - - - - - - - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/InterpreterApi.Options.html b/site/en/lite/api_docs/java/org/tensorflow/lite/InterpreterApi.Options.html deleted file mode 100644 index d99546f909..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/InterpreterApi.Options.html +++ /dev/null @@ -1,991 +0,0 @@ - - - - - - - - - -InterpreterApi.Options - - - -
-
-
-
-
- -
- public static class - InterpreterApi.Options -
-
-
-
- Known Direct Subclasses - -
- - -
-
-
-

An options class for controlling runtime interpreter behavior.

-
-
-
- -
-

Nested Classes

- - - - - - -
- - - - - enumInterpreterApi.Options.TfLiteRuntimeEnum to represent where to get the TensorFlow Lite runtime implementation from. 
-
- -
-

Public Constructors

- - - - - - - - - -
- -
-Options() - -
-
- - -
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-InterpreterApi.Options - -
-addDelegate(Delegate delegate) - -
Adds a Delegate to be applied during interpreter creation.
-
-
-InterpreterApi.Options - -
-addDelegateFactory(DelegateFactory delegateFactory) - -
Adds a DelegateFactory which will be invoked to apply its created Delegate - during interpreter creation.
-
-
-ValidatedAccelerationConfig - -
-getAccelerationConfig() - -
Return the acceleration configuration.
-
-
-List<DelegateFactory> - -
-getDelegateFactories() - -
Returns the list of delegate factories that have been registered via addDelegateFactory).
-
-
-List<Delegate> - -
-getDelegates() - -
Returns the list of delegates intended to be applied during interpreter creation that have - been registered via addDelegate.
-
-
- - - - - - int - -
-getNumThreads() - -
Returns the number of threads to be used for ops that support multi-threading.
-
-
-InterpreterApi.Options.TfLiteRuntime - -
-getRuntime() - -
Return where to get the TF Lite runtime implementation from.
-
-
- - - - - - boolean - -
-getUseNNAPI() - -
Returns whether to use NN API (if available) for op execution.
-
-
- - - - - - boolean - -
-getUseXNNPACK() - -
-
- - - - - - boolean - -
-isCancellable() - -
Advanced: Returns whether the interpreter is able to be cancelled.
-
-
-InterpreterApi.Options - -
-setAccelerationConfig(ValidatedAccelerationConfig config) - -
Specify the acceleration configuration.
-
-
-InterpreterApi.Options - -
-setCancellable(boolean allow) - -
Advanced: Set if the interpreter is able to be cancelled.
-
-
-InterpreterApi.Options - -
-setNumThreads(int numThreads) - -
Sets the number of threads to be used for ops that support multi-threading.
-
-
-InterpreterApi.Options - -
-setRuntime(InterpreterApi.Options.TfLiteRuntime runtime) - -
Specify where to get the TF Lite runtime implementation from.
-
-
-InterpreterApi.Options - -
-setUseNNAPI(boolean useNNAPI) - -
Sets whether to use NN API (if available) for op execution.
-
-
-InterpreterApi.Options - -
-setUseXNNPACK(boolean useXNNPACK) - -
Enable or disable an optimized set of CPU kernels (provided by XNNPACK).
-
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -Options -() -

-
-
-
-
-

-
-
- -
-

- - public - - - - - - -Options -(InterpreterApi.Options other) -

-
-
-
-
-

-
-
Parameters
- - - - - -
other
-
-
-
-
- - - - -
-

Public Methods

- -
-

- - public - - - - - InterpreterApi.Options - -addDelegate -(Delegate delegate) -

-
-
-
-
-

Adds a Delegate to be applied during interpreter creation. - -

Delegates added here are applied before any delegates created from a DelegateFactory that was added with addDelegateFactory(DelegateFactory). - -

Note that TF Lite in Google Play Services (see setRuntime(InterpreterApi.Options.TfLiteRuntime)) does not support - external (developer-provided) delegates, and adding a Delegate other than ERROR(/NnApiDelegate) here is not allowed when using TF Lite in Google Play Services. -

-
-
Parameters
- - - - - -
delegate
-
-
-
- -
-

- - public - - - - - InterpreterApi.Options - -addDelegateFactory -(DelegateFactory delegateFactory) -

-
-
-
-
-

Adds a DelegateFactory which will be invoked to apply its created Delegate - during interpreter creation. - -

Delegates from a delegated factory that was added here are applied after any delegates - added with addDelegate(Delegate). -

-
-
Parameters
- - - - - -
delegateFactory
-
-
-
- -
-

- - public - - - - - ValidatedAccelerationConfig - -getAccelerationConfig -() -

-
-
-
-
-

Return the acceleration configuration.

-
-
- -
-

- - public - - - - - List<DelegateFactory> - -getDelegateFactories -() -

-
-
-
-
-

Returns the list of delegate factories that have been registered via addDelegateFactory). -

-
-
- -
-

- - public - - - - - List<Delegate> - -getDelegates -() -

-
-
-
-
-

Returns the list of delegates intended to be applied during interpreter creation that have - been registered via addDelegate. -

-
-
- -
-

- - public - - - - - int - -getNumThreads -() -

-
-
-
-
-

Returns the number of threads to be used for ops that support multi-threading. - -

numThreads should be &gt;= -1. Values of 0 (or 1) disable multithreading. - Default value is -1: the number of threads used will be implementation-defined and - platform-dependent. -

-
-
- -
-

- - public - - - - - InterpreterApi.Options.TfLiteRuntime - -getRuntime -() -

-
-
-
-
-

Return where to get the TF Lite runtime implementation from.

-
-
- -
-

- - public - - - - - boolean - -getUseNNAPI -() -

-
-
-
-
-

Returns whether to use NN API (if available) for op execution. Default value is false - (disabled). -

-
-
- -
-

- - public - - - - - boolean - -getUseXNNPACK -() -

-
-
-
-
-

-
-
- -
-

- - public - - - - - boolean - -isCancellable -() -

-
-
-
-
-

Advanced: Returns whether the interpreter is able to be cancelled. - -

Interpreters may have an experimental API setCancelled(boolean). - If this interpreter is cancellable and such a method is invoked, a cancellation flag will be - set to true. The interpreter will check the flag between Op invocations, and if it's true, the interpreter will stop execution. The interpreter will remain a cancelled state - until explicitly "uncancelled" by setCancelled(false). -

-
-
- -
-

- - public - - - - - InterpreterApi.Options - -setAccelerationConfig -(ValidatedAccelerationConfig config) -

-
-
-
-
-

Specify the acceleration configuration.

-
-
Parameters
- - - - - -
config
-
-
-
- -
-

- - public - - - - - InterpreterApi.Options - -setCancellable -(boolean allow) -

-
-
-
-
-

Advanced: Set if the interpreter is able to be cancelled. - -

Interpreters may have an experimental API setCancelled(boolean). - If this interpreter is cancellable and such a method is invoked, a cancellation flag will be - set to true. The interpreter will check the flag between Op invocations, and if it's true, the interpreter will stop execution. The interpreter will remain a cancelled state - until explicitly "uncancelled" by setCancelled(false). -

-
-
Parameters
- - - - - -
allow
-
-
-
- -
-

- - public - - - - - InterpreterApi.Options - -setNumThreads -(int numThreads) -

-
-
-
-
-

Sets the number of threads to be used for ops that support multi-threading. - -

numThreads should be &gt;= -1. Setting numThreads to 0 has the effect - of disabling multithreading, which is equivalent to setting numThreads to 1. If - unspecified, or set to the value -1, the number of threads used will be - implementation-defined and platform-dependent. -

-
-
Parameters
- - - - - -
numThreads
-
-
-
- -
-

- - public - - - - - InterpreterApi.Options - -setRuntime -(InterpreterApi.Options.TfLiteRuntime runtime) -

-
-
-
-
-

Specify where to get the TF Lite runtime implementation from.

-
-
Parameters
- - - - - -
runtime
-
-
-
- -
-

- - public - - - - - InterpreterApi.Options - -setUseNNAPI -(boolean useNNAPI) -

-
-
-
-
-

Sets whether to use NN API (if available) for op execution. Defaults to false (disabled).

-
-
Parameters
- - - - - -
useNNAPI
-
-
-
- -
-

- - public - - - - - InterpreterApi.Options - -setUseXNNPACK -(boolean useXNNPACK) -

-
-
-
-
-

Enable or disable an optimized set of CPU kernels (provided by XNNPACK). Enabled by default. -

-
-
Parameters
- - - - - -
useXNNPACK
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/InterpreterApi.html b/site/en/lite/api_docs/java/org/tensorflow/lite/InterpreterApi.html deleted file mode 100644 index 348b985f3c..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/InterpreterApi.html +++ /dev/null @@ -1,1097 +0,0 @@ - - - - - - - - - -InterpreterApi - - - -
-
-
-
-
- -
- public interface - InterpreterApi -
-
-
-
- Known Indirect Subclasses - -
- - -
-
-
-

Interface to TensorFlow Lite model interpreter, excluding experimental methods. - -

An InterpreterApi instance encapsulates a pre-trained TensorFlow Lite model, in which - operations are executed for model inference. - -

For example, if a model takes only one input and returns only one output: - -

try (InterpreterApi interpreter =
-     new InterpreterApi.create(file_of_a_tensorflowlite_model)) {
-   interpreter.run(input, output);
- }
- 
-

If a model takes multiple inputs or outputs: - -

Object[] inputs = {input0, input1, ...};
- Map&lt;Integer, Object&gt; map_of_indices_to_outputs = new HashMap&lt;&gt;();
- FloatBuffer ith_output = FloatBuffer.allocateDirect(3 * 2 * 4);  // Float tensor, shape 3x2x4.
- ith_output.order(ByteOrder.nativeOrder());
- map_of_indices_to_outputs.put(i, ith_output);
- try (InterpreterApi interpreter =
-     new InterpreterApi.create(file_of_a_tensorflowlite_model)) {
-   interpreter.runForMultipleInputsOutputs(inputs, map_of_indices_to_outputs);
- }
- 
-

If a model takes or produces string tensors: - -

String[] input = {"foo", "bar"};  // Input tensor shape is [2].
- String[][] output = new String[3][2];  // Output tensor shape is [3, 2].
- try (InterpreterApi interpreter =
-     new InterpreterApi.create(file_of_a_tensorflowlite_model)) {
-   interpreter.runForMultipleInputsOutputs(input, output);
- }
- 
-

Note that there's a distinction between shape [] and shape[1]. For scalar string tensor - outputs: - -

String[] input = {"foo"};  // Input tensor shape is [1].
- ByteBuffer outputBuffer = ByteBuffer.allocate(OUTPUT_BYTES_SIZE);  // Output tensor shape is [].
- try (Interpreter interpreter = new Interpreter(file_of_a_tensorflowlite_model)) {
-   interpreter.runForMultipleInputsOutputs(input, outputBuffer);
- }
- byte[] outputBytes = new byte[outputBuffer.remaining()];
- outputBuffer.get(outputBytes);
- // Below, the `charset` can be StandardCharsets.UTF_8.
- String output = new String(outputBytes, charset);
- 
-

Orders of inputs and outputs are determined when converting TensorFlow model to TensorFlowLite - model with Toco, as are the default shapes of the inputs. - -

When inputs are provided as (multi-dimensional) arrays, the corresponding input tensor(s) will - be implicitly resized according to that array's shape. When inputs are provided as Buffer types, no implicit resizing is done; the caller must ensure that the Buffer byte size either matches that of the corresponding tensor, or that they first - resize the tensor via resizeInput(int, int[]). Tensor shape and type information can be - obtained via the Tensor class, available via getInputTensor(int) and getOutputTensor(int). - -

WARNING:InterpreterApi instances are not thread-safe. - -

WARNING:An InterpreterApi instance owns resources that must be - explicitly freed by invoking close() -

The TFLite library is built against NDK API 19. It may work for Android API levels below 19, - but is not guaranteed. -

-

-
-
- -
-

Nested Classes

- - - - - - -
- - - - - classInterpreterApi.OptionsAn options class for controlling runtime interpreter behavior. 
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- abstract - - - - - void - -
-allocateTensors() - -
Explicitly updates allocations for all tensors, if necessary.
-
-
- abstract - - - - - void - -
-close() - -
Release resources associated with the InterpreterApi instance.
-
-
- - - - static - - InterpreterApi - -
-create(File modelFile, InterpreterApi.Options options) - -
Constructs an InterpreterApi instance, using the specified model and options.
-
-
- - - - static - - InterpreterApi - -
-create(ByteBuffer byteBuffer, InterpreterApi.Options options) - -
Constructs an InterpreterApi instance, using the specified model and options.
-
-
- abstract - - - - - int - -
-getInputIndex(String opName) - -
Gets index of an input given the op name of the input.
-
-
- abstract - - - - - Tensor - -
-getInputTensor(int inputIndex) - -
Gets the Tensor associated with the provided input index.
-
-
- abstract - - - - - int - -
-getInputTensorCount() - -
Gets the number of input tensors.
-
-
- abstract - - - - - Long - -
-getLastNativeInferenceDurationNanoseconds() - -
Returns native inference timing.
-
-
- abstract - - - - - int - -
-getOutputIndex(String opName) - -
Gets index of an output given the op name of the output.
-
-
- abstract - - - - - Tensor - -
-getOutputTensor(int outputIndex) - -
Gets the Tensor associated with the provided output index.
-
-
- abstract - - - - - int - -
-getOutputTensorCount() - -
Gets the number of output Tensors.
-
-
- abstract - - - - - void - -
-resizeInput(int idx, int[] dims, boolean strict) - -
Resizes idx-th input of the native model to the given dims.
-
-
- abstract - - - - - void - -
-resizeInput(int idx, int[] dims) - -
Resizes idx-th input of the native model to the given dims.
-
-
- abstract - - - - - void - -
-run(Object input, Object output) - -
Runs model inference if the model takes only one input, and provides only one output.
-
-
- abstract - - - - - void - -
-runForMultipleInputsOutputs(Object[] inputs, Map<IntegerObject> outputs) - -
Runs model inference if the model takes multiple inputs, or returns multiple outputs.
-
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - - - - -
-

Public Methods

- -
-

- - public - - - abstract - - void - -allocateTensors -() -

-
-
-
-
-

Explicitly updates allocations for all tensors, if necessary. - -

This will propagate shapes and memory allocations for dependent tensors using the input - tensor shape(s) as given. - -

Note: This call is *purely optional*. Tensor allocation will occur automatically during - execution if any input tensors have been resized. This call is most useful in determining the - shapes for any output tensors before executing the graph, e.g., - -

 interpreter.resizeInput(0, new int[]{1, 4, 4, 3}));
- interpreter.allocateTensors();
- FloatBuffer input = FloatBuffer.allocate(interpreter.getInputTensor(0).numElements());
- // Populate inputs...
- FloatBuffer output = FloatBuffer.allocate(interpreter.getOutputTensor(0).numElements());
- interpreter.run(input, output)
- // Process outputs...
-

Note: Some graphs have dynamically shaped outputs, in which case the output shape may not - fully propagate until inference is executed.

-
-
Throws
- - - - - -
IllegalStateExceptionif the graph's tensors could not be successfully allocated. -
-
-
-
- -
-

- - public - - - abstract - - void - -close -() -

-
-
-
-
-

Release resources associated with the InterpreterApi instance.

-
-
- -
-

- - public - static - - - - InterpreterApi - -create -(File modelFile, InterpreterApi.Options options) -

-
-
-
-
-

Constructs an InterpreterApi instance, using the specified model and options. The model - will be loaded from a file.

-
-
Parameters
- - - - - - - - - -
modelFileA file containing a pre-trained TF Lite model.
optionsA set of options for customizing interpreter behavior.
-
-
-
Throws
- - - - - -
IllegalArgumentExceptionif modelFile does not encode a valid TensorFlow Lite - model. -
-
-
-
- -
-

- - public - static - - - - InterpreterApi - -create -(ByteBuffer byteBuffer, InterpreterApi.Options options) -

-
-
-
-
-

Constructs an InterpreterApi instance, using the specified model and options. The model - will be read from a ByteBuffer.

-
-
Parameters
- - - - - - - - - -
byteBufferA pre-trained TF Lite model, in binary serialized form. The ByteBuffer should - not be modified after the construction of an InterpreterApi instance. The ByteBuffer can be either a MappedByteBuffer that memory-maps a model file, or a - direct ByteBuffer of nativeOrder() that contains the bytes content of a model.
optionsA set of options for customizing interpreter behavior.
-
-
-
Throws
- - - - - -
IllegalArgumentExceptionif byteBuffer is not a MappedByteBuffer nor a - direct ByteBuffer of nativeOrder. -
-
-
-
- -
-

- - public - - - abstract - - int - -getInputIndex -(String opName) -

-
-
-
-
-

Gets index of an input given the op name of the input.

-
-
Parameters
- - - - - -
opName
-
-
-
Throws
- - - - - -
IllegalArgumentExceptionif opName does not match any input in the model used - to initialize the interpreter. -
-
-
-
- -
-

- - public - - - abstract - - Tensor - -getInputTensor -(int inputIndex) -

-
-
-
-
-

Gets the Tensor associated with the provided input index.

-
-
Parameters
- - - - - -
inputIndex
-
-
-
Throws
- - - - - -
IllegalArgumentExceptionif inputIndex is negative or is not smaller than the - number of model inputs. -
-
-
-
- -
-

- - public - - - abstract - - int - -getInputTensorCount -() -

-
-
-
-
-

Gets the number of input tensors.

-
-
- -
-

- - public - - - abstract - - Long - -getLastNativeInferenceDurationNanoseconds -() -

-
-
-
-
-

Returns native inference timing.

-
-
Throws
- - - - - -
IllegalArgumentExceptionif the model is not initialized by the interpreter. -
-
-
-
- -
-

- - public - - - abstract - - int - -getOutputIndex -(String opName) -

-
-
-
-
-

Gets index of an output given the op name of the output.

-
-
Parameters
- - - - - -
opName
-
-
-
Throws
- - - - - -
IllegalArgumentExceptionif opName does not match any output in the model used - to initialize the interpreter. -
-
-
-
- -
-

- - public - - - abstract - - Tensor - -getOutputTensor -(int outputIndex) -

-
-
-
-
-

Gets the Tensor associated with the provided output index. - -

Note: Output tensor details (e.g., shape) may not be fully populated until after inference - is executed. If you need updated details *before* running inference (e.g., after resizing an - input tensor, which may invalidate output tensor shapes), use allocateTensors() to - explicitly trigger allocation and shape propagation. Note that, for graphs with output shapes - that are dependent on input *values*, the output shape may not be fully determined until - running inference.

-
-
Parameters
- - - - - -
outputIndex
-
-
-
Throws
- - - - - -
IllegalArgumentExceptionif outputIndex is negative or is not smaller than the - number of model outputs. -
-
-
-
- -
-

- - public - - - abstract - - int - -getOutputTensorCount -() -

-
-
-
-
-

Gets the number of output Tensors.

-
-
- -
-

- - public - - - abstract - - void - -resizeInput -(int idx, int[] dims, boolean strict) -

-
-
-
-
-

Resizes idx-th input of the native model to the given dims. - -

When `strict` is True, only unknown dimensions can be resized. Unknown dimensions are - indicated as `-1` in the array returned by `Tensor.shapeSignature()`.

-
-
Parameters
- - - - - - - - - - - - - -
idx
dims
strict
-
-
-
Throws
- - - - - -
IllegalArgumentExceptionif idx is negative or is not smaller than the number - of model inputs; or if error occurs when resizing the idx-th input. Additionally, the error - occurs when attempting to resize a tensor with fixed dimensions when `strict` is True. -
-
-
-
- -
-

- - public - - - abstract - - void - -resizeInput -(int idx, int[] dims) -

-
-
-
-
-

Resizes idx-th input of the native model to the given dims.

-
-
Parameters
- - - - - - - - - -
idx
dims
-
-
-
Throws
- - - - - -
IllegalArgumentExceptionif idx is negative or is not smaller than the number - of model inputs; or if error occurs when resizing the idx-th input. -
-
-
-
- -
-

- - public - - - abstract - - void - -run -(Object input, Object output) -

-
-
-
-
-

Runs model inference if the model takes only one input, and provides only one output. - -

Warning: The API is more efficient if a Buffer (preferably direct, but not required) - is used as the input/output data type. Please consider using Buffer to feed and fetch - primitive data for better performance. The following concrete Buffer types are - supported: - -

    -
  • ByteBuffer - compatible with any underlying primitive Tensor type. -
  • FloatBuffer - compatible with float Tensors. -
  • IntBuffer - compatible with int32 Tensors. -
  • LongBuffer - compatible with int64 Tensors. -
- - Note that boolean types are only supported as arrays, not Buffers, or as scalar inputs.

-
-
Parameters
- - - - - - - - - -
inputan array or multidimensional array, or a Buffer of primitive types - including int, float, long, and byte. Buffer is the preferred way to pass large - input data for primitive types, whereas string types require using the (multi-dimensional) - array input path. When a Buffer is used, its content should remain unchanged until - model inference is done, and the caller must ensure that the Buffer is at the - appropriate read position. A null value is allowed only if the caller is using a - Delegate that allows buffer handle interop, and such a buffer has been bound to the - input Tensor.
outputa multidimensional array of output data, or a Buffer of primitive types - including int, float, long, and byte. When a Buffer is used, the caller must ensure - that it is set the appropriate write position. A null value is allowed, and is useful for - certain cases, e.g., if the caller is using a Delegate that allows buffer handle - interop, and such a buffer has been bound to the output Tensor (see also Interpreter.Options#setAllowBufferHandleOutput(boolean)), - or if the graph has dynamically shaped outputs and the caller must query the output Tensor shape after inference has been invoked, fetching the data directly from the output - tensor (via Tensor.asReadOnlyBuffer()).
-
-
-
Throws
- - - - - - - - - -
IllegalArgumentExceptionif input is null or empty, or if an error occurs when - running inference.
IllegalArgumentException(EXPERIMENTAL, subject to change) if the inference is - interrupted by setCancelled(true). -
-
-
-
- -
-

- - public - - - abstract - - void - -runForMultipleInputsOutputs -(Object[] inputs, Map<IntegerObject> outputs) -

-
-
-
-
-

Runs model inference if the model takes multiple inputs, or returns multiple outputs. - -

Warning: The API is more efficient if Buffers (preferably direct, but not required) - are used as the input/output data types. Please consider using Buffer to feed and fetch - primitive data for better performance. The following concrete Buffer types are - supported: - -

    -
  • ByteBuffer - compatible with any underlying primitive Tensor type. -
  • FloatBuffer - compatible with float Tensors. -
  • IntBuffer - compatible with int32 Tensors. -
  • LongBuffer - compatible with int64 Tensors. -
- - Note that boolean types are only supported as arrays, not Buffers, or as scalar inputs. - -

Note: null values for invididual elements of inputs and outputs is - allowed only if the caller is using a Delegate that allows buffer handle interop, and - such a buffer has been bound to the corresponding input or output Tensor(s).

-
-
Parameters
- - - - - - - - - -
inputsan array of input data. The inputs should be in the same order as inputs of the - model. Each input can be an array or multidimensional array, or a Buffer of - primitive types including int, float, long, and byte. Buffer is the preferred way - to pass large input data, whereas string types require using the (multi-dimensional) array - input path. When Buffer is used, its content should remain unchanged until model - inference is done, and the caller must ensure that the Buffer is at the appropriate - read position.
outputsa map mapping output indices to multidimensional arrays of output data or Buffers of primitive types including int, float, long, and byte. It only needs to keep - entries for the outputs to be used. When a Buffer is used, the caller must ensure - that it is set the appropriate write position. The map may be empty for cases where either - buffer handles are used for output tensor data, or cases where the outputs are dynamically - shaped and the caller must query the output Tensor shape after inference has been - invoked, fetching the data directly from the output tensor (via Tensor.asReadOnlyBuffer()).
-
-
-
Throws
- - - - - -
IllegalArgumentExceptionif inputs is null or empty, if outputs is - null, or if an error occurs when running inference. -
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/InterpreterFactory.html b/site/en/lite/api_docs/java/org/tensorflow/lite/InterpreterFactory.html deleted file mode 100644 index 1e4d3afaa7..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/InterpreterFactory.html +++ /dev/null @@ -1,378 +0,0 @@ - - - - - - - - - -InterpreterFactory - - - -
-
-
-
-
- -
- public class - InterpreterFactory -
-
-
-
-

Factory for constructing InterpreterApi instances. - -

Deprecated; please use the InterpreterApi.create method instead. -

-

-
-
- -
-

Public Constructors

- - - - - -
- - -
-
- -
-

Public Methods

- - - - - - - - - -
-InterpreterApi - -
-create(File modelFile, InterpreterApi.Options options) - -
Constructs an InterpreterApi instance, using the specified model and options.
-
-
-InterpreterApi - -
-create(ByteBuffer byteBuffer, InterpreterApi.Options options) - -
Constructs an InterpreterApi instance, using the specified model and options.
-
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -InterpreterFactory -() -

-
-
-
-
-

-
-
-
- - - - -
-

Public Methods

- -
-

- - public - - - - - InterpreterApi - -create -(File modelFile, InterpreterApi.Options options) -

-
-
-
-
-

Constructs an InterpreterApi instance, using the specified model and options. The model - will be loaded from a file.

-
-
Parameters
- - - - - - - - - -
modelFileA file containing a pre-trained TF Lite model.
optionsA set of options for customizing interpreter behavior.
-
-
-
Throws
- - - - - -
IllegalArgumentExceptionif modelFile does not encode a valid TensorFlow Lite - model. -
-
-
-
- -
-

- - public - - - - - InterpreterApi - -create -(ByteBuffer byteBuffer, InterpreterApi.Options options) -

-
-
-
-
-

Constructs an InterpreterApi instance, using the specified model and options. The model - will be read from a ByteBuffer.

-
-
Parameters
- - - - - - - - - -
byteBufferA pre-trained TF Lite model, in binary serialized form. The ByteBuffer should - not be modified after the construction of an InterpreterApi instance. The ByteBuffer can be either a MappedByteBuffer that memory-maps a model file, or a - direct ByteBuffer of nativeOrder() that contains the bytes content of a model.
optionsA set of options for customizing interpreter behavior.
-
-
-
Throws
- - - - - -
IllegalArgumentExceptionif byteBuffer is not a MappedByteBuffer nor a - direct ByteBuffer of nativeOrder. -
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/RuntimeFlavor.html b/site/en/lite/api_docs/java/org/tensorflow/lite/RuntimeFlavor.html deleted file mode 100644 index 9dbafaddce..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/RuntimeFlavor.html +++ /dev/null @@ -1,437 +0,0 @@ - - - - - - - - - -RuntimeFlavor - - - -
-
-
-
-
- -
- public final enum - RuntimeFlavor -
-
-
-
-

Represents a TFLite runtime. In contrast to InterpreterApi.Options.TfLiteRuntime, this enum represents the - actual runtime that is being used, whereas the latter represents a preference for which runtime - should be used. -

-
-
-
- -
-

Inherited Methods

- - - -
-
- -
- - - - -
-

Enum Values

- -
-

- - public - static - final - - - RuntimeFlavor - - -APPLICATION -

-
-
-
-

A TFLite runtime built directly into the application.

-
-
- -
-

- - public - static - final - - - RuntimeFlavor - - -SYSTEM -

-
-
-
-

A TFLite runtime provided by the system (TFLite in Google Play Services).

-
-
-
- - - - - - - - - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/Tensor.QuantizationParams.html b/site/en/lite/api_docs/java/org/tensorflow/lite/Tensor.QuantizationParams.html deleted file mode 100644 index f203c57bf1..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/Tensor.QuantizationParams.html +++ /dev/null @@ -1,358 +0,0 @@ - - - - - - - - - -Tensor.QuantizationParams - - - -
-
-
-
-
- -
- public static class - Tensor.QuantizationParams -
-
-
-
-

Quantization parameters that corresponds to the table, QuantizationParameters, in the - TFLite - Model schema file. -

Since per-channel quantization does not apply to input and output tensors, scale and - zero_point are both single values instead of arrays. - -

For tensor that are not quantized, the values of scale and zero_point are both 0. - -

Given a quantized value q, the corresponding float value f should be:
- f = scale * (q - zero_point)
-

-

-
-
- -
-

Public Constructors

- - - - - -
- -
-QuantizationParams(float scale, int zeroPoint) - -
Creates a Tensor.QuantizationParams with scale and zero_point.
-
-
-
- -
-

Public Methods

- - - - - - - - - -
- - - - - - float - -
-getScale() - -
Returns the scale value.
-
-
- - - - - - int - -
-getZeroPoint() - -
Returns the zero point value.
-
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -QuantizationParams -(float scale, int zeroPoint) -

-
-
-
-
-

Creates a Tensor.QuantizationParams with scale and zero_point.

-
-
Parameters
- - - - - - - - - -
scaleThe scale value used in quantization.
zeroPointThe zero point value used in quantization. -
-
-
-
-
- - - - -
-

Public Methods

- -
-

- - public - - - - - float - -getScale -() -

-
-
-
-
-

Returns the scale value.

-
-
- -
-

- - public - - - - - int - -getZeroPoint -() -

-
-
-
-
-

Returns the zero point value.

-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/Tensor.html b/site/en/lite/api_docs/java/org/tensorflow/lite/Tensor.html deleted file mode 100644 index 263bb86251..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/Tensor.html +++ /dev/null @@ -1,436 +0,0 @@ - - - - - - - - - -Tensor - - - -
-
-
-
-
- -
- public interface - Tensor -
-
-
-
-

A typed multi-dimensional array used in Tensorflow Lite. - -

The native handle of a Tensor is managed by NativeInterpreterWrapper, and does - not needed to be closed by the client. However, once the NativeInterpreterWrapper has - been closed, the tensor handle will be invalidated. -

-

-
-
- -
-

Nested Classes

- - - - - - -
- - - - - classTensor.QuantizationParamsQuantization parameters that corresponds to the table, QuantizationParameters, in the - TFLite - Model schema file. 
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- abstract - - - - - ByteBuffer - -
-asReadOnlyBuffer() - -
Returns a read-only ByteBuffer view of the tensor data.
-
-
- abstract - - - - - DataType - -
-dataType() - -
Returns the DataType of elements stored in the Tensor.
-
-
- abstract - - - - - int - -
-numBytes() - -
Returns the size, in bytes, of the tensor data.
-
-
- abstract - - - - - int - -
-numDimensions() - -
Returns the number of dimensions (sometimes referred to as rank) of the Tensor.
-
-
- abstract - - - - - int - -
-numElements() - -
Returns the number of elements in a flattened (1-D) view of the tensor.
-
-
- abstract - - - - - Tensor.QuantizationParams - -
-quantizationParams() - -
Returns the quantization parameters of the tensor within the owning interpreter.
-
-
- abstract - - - - - int[] - -
-shape() - -
Returns the shape of - the Tensor, i.e., the sizes of each dimension.
-
-
- abstract - - - - - int[] - -
-shapeSignature() - -
Returns the original shape of the Tensor, - i.e., the sizes of each dimension - before any resizing was performed.
-
-
-
-
- -
- - - - - - - - - - -
-

Public Methods

- -
-

- - public - - - abstract - - ByteBuffer - -asReadOnlyBuffer -() -

-
-
-
-
-

Returns a read-only ByteBuffer view of the tensor data. - -

In general, this method is most useful for obtaining a read-only view of output tensor data, - *after* inference has been executed (e.g., via InterpreterApi.run(Object, Object)). In - particular, some graphs have dynamically shaped outputs, which can make feeding a predefined - output buffer to the interpreter awkward. Example usage: - -

 interpreter.run(input, null);
- ByteBuffer outputBuffer = interpreter.getOutputTensor(0).asReadOnlyBuffer();
- // Copy or read from outputBuffer.
-

WARNING: If the tensor has not yet been allocated, e.g., before inference has been executed, - the result is undefined. Note that the underlying tensor pointer may also change when the - tensor is invalidated in any way (e.g., if inference is executed, or the graph is resized), so - it is *not* safe to hold a reference to the returned buffer beyond immediate use directly - following inference. Example *bad* usage: - -

 ByteBuffer outputBuffer = interpreter.getOutputTensor(0).asReadOnlyBuffer();
- interpreter.run(input, null);
- // Copy or read from outputBuffer (which may now be invalid).

-
-
Throws
- - - - - -
IllegalArgumentExceptionif the tensor data has not been allocated. -
-
-
-
- -
-

- - public - - - abstract - - DataType - -dataType -() -

-
-
-
-
-

Returns the DataType of elements stored in the Tensor.

-
-
- -
-

- - public - - - abstract - - int - -numBytes -() -

-
-
-
-
-

Returns the size, in bytes, of the tensor data.

-
-
- -
-

- - public - - - abstract - - int - -numDimensions -() -

-
-
-
-
-

Returns the number of dimensions (sometimes referred to as rank) of the Tensor. - -

Will be 0 for a scalar, 1 for a vector, 2 for a matrix, 3 for a 3-dimensional tensor etc. -

-
-
- -
-

- - public - - - abstract - - int - -numElements -() -

-
-
-
-
-

Returns the number of elements in a flattened (1-D) view of the tensor.

-
-
- -
-

- - public - - - abstract - - Tensor.QuantizationParams - -quantizationParams -() -

-
-
-
-
-

Returns the quantization parameters of the tensor within the owning interpreter. - -

Only quantized tensors have valid QuantizationParameters. For tensor that are not - quantized, the values of scale and zero_point are both 0. -

-
-
- -
-

- - public - - - abstract - - int[] - -shape -() -

-
-
-
-
-

Returns the shape of - the Tensor, i.e., the sizes of each dimension.

-
-
Returns
-
  • an array where the i-th element is the size of the i-th dimension of the tensor. -
-
-
-
- -
-

- - public - - - abstract - - int[] - -shapeSignature -() -

-
-
-
-
-

Returns the original shape of the Tensor, - i.e., the sizes of each dimension - before any resizing was performed. Unknown dimensions are - designated with a value of -1.

-
-
Returns
-
  • an array where the i-th element is the size of the i-th dimension of the tensor. -
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/TensorFlowLite.html b/site/en/lite/api_docs/java/org/tensorflow/lite/TensorFlowLite.html deleted file mode 100644 index 262f421df2..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/TensorFlowLite.html +++ /dev/null @@ -1,479 +0,0 @@ - - - - - - - - - -TensorFlowLite - - - -
-
-
-
-
- -
- public final class - TensorFlowLite -
-
-
-
-

Static utility methods for loading the TensorFlowLite runtime and native code.

-
-
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - static - - void - -
-init() - -
Ensure the TensorFlowLite native library has been loaded.
-
-
- - - - static - - String - -
-runtimeVersion() - -
Returns the version of the default TensorFlowLite runtime.
-
-
- - - - static - - String - -
-runtimeVersion(InterpreterApi.Options.TfLiteRuntime runtime) - -
Returns the version of the specified TensorFlowLite runtime.
-
-
- - - - static - - String - -
-schemaVersion() - -
Returns the version of the TensorFlowLite model schema that is supported by the default - TensorFlowLite runtime.
-
-
- - - - static - - String - -
-schemaVersion(InterpreterApi.Options.TfLiteRuntime runtime) - -
Returns the version of the TensorFlowLite model schema that is supported by the specified - TensorFlowLite runtime.
-
-
- - - - static - - String - -
-version() - -
- This method is deprecated. Prefer using or #schemaVersion(). -
-
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - - - - -
-

Public Methods

- -
-

- - public - static - - - - void - -init -() -

-
-
-
-
-

Ensure the TensorFlowLite native library has been loaded. - -

If unsuccessful, throws an UnsatisfiedLinkError with the appropriate error message. -

-
-
- -
-

- - public - static - - - - String - -runtimeVersion -() -

-
-
-
-
-

Returns the version of the default TensorFlowLite runtime.

-
-
- -
-

- - public - static - - - - String - -runtimeVersion -(InterpreterApi.Options.TfLiteRuntime runtime) -

-
-
-
-
-

Returns the version of the specified TensorFlowLite runtime.

-
-
Parameters
- - - - - -
runtime
-
-
-
- -
-

- - public - static - - - - String - -schemaVersion -() -

-
-
-
-
-

Returns the version of the TensorFlowLite model schema that is supported by the default - TensorFlowLite runtime. -

-
-
- -
-

- - public - static - - - - String - -schemaVersion -(InterpreterApi.Options.TfLiteRuntime runtime) -

-
-
-
-
-

Returns the version of the TensorFlowLite model schema that is supported by the specified - TensorFlowLite runtime. -

-
-
Parameters
- - - - - -
runtime
-
-
-
- -
-

- - public - static - - - - String - -version -() -

-
-
-
-
-

-

- - This method is deprecated.
Prefer using or #schemaVersion(). - -

-

Returns the version of the underlying TensorFlowLite model schema.

-

-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/acceleration/ValidatedAccelerationConfig.html b/site/en/lite/api_docs/java/org/tensorflow/lite/acceleration/ValidatedAccelerationConfig.html deleted file mode 100644 index 0c84fde5ab..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/acceleration/ValidatedAccelerationConfig.html +++ /dev/null @@ -1,100 +0,0 @@ - - - - - - - - - -ValidatedAccelerationConfig - - - -
-
-
-
-
- -
- public interface - ValidatedAccelerationConfig -
-
-
-
-

Interface specifying validated acceleration configuration. Developers should not implement this - interface directly as it is only supported through the Acceleration service SDK. -

-
-
-
- -
-

Public Methods

- - - - - -
- abstract - - - - - byte[] - -
-serialize() - -
Returns the serialized validated acceleration config as bytes.
-
-
-
-
- -
- - - - - - - - - - -
-

Public Methods

- -
-

- - public - - - abstract - - byte[] - -serialize -() -

-
-
-
-
-

Returns the serialized validated acceleration config as bytes. -

-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/acceleration/package-summary.html b/site/en/lite/api_docs/java/org/tensorflow/lite/acceleration/package-summary.html deleted file mode 100644 index eaafc8e7f4..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/acceleration/package-summary.html +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - -org.tensorflow.lite.acceleration - - - -
-
-
-
-
-
-
- -
-
-
-

Interfaces

-
- - - - - -
ValidatedAccelerationConfigInterface specifying validated acceleration configuration. 
-
-
-
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/gpu/CompatibilityList.html b/site/en/lite/api_docs/java/org/tensorflow/lite/gpu/CompatibilityList.html deleted file mode 100644 index 486d0faea7..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/gpu/CompatibilityList.html +++ /dev/null @@ -1,452 +0,0 @@ - - - - - - - - - -CompatibilityList - - - -
-
-
-
-
- -
- public class - CompatibilityList -
-
-
-
-

GPU Delegate CompatibilityListing data. - -

The GPU delegate is not supported on all Android devices, due to differences in available - OpenGL versions, driver features, and device resources. This class provides information on - whether the GPU delegate is suitable for the current device. - -

This API is experimental and subject to change. - -

WARNING: the compatibilityList is constructed from testing done on a limited set of - models. You should plan to verify that your own model(s) work. - -

Example usage: - -

Interpreter.Options options = new Interpreter.Options();
- try (CompatibilityList compatibilityList = new CompatibilityList()) {
-   if (compatibilityList.isDelegateSupportedOnThisDevice()) {
-     GpuDelegate.Options delegateOptions = compatibilityList.getBestOptionsForThisDevice();
-     gpuDelegate = new GpuDelegate(delegateOptions):
-     options.addDelegate(gpuDelegate);
-   }
- }
- Interpreter interpreter = new Interpreter(modelBuffer, options);
- 
-

-

-
-
- -
-

Public Constructors

- - - - - -
- - -
-
- -
-

Public Methods

- - - - - - - - - - - - - -
- - - - - - void - -
-close() - -
Frees TFLite resources in C runtime.
-
-
-GpuDelegate.Options - -
-getBestOptionsForThisDevice() - -
What options should be used for the GPU delegate.
-
-
- - - - - - boolean - -
-isDelegateSupportedOnThisDevice() - -
Whether the GPU delegate is supported on this device.
-
-
-
- -
-

Inherited Methods

- - - -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -CompatibilityList -() -

-
-
-
-
-

-
-
-
- - - - -
-

Public Methods

- -
-

- - public - - - - - void - -close -() -

-
-
-
-
-

Frees TFLite resources in C runtime. - -

User is expected to call this method explicitly. -

-
-
- -
-

- - public - - - - - GpuDelegate.Options - -getBestOptionsForThisDevice -() -

-
-
-
-
-

What options should be used for the GPU delegate.

-
-
- -
-

- - public - - - - - boolean - -isDelegateSupportedOnThisDevice -() -

-
-
-
-
-

Whether the GPU delegate is supported on this device.

-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/gpu/GpuDelegate.Options.html b/site/en/lite/api_docs/java/org/tensorflow/lite/gpu/GpuDelegate.Options.html deleted file mode 100644 index 6bc04bb417..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/gpu/GpuDelegate.Options.html +++ /dev/null @@ -1,437 +0,0 @@ - - - - - - - - - -GpuDelegate.Options - - - -
-
-
-
-
- -
- public static class - GpuDelegate.Options -
-
-
-
-

-

- - This class is deprecated.
Use GpuDelegateFactory.Options instead. - -

-

Inherits from GpuDelegateFactory.Options for compatibility with existing code.

-

-
-
- -
-

Inherited Constants

- -
- -
-

Public Constructors

- - - - - -
- -
-Options() - -
-
-
- -
-

Inherited Methods

- - -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -Options -() -

-
-
-
-
-

-
-
-
- - - - - - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/gpu/GpuDelegate.html b/site/en/lite/api_docs/java/org/tensorflow/lite/gpu/GpuDelegate.html deleted file mode 100644 index 30a50e4345..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/gpu/GpuDelegate.html +++ /dev/null @@ -1,521 +0,0 @@ - - - - - - - - - -GpuDelegate - - - -
-
-
-
-
- -
- public class - GpuDelegate -
-
-
-
-

Delegate for GPU inference. - -

Note: When calling Interpreter.Options.addDelegate() and Interpreter.run(), - the caller must have an EGLContext in the current thread and Interpreter.run() must be called from the same EGLContext. If an EGLContext does - not exist, the delegate will internally create one, but then the developer must ensure that - Interpreter.run() is always called from the same thread in which Interpreter.Options.addDelegate() was called. -

-

-
-
- -
-

Nested Classes

- - - - - - -
- - - - - classGpuDelegate.Options - This class is deprecated. Use GpuDelegateFactory.Options instead. - 
-
- -
-

Public Constructors

- - - - - - - - - -
- - -
- -
-GpuDelegate() - -
-
-
- -
-

Public Methods

- - - - - - - - - -
- - - - - - void - -
-close() - -
Frees TFLite resources in C runtime.
-
-
- - - - - - long - -
-getNativeHandle() - -
Returns a native handle to the TensorFlow Lite delegate implementation.
-
-
-
- -
-

Inherited Methods

- - - - -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -GpuDelegate -(GpuDelegateFactory.Options options) -

-
-
-
-
-

-
-
Parameters
- - - - - -
options
-
-
-
- -
-

- - public - - - - - - -GpuDelegate -() -

-
-
-
-
-

-
-
-
- - - - -
-

Public Methods

- -
-

- - public - - - - - void - -close -() -

-
-
-
-
-

Frees TFLite resources in C runtime. - -

User is expected to call this method explicitly. -

-
-
- -
-

- - public - - - - - long - -getNativeHandle -() -

-
-
-
-
-

Returns a native handle to the TensorFlow Lite delegate implementation. - -

Note: The Java Delegate maintains ownership of the native delegate instance, and - must ensure its existence for the duration of usage with any InterpreterApi instance. - -

Note: the native delegate instance may not be created until the delegate has been attached - to an interpreter, so this method should not be called until after an interpreter has been - constructed with this delegate.

-
-
Returns
-
  • The native delegate handle. In C/C++, this should be a pointer to - 'TfLiteOpaqueDelegate'. -
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/gpu/GpuDelegateFactory.Options.GpuBackend.html b/site/en/lite/api_docs/java/org/tensorflow/lite/gpu/GpuDelegateFactory.Options.GpuBackend.html deleted file mode 100644 index a9155e76f9..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/gpu/GpuDelegateFactory.Options.GpuBackend.html +++ /dev/null @@ -1,454 +0,0 @@ - - - - - - - - - -GpuDelegateFactory.Options.GpuBackend - - - -
-
-
-
-
- -
- public static final enum - GpuDelegateFactory.Options.GpuBackend -
-
-
-
-

Which GPU backend to select.

-
-
-
- -
-

Inherited Methods

- - - -
-
- -
- - - - -
-

Enum Values

- -
-

- - public - static - final - - - GpuDelegateFactory.Options.GpuBackend - - -OPENCL -

-
-
-
-

Enforces execution with Open CL.

-
-
- -
-

- - public - static - final - - - GpuDelegateFactory.Options.GpuBackend - - -OPENGL -

-
-
-
-

Enforces execution with Open GL.

-
-
- -
-

- - public - static - final - - - GpuDelegateFactory.Options.GpuBackend - - -UNSET -

-
-
-
-

Try OpenCL first. Fall back to OpenGL if it's not available.

-
-
-
- - - - - - - - - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/gpu/GpuDelegateFactory.Options.html b/site/en/lite/api_docs/java/org/tensorflow/lite/gpu/GpuDelegateFactory.Options.html deleted file mode 100644 index b81b7a22a4..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/gpu/GpuDelegateFactory.Options.html +++ /dev/null @@ -1,805 +0,0 @@ - - - - - - - - - -GpuDelegateFactory.Options - - - -
-
-
-
-
- -
- public static class - GpuDelegateFactory.Options -
-
-
-
- Known Direct Subclasses - -
- - -
-
-
-

Delegate options.

-
-
-
- -
-

Nested Classes

- - - - - - -
- - - - - enumGpuDelegateFactory.Options.GpuBackendWhich GPU backend to select. 
-
- -

Constants

- - - - - - - - - - - -
intINFERENCE_PREFERENCE_FAST_SINGLE_ANSWERDelegate will be used only once, therefore, bootstrap/init time should be taken into account.
intINFERENCE_PREFERENCE_SUSTAINED_SPEEDPrefer maximizing the throughput.
-
- -
-

Public Constructors

- - - - - -
- -
-Options() - -
-
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - boolean - - -
-GpuDelegateFactory.Options.GpuBackend - - -
- - - - - - int - - -
-String - -
-getModelToken() - -
-
-String - - -
- - - - - - boolean - - -
-GpuDelegateFactory.Options - -
-setForceBackend(GpuDelegateFactory.Options.GpuBackend forceBackend) - -
Sets the GPU Backend.
-
-
-GpuDelegateFactory.Options - -
-setInferencePreference(int preference) - -
Sets the inference preference for precision/compilation/runtime tradeoffs.
-
-
-GpuDelegateFactory.Options - -
-setPrecisionLossAllowed(boolean precisionLossAllowed) - -
Sets whether precision loss is allowed.
-
-
-GpuDelegateFactory.Options - -
-setQuantizedModelsAllowed(boolean quantizedModelsAllowed) - -
Enables running quantized models with the delegate.
-
-
-GpuDelegateFactory.Options - -
-setSerializationParams(String serializationDir, String modelToken) - -
Enables serialization on the delegate.
-
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - -
-

Constants

- -
-

- - public - static - final - - - int - - -INFERENCE_PREFERENCE_FAST_SINGLE_ANSWER -

-
-
-
-

Delegate will be used only once, therefore, bootstrap/init time should be taken into account. -

-
-Constant Value: - - - 0 - - -
-
-
- -
-

- - public - static - final - - - int - - -INFERENCE_PREFERENCE_SUSTAINED_SPEED -

-
-
-
-

Prefer maximizing the throughput. Same delegate will be used repeatedly on multiple inputs. -

-
-Constant Value: - - - 1 - - -
-
-
-
- - - -
-

Public Constructors

- -
-

- - public - - - - - - -Options -() -

-
-
-
-
-

-
-
-
- - - - -
-

Public Methods

- -
-

- - public - - - - - boolean - -areQuantizedModelsAllowed -() -

-
-
-
-
-

-
-
- -
-

- - public - - - - - GpuDelegateFactory.Options.GpuBackend - -getForceBackend -() -

-
-
-
-
-

-
-
- -
-

- - public - - - - - int - -getInferencePreference -() -

-
-
-
-
-

-
-
- -
-

- - public - - - - - String - -getModelToken -() -

-
-
-
-
-

-
-
- -
-

- - public - - - - - String - -getSerializationDir -() -

-
-
-
-
-

-
-
- -
-

- - public - - - - - boolean - -isPrecisionLossAllowed -() -

-
-
-
-
-

-
-
- -
-

- - public - - - - - GpuDelegateFactory.Options - -setForceBackend -(GpuDelegateFactory.Options.GpuBackend forceBackend) -

-
-
-
-
-

Sets the GPU Backend. -

-
-
Parameters
- - - - - -
forceBackend
-
-
-
- -
-

- - public - - - - - GpuDelegateFactory.Options - -setInferencePreference -(int preference) -

-
-
-
-
-

Sets the inference preference for precision/compilation/runtime tradeoffs.

-
-
Parameters
- - - - - -
preferenceOne of `INFERENCE_PREFERENCE_FAST_SINGLE_ANSWER` (default), - `INFERENCE_PREFERENCE_SUSTAINED_SPEED`. -
-
-
-
- -
-

- - public - - - - - GpuDelegateFactory.Options - -setPrecisionLossAllowed -(boolean precisionLossAllowed) -

-
-
-
-
-

Sets whether precision loss is allowed.

-
-
Parameters
- - - - - -
precisionLossAllowedWhen `true` (default), the GPU may quantify tensors, downcast - values, process in FP16. When `false`, computations are carried out in 32-bit floating - point. -
-
-
-
- -
-

- - public - - - - - GpuDelegateFactory.Options - -setQuantizedModelsAllowed -(boolean quantizedModelsAllowed) -

-
-
-
-
-

Enables running quantized models with the delegate. - -

WARNING: This is an experimental API and subject to change.

-
-
Parameters
- - - - - -
quantizedModelsAllowedWhen true (default), the GPU may run quantized models. -
-
-
-
- -
-

- - public - - - - - GpuDelegateFactory.Options - -setSerializationParams -(String serializationDir, String modelToken) -

-
-
-
-
-

Enables serialization on the delegate. Note non-null serializationDir and modelToken are required for serialization. - -

WARNING: This is an experimental API and subject to change.

-
-
Parameters
- - - - - - - - - -
serializationDirThe directory to use for storing data. Caller is responsible to - ensure the model is not stored in a public directory. It's recommended to use Context.getCodeCacheDir() to provide a private location for the - application on Android.
modelTokenThe token to be used to identify the model. Caller is responsible to ensure - the token is unique to the model graph and data. -
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/gpu/GpuDelegateFactory.html b/site/en/lite/api_docs/java/org/tensorflow/lite/gpu/GpuDelegateFactory.html deleted file mode 100644 index df423b082c..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/gpu/GpuDelegateFactory.html +++ /dev/null @@ -1,391 +0,0 @@ - - - - - - - - - -GpuDelegateFactory - - - -
-
-
-
-
- -
- public class - GpuDelegateFactory -
-
-
-
-

DelegateFactory for creating a GpuDelegate.

-
-
-
- -
-

Nested Classes

- - - - - - -
- - - - - classGpuDelegateFactory.OptionsDelegate options. 
-
- -
-

Public Constructors

- - - - - - - - - -
- - -
- - -
-
- -
-

Public Methods

- - - - - -
-Delegate - -
-create(RuntimeFlavor runtimeFlavor) - -
Create a Delegate for the given RuntimeFlavor.
-
-
-
- -
-

Inherited Methods

- - -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -GpuDelegateFactory -() -

-
-
-
-
-

-
-
- -
-

- - public - - - - - - -GpuDelegateFactory -(GpuDelegateFactory.Options options) -

-
-
-
-
-

-
-
Parameters
- - - - - -
options
-
-
-
-
- - - - -
-

Public Methods

- -
-

- - public - - - - - Delegate - -create -(RuntimeFlavor runtimeFlavor) -

-
-
-
-
-

Create a Delegate for the given RuntimeFlavor. - -

Note for developers implementing this interface: Currently TF Lite in Google Play Services - does not support external (developer-provided) delegates. Correspondingly, implementations of - this method can expect to be called with RuntimeFlavor.APPLICATION. -

-
-
Parameters
- - - - - -
runtimeFlavor
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/gpu/package-summary.html b/site/en/lite/api_docs/java/org/tensorflow/lite/gpu/package-summary.html deleted file mode 100644 index be1ed37502..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/gpu/package-summary.html +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - - - -org.tensorflow.lite.gpu - - - -
-
-
-
-
-
-
- -
-
-
-

Classes

-
- - - - - - - - - - - - - - - - - - - - - -
CompatibilityListGPU Delegate CompatibilityListing data. 
GpuDelegateDelegate for GPU inference. 
GpuDelegate.Options - This class is deprecated. Use GpuDelegateFactory.Options instead. - 
GpuDelegateFactoryDelegateFactory for creating a GpuDelegate
GpuDelegateFactory.OptionsDelegate options. 
-
-

Enums

-
- - - - - -
GpuDelegateFactory.Options.GpuBackendWhich GPU backend to select. 
-
-
-
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/package-summary.html b/site/en/lite/api_docs/java/org/tensorflow/lite/package-summary.html deleted file mode 100644 index 29f0562e58..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/package-summary.html +++ /dev/null @@ -1,102 +0,0 @@ - - - - - - - - - -org.tensorflow.lite - - - -
-
-
-
-
-
-
- -
-
-
-
- Defines classes to load and execute TensorFlowLite models. -
-

Interfaces

-
- - - - - - - - - - - - - - - - - -
DelegateWrapper for a native TensorFlow Lite Delegate. 
DelegateFactoryAllows creating delegates for different runtime flavors. 
InterpreterApiInterface to TensorFlow Lite model interpreter, excluding experimental methods. 
TensorA typed multi-dimensional array used in Tensorflow Lite. 
-
-

Classes

-
- - - - - - - - - - - - - - - - - - - - - - - - - -
InterpreterDriver class to drive model inference with TensorFlow Lite. 
Interpreter.OptionsAn options class for controlling runtime interpreter behavior. 
InterpreterApi.OptionsAn options class for controlling runtime interpreter behavior. 
InterpreterFactoryFactory for constructing InterpreterApi instances. 
Tensor.QuantizationParamsQuantization parameters that corresponds to the table, QuantizationParameters, in the - TFLite - Model schema file. 
TensorFlowLiteStatic utility methods for loading the TensorFlowLite runtime and native code. 
-
-

Enums

-
- - - - - - - - - - - - - -
DataTypeRepresents the type of elements in a TensorFlow Lite Tensor as an enum. 
InterpreterApi.Options.TfLiteRuntimeEnum to represent where to get the TensorFlow Lite runtime implementation from. 
RuntimeFlavorRepresents a TFLite runtime. 
-
-
-
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/audio/TensorAudio.TensorAudioFormat.Builder.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/audio/TensorAudio.TensorAudioFormat.Builder.html deleted file mode 100644 index c024600bb2..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/audio/TensorAudio.TensorAudioFormat.Builder.html +++ /dev/null @@ -1,381 +0,0 @@ - - - - - - - - - -TensorAudio.TensorAudioFormat.Builder - - - -
-
-
-
-
- -
- public static abstract class - TensorAudio.TensorAudioFormat.Builder -
-
-
- -
-
- -
-

Public Constructors

- - - - - -
- -
-Builder() - -
-
-
- -
-

Public Methods

- - - - - - - - - - - - - -
-TensorAudio.TensorAudioFormat - -
-build() - -
-
- abstract - - - - - TensorAudio.TensorAudioFormat.Builder - -
-setChannels(int value) - -
-
- abstract - - - - - TensorAudio.TensorAudioFormat.Builder - -
-setSampleRate(int value) - -
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -Builder -() -

-
-
-
-
-

-
-
-
- - - - -
-

Public Methods

- -
-

- - public - - - - - TensorAudio.TensorAudioFormat - -build -() -

-
-
-
-
-

-
-
- -
-

- - public - - - abstract - - TensorAudio.TensorAudioFormat.Builder - -setChannels -(int value) -

-
-
-
-
-

-
-
Parameters
- - - - - -
value
-
-
-
- -
-

- - public - - - abstract - - TensorAudio.TensorAudioFormat.Builder - -setSampleRate -(int value) -

-
-
-
-
-

-
-
Parameters
- - - - - -
value
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/audio/TensorAudio.TensorAudioFormat.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/audio/TensorAudio.TensorAudioFormat.html deleted file mode 100644 index 3ef1ada029..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/audio/TensorAudio.TensorAudioFormat.html +++ /dev/null @@ -1,433 +0,0 @@ - - - - - - - - - -TensorAudio.TensorAudioFormat - - - -
-
-
-
-
- -
- public static abstract class - TensorAudio.TensorAudioFormat -
-
-
-
-

Wraps a few constants describing the format of the incoming audio samples, namely number of - channels and the sample rate. By default, channels is set to 1. -

-
-
-
- -
-

Nested Classes

- - - - - - -
- - - - - classTensorAudio.TensorAudioFormat.BuilderBuilder for TensorAudio.TensorAudioFormat  
-
- -
-

Public Constructors

- - - - - -
- - -
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - -
- - - - static - - TensorAudio.TensorAudioFormat.Builder - -
-builder() - -
-
- - - - static - - TensorAudio.TensorAudioFormat - -
-create(AudioFormat format) - -
Creates a TensorAudio.TensorAudioFormat instance from Android AudioFormat class.
-
-
- abstract - - - - - int - -
-getChannels() - -
-
- abstract - - - - - int - -
-getSampleRate() - -
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -TensorAudioFormat -() -

-
-
-
-
-

-
-
-
- - - - -
-

Public Methods

- -
-

- - public - static - - - - TensorAudio.TensorAudioFormat.Builder - -builder -() -

-
-
-
-
-

-
-
- -
-

- - public - static - - - - TensorAudio.TensorAudioFormat - -create -(AudioFormat format) -

-
-
-
-
-

Creates a TensorAudio.TensorAudioFormat instance from Android AudioFormat class.

-
-
Parameters
- - - - - -
format
-
-
-
- -
-

- - public - - - abstract - - int - -getChannels -() -

-
-
-
-
-

-
-
- -
-

- - public - - - abstract - - int - -getSampleRate -() -

-
-
-
-
-

-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/audio/TensorAudio.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/audio/TensorAudio.html deleted file mode 100644 index c35c0e3420..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/audio/TensorAudio.html +++ /dev/null @@ -1,731 +0,0 @@ - - - - - - - - - -TensorAudio - - - -
-
-
-
-
- -
- public class - TensorAudio -
-
-
-
-

Defines a ring buffer and some utility functions to prepare the input audio samples. - -

It maintains a Ring Buffer to hold - input audio data. Clients could feed input audio data via `load` methods and access the - aggregated audio samples via `getTensorBuffer` method. - -

Note that this class can only handle input audio in Float (in AudioFormat.ENCODING_PCM_16BIT) or Short (in AudioFormat.ENCODING_PCM_FLOAT). Internally it converts and stores all the audio - samples in PCM Float encoding. - -

Typical usage in Kotlin - -

-   val tensor = TensorAudio.create(format, modelInputLength)
-   tensor.load(newData)
-   interpreter.run(tensor.getTensorBuffer(), outputBuffer);
- 
-

Another sample usage with AudioRecord -

-   val tensor = TensorAudio.create(format, modelInputLength)
-   Timer().scheduleAtFixedRate(delay, period) {
-     tensor.load(audioRecord)
-     interpreter.run(tensor.getTensorBuffer(), outputBuffer)
-   }
- 
-

-

-
-
- -
-

Nested Classes

- - - - - - -
- - - - - classTensorAudio.TensorAudioFormatWraps a few constants describing the format of the incoming audio samples, namely number of - channels and the sample rate. 
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - static - - TensorAudio - -
-create(AudioFormat format, int sampleCounts) - -
Creates a TensorAudio instance with a ring buffer whose size is sampleCounts * - format.getChannelCount().
-
-
- - - - static - - TensorAudio - -
-create(TensorAudio.TensorAudioFormat format, int sampleCounts) - -
Creates a AudioRecord instance with a ring buffer whose size is sampleCounts * format.getChannels().
-
-
-TensorAudio.TensorAudioFormat - -
-getFormat() - -
-
-TensorBuffer - -
-getTensorBuffer() - -
Returns a float TensorBuffer holding all the available audio samples in AudioFormat.ENCODING_PCM_FLOAT i.e.
-
-
- - - - - - void - -
-load(short[] src) - -
Converts the input audio samples src to ENCODING_PCM_FLOAT, then stores it in the ring - buffer.
-
-
- - - - - - void - -
-load(float[] src, int offsetInFloat, int sizeInFloat) - -
Stores the input audio samples src in the ring buffer.
-
-
- - - - - - void - -
-load(short[] src, int offsetInShort, int sizeInShort) - -
Converts the input audio samples src to ENCODING_PCM_FLOAT, then stores it in the ring - buffer.
-
-
- - - - - - int - -
-load(AudioRecord record) - -
Loads latest data from the AudioRecord in a non-blocking way.
-
-
- - - - - - void - -
-load(float[] src) - -
Stores the input audio samples src in the ring buffer.
-
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - - - - -
-

Public Methods

- -
-

- - public - static - - - - TensorAudio - -create -(AudioFormat format, int sampleCounts) -

-
-
-
-
-

Creates a TensorAudio instance with a ring buffer whose size is sampleCounts * - format.getChannelCount().

-
-
Parameters
- - - - - - - - - -
formatthe AudioFormat required by the TFLite model. It defines - the number of channels and sample rate.
sampleCountsthe number of samples to be fed into the model -
-
-
-
- -
-

- - public - static - - - - TensorAudio - -create -(TensorAudio.TensorAudioFormat format, int sampleCounts) -

-
-
-
-
-

Creates a AudioRecord instance with a ring buffer whose size is sampleCounts * format.getChannels().

-
-
Parameters
- - - - - - - - - -
formatthe expected TensorAudio.TensorAudioFormat of audio data loaded into this class.
sampleCountsthe number of samples to be fed into the model -
-
-
-
- -
-

- - public - - - - - TensorAudio.TensorAudioFormat - -getFormat -() -

-
-
-
-
-

-
-
- -
-

- - public - - - - - TensorBuffer - -getTensorBuffer -() -

-
-
-
-
-

Returns a float TensorBuffer holding all the available audio samples in AudioFormat.ENCODING_PCM_FLOAT i.e. values are in the range of [-1, 1]. -

-
-
- -
-

- - public - - - - - void - -load -(short[] src) -

-
-
-
-
-

Converts the input audio samples src to ENCODING_PCM_FLOAT, then stores it in the ring - buffer.

-
-
Parameters
- - - - - -
srcinput audio samples in AudioFormat.ENCODING_PCM_16BIT. For - multi-channel input, the array is interleaved. -
-
-
-
- -
-

- - public - - - - - void - -load -(float[] src, int offsetInFloat, int sizeInFloat) -

-
-
-
-
-

Stores the input audio samples src in the ring buffer.

-
-
Parameters
- - - - - - - - - - - - - -
srcinput audio samples in AudioFormat.ENCODING_PCM_FLOAT. For - multi-channel input, the array is interleaved.
offsetInFloatstarting position in the src array
sizeInFloatthe number of float values to be copied
-
-
-
Throws
- - - - - -
IllegalArgumentExceptionfor incompatible audio format or incorrect input size -
-
-
-
- -
-

- - public - - - - - void - -load -(short[] src, int offsetInShort, int sizeInShort) -

-
-
-
-
-

Converts the input audio samples src to ENCODING_PCM_FLOAT, then stores it in the ring - buffer.

-
-
Parameters
- - - - - - - - - - - - - -
srcinput audio samples in AudioFormat.ENCODING_PCM_16BIT. For - multi-channel input, the array is interleaved.
offsetInShortstarting position in the src array
sizeInShortthe number of short values to be copied
-
-
-
Throws
- - - - - -
IllegalArgumentExceptionif the source array can't be copied -
-
-
-
- -
-

- - public - - - - - int - -load -(AudioRecord record) -

-
-
-
-
-

Loads latest data from the AudioRecord in a non-blocking way. Only - supporting ENCODING_PCM_16BIT and ENCODING_PCM_FLOAT.

-
-
Parameters
- - - - - -
recordan instance of AudioRecord
-
-
-
Returns
-
  • number of captured audio values whose size is channelCount * sampleCount. If - there was no new data in the AudioRecord or an error occurred, this method will return 0.
-
-
-
Throws
- - - - - - - - - -
IllegalArgumentExceptionfor unsupported audio encoding format
IllegalStateExceptionif reading from AudioRecord failed -
-
-
-
- -
-

- - public - - - - - void - -load -(float[] src) -

-
-
-
-
-

Stores the input audio samples src in the ring buffer.

-
-
Parameters
- - - - - -
srcinput audio samples in AudioFormat.ENCODING_PCM_FLOAT. For - multi-channel input, the array is interleaved. -
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/audio/package-summary.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/audio/package-summary.html deleted file mode 100644 index 5d90bc5b04..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/audio/package-summary.html +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - -org.tensorflow.lite.support.audio - - - -
-
-
-
-
-
-
- -
-
-
-

Classes

-
- - - - - - - - - - - - - -
TensorAudioDefines a ring buffer and some utility functions to prepare the input audio samples. 
TensorAudio.TensorAudioFormatWraps a few constants describing the format of the incoming audio samples, namely number of - channels and the sample rate. 
TensorAudio.TensorAudioFormat.BuilderBuilder for TensorAudio.TensorAudioFormat  
-
-
-
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/common/FileUtil.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/common/FileUtil.html deleted file mode 100644 index 5273f1bf4f..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/common/FileUtil.html +++ /dev/null @@ -1,757 +0,0 @@ - - - - - - - - - -FileUtil - - - -
-
-
-
-
- -
- public class - FileUtil -
-
-
-
-

File I/O utilities.

-
-
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - static - - byte[] - -
-loadByteFromFile(Context context, String filePath) - -
Loads a binary file from the asset folder.
-
-
- - - - static - - List<String> - -
-loadLabels(Context context, String filePath) - -
Loads labels from the label file into a list of strings.
-
-
- - - - static - - List<String> - -
-loadLabels(InputStream inputStream) - -
Loads labels from an input stream of an opened label file.
-
-
- - - - static - - List<String> - -
-loadLabels(InputStream inputStream, Charset cs) - -
Loads labels from an input stream of an opened label file.
-
-
- - - - static - - List<String> - -
-loadLabels(Context context, String filePath, Charset cs) - -
Loads labels from the label file into a list of strings.
-
-
- - - - static - - MappedByteBuffer - -
-loadMappedFile(Context context, String filePath) - -
Loads a file from the asset folder through memory mapping.
-
-
- - - - static - - List<String> - -
-loadSingleColumnTextFile(Context context, String filePath, Charset cs) - -
Loads a vocabulary file (a single-column text file) into a list of strings.
-
-
- - - - static - - List<String> - -
-loadSingleColumnTextFile(InputStream inputStream, Charset cs) - -
Loads vocabulary from an input stream of an opened vocabulary file (which is a single-column - text file).
-
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - - - - -
-

Public Methods

- -
-

- - public - static - - - - byte[] - -loadByteFromFile -(Context context, String filePath) -

-
-
-
-
-

Loads a binary file from the asset folder.

-
-
Parameters
- - - - - - - - - -
contextApplication context to access assets.
filePathAsset path of the file.
-
-
-
Returns
-
  • the byte array for the binary file.
-
-
-
Throws
- - - - - -
IOExceptionif an I/O error occurs when loading file. -
-
-
-
- -
-

- - public - static - - - - List<String> - -loadLabels -(Context context, String filePath) -

-
-
-
-
-

Loads labels from the label file into a list of strings. - -

A legal label file is the plain text file whose contents are split into lines, and each line - is an individual value. The file should be in assets of the context.

-
-
Parameters
- - - - - - - - - -
contextThe context holds assets.
filePathThe path of the label file, relative with assets directory.
-
-
-
Returns
-
  • a list of labels.
-
-
-
Throws
- - - - - -
IOExceptionif error occurs to open or read the file. -
-
-
-
- -
-

- - public - static - - - - List<String> - -loadLabels -(InputStream inputStream) -

-
-
-
-
-

Loads labels from an input stream of an opened label file. See details for label files in - loadLabels(Context, String).

-
-
Parameters
- - - - - -
inputStreamthe input stream of an opened label file.
-
-
-
Returns
-
  • a list of labels.
-
-
-
Throws
- - - - - -
IOExceptionif error occurs to open or read the file. -
-
-
-
- -
-

- - public - static - - - - List<String> - -loadLabels -(InputStream inputStream, Charset cs) -

-
-
-
-
-

Loads labels from an input stream of an opened label file. See details for label files in - loadLabels(Context, String).

-
-
Parameters
- - - - - - - - - -
inputStreamthe input stream of an opened label file.
csCharset to use when decoding content of label file.
-
-
-
Returns
-
  • a list of labels.
-
-
-
Throws
- - - - - -
IOExceptionif error occurs to open or read the file. -
-
-
-
- -
-

- - public - static - - - - List<String> - -loadLabels -(Context context, String filePath, Charset cs) -

-
-
-
-
-

Loads labels from the label file into a list of strings. - -

A legal label file is the plain text file whose contents are split into lines, and each line - is an individual value. The empty lines will be ignored. The file should be in assets of the - context.

-
-
Parameters
- - - - - - - - - - - - - -
contextThe context holds assets.
filePathThe path of the label file, relative with assets directory.
csCharset to use when decoding content of label file.
-
-
-
Returns
-
  • a list of labels.
-
-
-
Throws
- - - - - -
IOExceptionif error occurs to open or read the file. -
-
-
-
- -
-

- - public - static - - - - MappedByteBuffer - -loadMappedFile -(Context context, String filePath) -

-
-
-
-
-

Loads a file from the asset folder through memory mapping.

-
-
Parameters
- - - - - - - - - -
contextApplication context to access assets.
filePathAsset path of the file.
-
-
-
Returns
-
  • the loaded memory mapped file.
-
-
-
Throws
- - - - - -
IOExceptionif an I/O error occurs when loading the tflite model. -
-
-
-
- -
-

- - public - static - - - - List<String> - -loadSingleColumnTextFile -(Context context, String filePath, Charset cs) -

-
-
-
-
-

Loads a vocabulary file (a single-column text file) into a list of strings. - -

A vocabulary file is a single-column plain text file whose contents are split into lines, - and each line is an individual value. The file should be in assets of the context.

-
-
Parameters
- - - - - - - - - - - - - -
contextThe context holds assets.
filePathThe path of the vocabulary file, relative with assets directory.
cs
-
-
-
Returns
-
  • a list of vocabulary words.
-
-
-
Throws
- - - - - -
IOExceptionif error occurs to open or read the file. -
-
-
-
- -
-

- - public - static - - - - List<String> - -loadSingleColumnTextFile -(InputStream inputStream, Charset cs) -

-
-
-
-
-

Loads vocabulary from an input stream of an opened vocabulary file (which is a single-column - text file). - -

A vocabulary file is a single-column plain text file whose contents are split into lines, - and each line is an individual value. The file should be in assets of the context.

-
-
Parameters
- - - - - - - - - -
inputStreamthe input stream of an opened vocabulary file.
cs
-
-
-
Returns
-
  • a list of vocabulary words.
-
-
-
Throws
- - - - - -
IOExceptionif error occurs to open or read the file. -
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/common/Operator.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/common/Operator.html deleted file mode 100644 index 4e41b6ec40..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/common/Operator.html +++ /dev/null @@ -1,187 +0,0 @@ - - - - - - - - - -Operator - - - -
-
-
-
-
- -
- public interface - Operator -
-
-
-
- Known Indirect Subclasses - -
- - -
-
-
-

The common interface for classes that carries an "apply" method, which converts T to another one.

-
-
-
- -
-

Public Methods

- - - - - -
- abstract - - - - - T - -
-apply(T x) - -
Applies an operation on a T object, returning a T object.
-
-
-
-
- -
- - - - - - - - - - -
-

Public Methods

- -
-

- - public - - - abstract - - T - -apply -(T x) -

-
-
-
-
-

Applies an operation on a T object, returning a T object. - -

Note: The returned object could probably be the same one with given input, and given input - could probably be changed. -

-
-
Parameters
- - - - - -
x
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/common/Processor.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/common/Processor.html deleted file mode 100644 index c784e17e00..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/common/Processor.html +++ /dev/null @@ -1,134 +0,0 @@ - - - - - - - - - -Processor - - - -
-
-
-
-
- -
- public interface - Processor -
-
-
-
- Known Indirect Subclasses - -
- - -
-
-
-

Processes T object with prepared Operator&lt;T&gt;.

-
-
-
- -
-

Public Methods

- - - - - -
- abstract - - - - - T - -
-process(T input) - -
-
-
-
- -
- - - - - - - - - - -
-

Public Methods

- -
-

- - public - - - abstract - - T - -process -(T input) -

-
-
-
-
-

-
-
Parameters
- - - - - -
input
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/common/SequentialProcessor.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/common/SequentialProcessor.html deleted file mode 100644 index 4832e5f0d4..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/common/SequentialProcessor.html +++ /dev/null @@ -1,317 +0,0 @@ - - - - - - - - - -SequentialProcessor - - - -
-
-
-
-
- -
- public class - SequentialProcessor -
-
-
-
- Known Direct Subclasses - -
- - -
-
-
-

A processor base class that chains a serial of Operator&lt;T&gt; and executes them. - -

Typically, users could use its subclasses, e.g. ImageProcessor rather than directly use this one.

-

-
-
- -
-

Public Methods

- - - - - -
- - - - - - T - -
-process(T x) - -
-
-
- -
-

Inherited Methods

- - -
-
- -
- - - - - - - - - - -
-

Public Methods

- -
-

- - public - - - - - T - -process -(T x) -

-
-
-
-
-

-
-
Parameters
- - - - - -
x
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/common/TensorOperator.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/common/TensorOperator.html deleted file mode 100644 index deb49f9596..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/common/TensorOperator.html +++ /dev/null @@ -1,181 +0,0 @@ - - - - - - - - - -TensorOperator - - - -
-
-
-
-
- -
- public interface - TensorOperator -
-
-
-
- Known Indirect Subclasses - -
- - -
-
-
-

Applies some operation on TensorBuffers. -

-
-
-
- -
-

Public Methods

- - - - - -
- abstract - - - - - TensorBuffer - -
-apply(TensorBuffer input) - -
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - - - - -
-

Public Methods

- -
-

- - public - - - abstract - - TensorBuffer - -apply -(TensorBuffer input) -

-
-
-
-
-

-
-
Parameters
- - - - - -
input
-
-
-
See Also
- -
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/common/TensorProcessor.Builder.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/common/TensorProcessor.Builder.html deleted file mode 100644 index ce23eb7f6e..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/common/TensorProcessor.Builder.html +++ /dev/null @@ -1,386 +0,0 @@ - - - - - - - - - -TensorProcessor.Builder - - - -
-
-
-
-
- -
- public static class - TensorProcessor.Builder -
-
-
-
-

The Builder to create an TensorProcessor, which could be executed later.

-
-
-
- -
-

Public Constructors

- - - - - -
- -
-Builder() - -
Creates a Builder to build TensorProcessor.
-
-
-
- -
-

Public Methods

- - - - - - - - - - - - - -
- - - - - - Builder<TensorBuffer> - -
-add(Operator<T> op) - -
-
-TensorProcessor.Builder - -
-add(TensorOperator op) - -
Adds an TensorOperator into the Operator chain.
-
-
-TensorProcessor - -
-build() - -
Completes the building process and gets the TensorProcessor instance.
-
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -Builder -() -

-
-
-
- -
-
- - - - -
-

Public Methods

- -
-

- - public - - - - - Builder<TensorBuffer> - -add -(Operator<T> op) -

-
-
-
-
-

-
-
Parameters
- - - - - -
op
-
-
-
- -
-

- - public - - - - - TensorProcessor.Builder - -add -(TensorOperator op) -

-
-
-
-
-

Adds an TensorOperator into the Operator chain.

-
-
Parameters
- - - - - -
opthe Operator instance to be executed then. -
-
-
-
- -
-

- - public - - - - - TensorProcessor - -build -() -

-
-
-
-
-

Completes the building process and gets the TensorProcessor instance.

-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/common/TensorProcessor.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/common/TensorProcessor.html deleted file mode 100644 index 379360ac70..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/common/TensorProcessor.html +++ /dev/null @@ -1,292 +0,0 @@ - - - - - - - - - -TensorProcessor - - - -
-
-
-
-
- -
- public class - TensorProcessor -
-
-
-
-

TensorProcessor is a helper class for preprocessing and postprocessing tensors. It could - transform a TensorBuffer to another by executing a chain of TensorOperator. - -

Example Usage: - -

-   TensorProcessor processor = new TensorProcessor.Builder().add(new NormalizeOp(1, 2)).build();
-   TensorBuffer anotherTensorBuffer = processor.process(tensorBuffer);
- 

- -

-
-
- -
-

Nested Classes

- - - - - - -
- - - - - classTensorProcessor.BuilderThe Builder to create an TensorProcessor, which could be executed later. 
-
- -
-

Inherited Methods

- - - -
-
- -
- - - - - - - - - - - - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/common/ops/CastOp.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/common/ops/CastOp.html deleted file mode 100644 index c470b622a7..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/common/ops/CastOp.html +++ /dev/null @@ -1,385 +0,0 @@ - - - - - - - - - -CastOp - - - -
-
-
-
-
- -
- public class - CastOp -
-
-
-
-

Casts a TensorBuffer to a specified data type.

-
-
-
- -
-

Public Constructors

- - - - - -
- -
-CastOp(DataType destinationType) - -
Constructs a CastOp.
-
-
-
- -
-

Public Methods

- - - - - -
-TensorBuffer - -
-apply(TensorBuffer input) - -
-
-
- -
-

Inherited Methods

- - - -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -CastOp -(DataType destinationType) -

-
-
-
-
-

Constructs a CastOp. - -

Note: For only converting type for a certain TensorBuffer on-the-fly rather than in - a processor, please directly use TensorBuffer.createFrom(TensorBuffer, DataType). - -

When this Op is executed, if the original TensorBuffer is already in destinationType, the original buffer will be directly returned.

-
-
Parameters
- - - - - -
destinationTypeThe type of the casted TensorBuffer.
-
-
-
Throws
- - - - - -
IllegalArgumentExceptionif destinationType is neither DataType.UINT8 - nor DataType.FLOAT32. -
-
-
-
-
- - - - -
-

Public Methods

- -
-

- - public - - - - - TensorBuffer - -apply -(TensorBuffer input) -

-
-
-
-
-

-
-
Parameters
- - - - - -
input
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/common/ops/DequantizeOp.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/common/ops/DequantizeOp.html deleted file mode 100644 index 2ba0627780..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/common/ops/DequantizeOp.html +++ /dev/null @@ -1,359 +0,0 @@ - - - - - - - - - -DequantizeOp - - - -
-
-
-
-
- -
- public class - DequantizeOp -
-
-
-
-

Dequantizes a TensorBuffer with given zeroPoint and scale. - -

Note: The data type of output tensor is always FLOAT32 except when the DequantizeOp is - created effectively as an identity Op such as setting zeroPoint to 0 and scale to - 1 (in this case, the output tensor is the same instance as input). - -

If both zeroPoint and scale are 0, the DequantizeOp will be bypassed, - which is equivalent to setting zeroPoint to 0 and scale to 1. This can be useful - when passing in the quantization parameters that are extracted directly from the TFLite model - flatbuffer. If the tensor is not quantized, both zeroPoint and scale will be read - as 0. -

-

-
-
- -
-

Public Constructors

- - - - - -
- -
-DequantizeOp(float zeroPoint, float scale) - -
-
-
- -
-

Inherited Methods

- - - - -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -DequantizeOp -(float zeroPoint, float scale) -

-
-
-
-
-

-
-
Parameters
- - - - - - - - - -
zeroPoint
scale
-
-
-
-
- - - - - - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/common/ops/NormalizeOp.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/common/ops/NormalizeOp.html deleted file mode 100644 index d299930550..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/common/ops/NormalizeOp.html +++ /dev/null @@ -1,499 +0,0 @@ - - - - - - - - - -NormalizeOp - - - -
-
-
-
-
- -
- public class - NormalizeOp -
-
-
-
- Known Direct Subclasses - -
- - -
-
-
-

Normalizes a TensorBuffer with given mean and stddev: output = (input - mean) / stddev. -

-
-
-
- -
-

Public Constructors

- - - - - - - - - -
- -
-NormalizeOp(float mean, float stddev) - -
Initializes a NormalizeOp.
-
-
- -
-NormalizeOp(float[] mean, float[] stddev) - -
Initializes a NormalizeOp.
-
-
-
- -
-

Public Methods

- - - - - -
-TensorBuffer - -
-apply(TensorBuffer input) - -
Applies the defined normalization on given tensor and returns the result.
-
-
-
- -
-

Inherited Methods

- - - -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -NormalizeOp -(float mean, float stddev) -

-
-
-
-
-

Initializes a NormalizeOp. When being called, it creates a new TensorBuffer, which - satisfies: - -

-   output = (input - mean) / stddev
- 
-

In the following two cases, reset mean to 0 and stddev to 1 to bypass the - normalization.
- 1. Both mean and {code stddev} are 0.
- 2. mean is 0 and {stddev} is Infinity. - -

Note: If mean is set to 0 and stddev is set to 1, no computation will - happen, and original input will be directly returned in execution. - -

Note: The returned TensorBuffer is always a DataType.FLOAT32 tensor at - present, except when the input is a DataType.UINT8 tensor, mean is set to 0 and - stddev is set to 1, so that the original DataType.UINT8 tensor is returned.

-
-
Parameters
- - - - - - - - - -
meanthe mean value to be subtracted first.
stddevthe standard deviation value to divide then.
-
-
-
Throws
- - - - - -
IllegalArgumentExceptionif stddev is zero. -
-
-
-
- -
-

- - public - - - - - - -NormalizeOp -(float[] mean, float[] stddev) -

-
-
-
-
-

Initializes a NormalizeOp. When being called, it creates a new TensorBuffer, which - satisfies: - -

-   // Pseudo code. [...][i] means a certain element whose channel id is i.
-   output[...][i] = (input[...][i] - mean[i]) / stddev[i]
- 
-

Note: If all values in mean are set to 0 and all stddev are set to 1, no - computation will happen, and original input will be directly returned in execution. - -

Note: The returned TensorBuffer is always a DataType.FLOAT32 tensor at - present, except that the input is a DataType.UINT8 tensor, all mean are set to - 0 and all stddev are set to 1.

-
-
Parameters
- - - - - - - - - -
meanthe mean values to be subtracted first for each channel.
stddevthe standard deviation values to divide then for each channel.
-
-
-
Throws
- - - - - -
IllegalArgumentExceptionif any stddev is zero, or mean has different - number of elements with stddev, or any of them is empty. -
-
-
-
-
- - - - -
-

Public Methods

- -
-

- - public - - - - - TensorBuffer - -apply -(TensorBuffer input) -

-
-
-
-
-

Applies the defined normalization on given tensor and returns the result. - -

Note: input is possibly the same instance with the output.

-
-
Parameters
- - - - - -
inputinput tensor. It may be the same instance with the output.
-
-
-
Returns
-
  • output tensor. -
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/common/ops/QuantizeOp.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/common/ops/QuantizeOp.html deleted file mode 100644 index 8881981a15..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/common/ops/QuantizeOp.html +++ /dev/null @@ -1,360 +0,0 @@ - - - - - - - - - -QuantizeOp - - - -
-
-
-
-
- -
- public class - QuantizeOp -
-
-
-
-

Quantizes a TensorBuffer with given zeroPoint and scale. - -

Note: QuantizeOp does not cast output to UINT8, but only performs the quantization - math on top of input. The data type of output tensor is always FLOAT32 except that the Op - is effectively an identity Op (in this case, the output tensor is the same instance as the - input). To connect with quantized model, a CastOp is probably needed. - -

If both zeroPoint and scale are 0, the QuantizeOp will be bypassed, - which is equivalent to setting zeroPoint to 0 and scale to 1. This can be useful - when passing in the quantization parameters that are extracted directly from the TFLite model - flatbuffer. If the tensor is not quantized, both zeroPoint and scale will be read - as 0. -

-

-
-
- -
-

Public Constructors

- - - - - -
- -
-QuantizeOp(float zeroPoint, float scale) - -
-
-
- -
-

Inherited Methods

- - - - -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -QuantizeOp -(float zeroPoint, float scale) -

-
-
-
-
-

-
-
Parameters
- - - - - - - - - -
zeroPoint
scale
-
-
-
-
- - - - - - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/common/ops/package-summary.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/common/ops/package-summary.html deleted file mode 100644 index 88f113d840..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/common/ops/package-summary.html +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - -org.tensorflow.lite.support.common.ops - - - -
-
-
-
-
-
-
- -
-
-
-

Classes

-
- - - - - - - - - - - - - - - - - -
CastOpCasts a TensorBuffer to a specified data type. 
DequantizeOpDequantizes a TensorBuffer with given zeroPoint and scale
NormalizeOpNormalizes a TensorBuffer with given mean and stddev: output = (input - mean) / stddev. 
QuantizeOpQuantizes a TensorBuffer with given zeroPoint and scale
-
-
-
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/common/package-summary.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/common/package-summary.html deleted file mode 100644 index 7a7d4b1e03..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/common/package-summary.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - - - -org.tensorflow.lite.support.common - - - -
-
-
-
-
-
-
- -
-
-
-

Interfaces

-
- - - - - - - - - - - - - -
Operator<T>The common interface for classes that carries an "apply" method, which converts T to another one. 
Processor<T>Processes T object with prepared Operator&lt;T&gt;
TensorOperatorApplies some operation on TensorBuffers. 
-
-

Classes

-
- - - - - - - - - - - - - - - - - -
FileUtilFile I/O utilities. 
SequentialProcessor<T>A processor base class that chains a serial of Operator&lt;T&gt; and executes them. 
TensorProcessorTensorProcessor is a helper class for preprocessing and postprocessing tensors. 
TensorProcessor.BuilderThe Builder to create an TensorProcessor, which could be executed later. 
-
-
-
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/BoundingBoxUtil.CoordinateType.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/BoundingBoxUtil.CoordinateType.html deleted file mode 100644 index 3200db8d53..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/BoundingBoxUtil.CoordinateType.html +++ /dev/null @@ -1,434 +0,0 @@ - - - - - - - - - -BoundingBoxUtil.CoordinateType - - - -
-
-
-
-
- -
- public static final enum - BoundingBoxUtil.CoordinateType -
-
-
-
-

Denotes if the coordinates are actual pixels or relative ratios.

-
-
-
- -
-

Inherited Methods

- - - -
-
- -
- - - - -
-

Enum Values

- -
-

- - public - static - final - - - BoundingBoxUtil.CoordinateType - - -PIXEL -

-
-
-
-

The coordinates are actual pixel values.

-
-
- -
-

- - public - static - final - - - BoundingBoxUtil.CoordinateType - - -RATIO -

-
-
-
-

The coordinates are relative ratios in range [0, 1].

-
-
-
- - - - - - - - - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/BoundingBoxUtil.Type.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/BoundingBoxUtil.Type.html deleted file mode 100644 index 18d4cd1799..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/BoundingBoxUtil.Type.html +++ /dev/null @@ -1,463 +0,0 @@ - - - - - - - - - -BoundingBoxUtil.Type - - - -
-
-
-
-
- -
- public static final enum - BoundingBoxUtil.Type -
-
-
-
-

Denotes how a bounding box is represented.

-
-
-
- -
-

Inherited Methods

- - - -
-
- -
- - - - -
-

Enum Values

- -
-

- - public - static - final - - - BoundingBoxUtil.Type - - -BOUNDARIES -

-
-
-
-

Represents the bounding box by using the combination of boundaries, {left, top, right, - bottom}. The default order is {left, top, right, bottom}. Other orders can be indicated by an - index array. -

-
-
- -
-

- - public - static - final - - - BoundingBoxUtil.Type - - -CENTER -

-
-
-
-

Represents the bounding box by using the center of the box, width and height. The default - order is {center_x, center_y, width, height}. Other orders can be indicated by an index - array. -

-
-
- -
-

- - public - static - final - - - BoundingBoxUtil.Type - - -UPPER_LEFT -

-
-
-
-

Represents the bounding box by using the upper_left corner, width and height. The default - order is {upper_left_x, upper_left_y, width, height}. Other orders can be indicated by an - index array. -

-
-
-
- - - - - - - - - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/BoundingBoxUtil.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/BoundingBoxUtil.html deleted file mode 100644 index f270fe32ea..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/BoundingBoxUtil.html +++ /dev/null @@ -1,354 +0,0 @@ - - - - - - - - - -BoundingBoxUtil - - - -
-
-
-
-
- -
- public final class - BoundingBoxUtil -
-
-
-
-

Helper class for converting values that represents bounding boxes into rectangles. - -

The class provides a static function to create bounding boxes as RectF from different types of configurations. - -

Generally, a bounding box could be represented by 4 float values, but the values could be - interpreted in many ways. We now support 3 BoundingBoxUtil.Type of configurations, and the order of - elements in each type is configurable as well. -

-

-
-
- -
-

Nested Classes

- - - - - - - - - - - -
- - - - - enumBoundingBoxUtil.CoordinateTypeDenotes if the coordinates are actual pixels or relative ratios. 
- - - - - enumBoundingBoxUtil.TypeDenotes how a bounding box is represented. 
-
- -
-

Public Methods

- - - - - -
- - - - static - - List<RectF> - -
-convert(TensorBuffer tensor, int[] valueIndex, int boundingBoxAxis, BoundingBoxUtil.Type type, BoundingBoxUtil.CoordinateType coordinateType, int height, int width) - -
Creates a list of bounding boxes from a TensorBuffer which represents bounding boxes.
-
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - - - - -
-

Public Methods

- -
-

- - public - static - - - - List<RectF> - -convert -(TensorBuffer tensor, int[] valueIndex, int boundingBoxAxis, BoundingBoxUtil.Type type, BoundingBoxUtil.CoordinateType coordinateType, int height, int width) -

-
-
-
-
-

Creates a list of bounding boxes from a TensorBuffer which represents bounding boxes.

-
-
Parameters
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
tensorholds the data representing some boxes.
valueIndexdenotes the order of the elements defined in each bounding box type. An empty - index array represent the default order of each bounding box type. For example, to denote - the default order of BOUNDARIES, {left, top, right, bottom}, the index should be {0, 1, 2, - 3}. To denote the order {left, right, top, bottom}, the order should be {0, 2, 1, 3}. -

The index array can be applied to all bounding box types to adjust the order of their - corresponding underlying elements.

boundingBoxAxisspecifies the index of the dimension that represents bounding box. The - size of that dimension is required to be 4. Index here starts from 0. For example, if the - tensor has shape 4x10, the axis for bounding boxes is likely to be 0. Negative axis is also - supported: -1 gives the last axis and -2 gives the second, .etc. theFor shape 10x4, the - axis is likely to be 1 (or -1, equivalently).
typedefines how values should be converted into boxes. See BoundingBoxUtil.Type
coordinateTypedefines how values are interpreted to coordinates. See BoundingBoxUtil.CoordinateType
heightthe height of the image which the boxes belong to. Only has effects when coordinateType is BoundingBoxUtil.CoordinateType.RATIO
widththe width of the image which the boxes belong to. Only has effects when coordinateType is BoundingBoxUtil.CoordinateType.RATIO
-
-
-
Returns
-
  • A list of bounding boxes that the tensor represents. All dimensions except - boundingBoxAxis will be collapsed with order kept. For example, given tensor with shape {1, 4, 10, 2} and boundingBoxAxis = 1, The result will be a list - of 20 bounding boxes.
-
-
-
Throws
- - - - - - - - - - - - - -
IllegalArgumentExceptionif size of bounding box dimension (set by boundingBoxAxis) is not 4.
IllegalArgumentExceptionif boundingBoxAxis is not in (-(D+1), D) where - D is the number of dimensions of the tensor.
IllegalArgumentExceptionif tensor has data type other than DataType.FLOAT32. -
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/ColorSpaceType.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/ColorSpaceType.html deleted file mode 100644 index 4b429217b1..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/ColorSpaceType.html +++ /dev/null @@ -1,540 +0,0 @@ - - - - - - - - - -ColorSpaceType - - - -
-
-
-
-
- -
- public enum - ColorSpaceType -
-
-
-
-

Represents the type of color space of an image.

-
-
-
- -
-

Inherited Methods

- - - -
-
- -
- - - - -
-

Enum Values

- -
-

- - public - static - final - - - ColorSpaceType - - -GRAYSCALE -

-
-
-
-

Each pixel is a single element representing only the amount of light.

-
-
- -
-

- - public - static - final - - - ColorSpaceType - - -NV12 -

-
-
-
-

YUV420sp format, encoded as "YYYYYYYY UVUV".

-
-
- -
-

- - public - static - final - - - ColorSpaceType - - -NV21 -

-
-
-
-

YUV420sp format, encoded as "YYYYYYYY VUVU", the standard picture format on Android Camera1 - preview. -

-
-
- -
-

- - public - static - final - - - ColorSpaceType - - -RGB -

-
-
-
-

Each pixel has red, green, and blue color components.

-
-
- -
-

- - public - static - final - - - ColorSpaceType - - -YUV_420_888 -

-
-
-
-

YUV420 format corresponding to ImageFormat.YUV_420_888. The actual - encoding format (i.e. NV12 / Nv21 / YV12 / YV21) depends on the implementation of the image. - -

Use this format only when you load an Image. -

-
-
- -
-

- - public - static - final - - - ColorSpaceType - - -YV12 -

-
-
-
-

YUV420p format, encoded as "YYYYYYYY VV UU".

-
-
- -
-

- - public - static - final - - - ColorSpaceType - - -YV21 -

-
-
-
-

YUV420p format, encoded as "YYYYYYYY UU VV".

-
-
-
- - - - - - - - - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/ImageOperator.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/ImageOperator.html deleted file mode 100644 index 1330142158..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/ImageOperator.html +++ /dev/null @@ -1,350 +0,0 @@ - - - - - - - - - -ImageOperator - - - -
-
-
-
-
- -
- public interface - ImageOperator -
-
-
-
- Known Indirect Subclasses - -
- - -
-
-
-

Operates a TensorImage object. Used in ImageProcessor.

-
-
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - -
- abstract - - - - - TensorImage - -
-apply(TensorImage image) - -
-
- abstract - - - - - int - -
-getOutputImageHeight(int inputImageHeight, int inputImageWidth) - -
Computes the height of the expected output image when input image size is given.
-
-
- abstract - - - - - int - -
-getOutputImageWidth(int inputImageHeight, int inputImageWidth) - -
Computes the width of the expected output image when input image size is given.
-
-
- abstract - - - - - PointF - -
-inverseTransform(PointF point, int inputImageHeight, int inputImageWidth) - -
Transforms a point from coordinates system of the result image back to the one of the input - image.
-
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - - - - -
-

Public Methods

- -
-

- - public - - - abstract - - TensorImage - -apply -(TensorImage image) -

-
-
-
-
-

-
-
Parameters
- - - - - -
image
-
- -
-
- -
-

- - public - - - abstract - - int - -getOutputImageHeight -(int inputImageHeight, int inputImageWidth) -

-
-
-
-
-

Computes the height of the expected output image when input image size is given.

-
-
Parameters
- - - - - - - - - -
inputImageHeight
inputImageWidth
-
-
-
- -
-

- - public - - - abstract - - int - -getOutputImageWidth -(int inputImageHeight, int inputImageWidth) -

-
-
-
-
-

Computes the width of the expected output image when input image size is given.

-
-
Parameters
- - - - - - - - - -
inputImageHeight
inputImageWidth
-
-
-
- -
-

- - public - - - abstract - - PointF - -inverseTransform -(PointF point, int inputImageHeight, int inputImageWidth) -

-
-
-
-
-

Transforms a point from coordinates system of the result image back to the one of the input - image.

-
-
Parameters
- - - - - - - - - - - - - -
pointthe point from the result coordinates system.
inputImageHeightthe height of input image.
inputImageWidththe width of input image.
-
-
-
Returns
-
  • the point with the coordinates from the coordinates system of the input image. -
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/ImageProcessor.Builder.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/ImageProcessor.Builder.html deleted file mode 100644 index 4361baf599..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/ImageProcessor.Builder.html +++ /dev/null @@ -1,430 +0,0 @@ - - - - - - - - - -ImageProcessor.Builder - - - -
-
-
-
-
- -
- public static class - ImageProcessor.Builder -
-
-
-
-

The Builder to create an ImageProcessor, which could be executed later.

- -
-
-
- -
-

Public Constructors

- - - - - -
- -
-Builder() - -
-
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - -
- - - - - - Builder<TensorImage> - -
-add(Operator<T> op) - -
-
-ImageProcessor.Builder - -
-add(TensorOperator op) - -
Adds a TensorOperator into the Operator chain.
-
-
-ImageProcessor.Builder - -
-add(ImageOperator op) - -
Adds an ImageOperator into the Operator chain.
-
-
-ImageProcessor - -
-build() - -
Completes the building process and gets the ImageProcessor instance.
-
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -Builder -() -

-
-
-
-
-

-
-
-
- - - - -
-

Public Methods

- -
-

- - public - - - - - Builder<TensorImage> - -add -(Operator<T> op) -

-
-
-
-
-

-
-
Parameters
- - - - - -
op
-
-
-
- -
-

- - public - - - - - ImageProcessor.Builder - -add -(TensorOperator op) -

-
-
-
-
-

Adds a TensorOperator into the Operator chain. In execution, the processor calls - TensorImage.getTensorBuffer() to transform the TensorImage by transforming - the underlying TensorBuffer.

-
-
Parameters
- - - - - -
opthe Operator instance to be executed then -
-
-
-
- -
-

- - public - - - - - ImageProcessor.Builder - -add -(ImageOperator op) -

-
-
-
-
-

Adds an ImageOperator into the Operator chain.

-
-
Parameters
- - - - - -
opthe Operator instance to be executed then -
-
-
-
- -
-

- - public - - - - - ImageProcessor - -build -() -

-
-
-
-
-

Completes the building process and gets the ImageProcessor instance.

-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/ImageProcessor.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/ImageProcessor.html deleted file mode 100644 index ae1aeb4c28..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/ImageProcessor.html +++ /dev/null @@ -1,619 +0,0 @@ - - - - - - - - - -ImageProcessor - - - -
-
-
-
-
- -
- public class - ImageProcessor -
-
-
-
-

ImageProcessor is a helper class for preprocessing and postprocessing TensorImage. It - could transform a TensorImage to another by executing a chain of ImageOperator. - -

Example Usage: - -

-   ImageProcessor processor = new ImageProcessor.Builder()
-       .add(new ResizeOp(224, 224, ResizeMethod.NEAREST_NEIGHBOR)
-       .add(new Rot90Op())
-       .add(new NormalizeOp(127.5f, 127.5f))
-       .build();
-   TensorImage anotherTensorImage = processor.process(tensorImage);
- 
-

WARNING: Instances of an ImageProcessor are not thread-safe with updateNumberOfRotations(int). Updating the number of rotations and then processing images (using - SequentialProcessor.process(T)) must be protected from concurrent access. It is recommended to create separate - ImageProcessor instances for each thread. If multiple threads access a ImageProcessor concurrently, it must be synchronized externally.

- -

-
-
- -
-

Nested Classes

- - - - - - -
- - - - - classImageProcessor.BuilderThe Builder to create an ImageProcessor, which could be executed later. 
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - - - - - -
- - - - - - RectF - -
-inverseTransform(RectF rect, int inputImageHeight, int inputImageWidth) - -
Transforms a rectangle from coordinates system of the result image back to the one of the input - image.
-
-
- - - - - - PointF - -
-inverseTransform(PointF point, int inputImageHeight, int inputImageWidth) - -
Transforms a point from coordinates system of the result image back to the one of the input - image.
-
-
-TensorImage - -
-process(TensorImage image) - -
Processes a TensorImage object with prepared TensorOperator.
-
-
- - - - - - void - -
-updateNumberOfRotations(int k) - -
Updates the number of rotations for the first Rot90Op in this ImageProcessor.
-
-
- - synchronized - - - - void - -
-updateNumberOfRotations(int k, int occurrence) - -
Updates the number of rotations for the Rot90Op specified by occurrence in this - ImageProcessor.
-
-
-
- -
-

Inherited Methods

- - - -
-
- -
- - - - - - - - - - -
-

Public Methods

- -
-

- - public - - - - - RectF - -inverseTransform -(RectF rect, int inputImageHeight, int inputImageWidth) -

-
-
-
-
-

Transforms a rectangle from coordinates system of the result image back to the one of the input - image.

-
-
Parameters
- - - - - - - - - - - - - -
rectthe rectangle from the result coordinates system.
inputImageHeightthe height of input image.
inputImageWidththe width of input image.
-
-
-
Returns
-
  • the rectangle with the coordinates from the coordinates system of the input image. -
-
-
-
- -
-

- - public - - - - - PointF - -inverseTransform -(PointF point, int inputImageHeight, int inputImageWidth) -

-
-
-
-
-

Transforms a point from coordinates system of the result image back to the one of the input - image.

-
-
Parameters
- - - - - - - - - - - - - -
pointthe point from the result coordinates system.
inputImageHeightthe height of input image.
inputImageWidththe width of input image.
-
-
-
Returns
-
  • the point with the coordinates from the coordinates system of the input image. -
-
-
-
- -
-

- - public - - - - - TensorImage - -process -(TensorImage image) -

-
-
-
-
-

Processes a TensorImage object with prepared TensorOperator.

-
-
Parameters
- - - - - -
image
-
-
-
Throws
- - - - - -
IllegalArgumentExceptionif the image is not supported by any op. -
-
-
-
- -
-

- - public - - - - - void - -updateNumberOfRotations -(int k) -

-
-
-
-
-

Updates the number of rotations for the first Rot90Op in this ImageProcessor. - -

WARNING:this method is not thread-safe. Updating the number of rotations and - then processing images (using SequentialProcessor.process(T)) must be protected from concurrent access with - additional synchronization.

-
-
Parameters
- - - - - -
kthe number of rotations
-
-
-
Throws
- - - - - -
IllegalStateExceptionif Rot90Op has not been added to this ImageProcessor -
-
-
-
- -
-

- - public - - - - synchronized - void - -updateNumberOfRotations -(int k, int occurrence) -

-
-
-
-
-

Updates the number of rotations for the Rot90Op specified by occurrence in this - ImageProcessor. - -

WARNING:this method is not thread-safe. Updating the number of rotations and - then processing images (using SequentialProcessor.process(T)) must be protected from concurrent access with - additional synchronization.

-
-
Parameters
- - - - - - - - - -
kthe number of rotations
occurrencethe index of perticular Rot90Op in this ImageProcessor. For - example, if the second Rot90Op needs to be updated, occurrence should be - set to 1.
-
-
-
Throws
- - - - - - - - - -
IndexOutOfBoundsExceptionif occurrence is negative or is not less than the - number of Rot90Op in this ImageProcessor
IllegalStateExceptionif Rot90Op has not been added to this ImageProcessor -
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/ImageProperties.Builder.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/ImageProperties.Builder.html deleted file mode 100644 index e4baa74876..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/ImageProperties.Builder.html +++ /dev/null @@ -1,435 +0,0 @@ - - - - - - - - - -ImageProperties.Builder - - - -
-
-
-
-
- -
- public static abstract class - ImageProperties.Builder -
-
-
-
-

Builder for ImageProperties. Different image objects may require different properties. - See the detais below: - -

    -TensorBuffer: -
  • Mandatory proterties: height / width / colorSpaceType. The shape of the TensorBuffer - object will not be used to determine image height and width. -
-

-
-
-
- -
-

Public Constructors

- - - - - -
- -
-Builder() - -
-
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - -
-ImageProperties - -
-build() - -
-
- abstract - - - - - ImageProperties.Builder - -
-setColorSpaceType(ColorSpaceType colorSpaceType) - -
-
- abstract - - - - - ImageProperties.Builder - -
-setHeight(int height) - -
-
- abstract - - - - - ImageProperties.Builder - -
-setWidth(int width) - -
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -Builder -() -

-
-
-
-
-

-
-
-
- - - - -
-

Public Methods

- -
-

- - public - - - - - ImageProperties - -build -() -

-
-
-
-
-

-
-
- -
-

- - public - - - abstract - - ImageProperties.Builder - -setColorSpaceType -(ColorSpaceType colorSpaceType) -

-
-
-
-
-

-
-
Parameters
- - - - - -
colorSpaceType
-
-
-
- -
-

- - public - - - abstract - - ImageProperties.Builder - -setHeight -(int height) -

-
-
-
-
-

-
-
Parameters
- - - - - -
height
-
-
-
- -
-

- - public - - - abstract - - ImageProperties.Builder - -setWidth -(int width) -

-
-
-
-
-

-
-
Parameters
- - - - - -
width
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/ImageProperties.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/ImageProperties.html deleted file mode 100644 index 24ec7288e8..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/ImageProperties.html +++ /dev/null @@ -1,423 +0,0 @@ - - - - - - - - - -ImageProperties - - - -
-
-
-
-
- -
- public abstract class - ImageProperties -
-
-
-
-

Represents the properties of an image object when being loaded to a TensorImage. See - TensorImage.load(Bitmap). ImageProperties currently is only used with TensorBuffer. -

-
-
-
- -
-

Nested Classes

- - - - - - -
- - - - - classImageProperties.BuilderBuilder for ImageProperties
-
- -
-

Public Constructors

- - - - - -
- - -
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - -
- - - - static - - ImageProperties.Builder - -
-builder() - -
-
- abstract - - - - - ColorSpaceType - - -
- abstract - - - - - int - -
-getHeight() - -
-
- abstract - - - - - int - -
-getWidth() - -
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -ImageProperties -() -

-
-
-
-
-

-
-
-
- - - - -
-

Public Methods

- -
-

- - public - static - - - - ImageProperties.Builder - -builder -() -

-
-
-
-
-

-
-
- -
-

- - public - - - abstract - - ColorSpaceType - -getColorSpaceType -() -

-
-
-
-
-

-
-
- -
-

- - public - - - abstract - - int - -getHeight -() -

-
-
-
-
-

-
-
- -
-

- - public - - - abstract - - int - -getWidth -() -

-
-
-
-
-

-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/MlImageAdapter.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/MlImageAdapter.html deleted file mode 100644 index a888ad3453..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/MlImageAdapter.html +++ /dev/null @@ -1,325 +0,0 @@ - - - - - - - - - -MlImageAdapter - - - -
-
-
-
-
- -
- public class - MlImageAdapter -
-
-
-
-

Converts MlImage to TensorImage and vice versa.

-
-
-
- -
-

Public Methods

- - - - - - - - - -
- - - - static - - ColorSpaceType - -
-createColorSpaceTypeFrom(int imageFormat) - -
Creatas a ColorSpaceType from MlImage.ImageFormat.
-
-
- - - - static - - TensorImage - -
-createTensorImageFrom(MlImage mlImage) - -
Creates a TensorImage from an MlImage.
-
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - - - - -
-

Public Methods

- -
-

- - public - static - - - - ColorSpaceType - -createColorSpaceTypeFrom -(int imageFormat) -

-
-
-
-
-

Creatas a ColorSpaceType from MlImage.ImageFormat.

-
-
Parameters
- - - - - -
imageFormat
-
-
-
- -
-

- - public - static - - - - TensorImage - -createTensorImageFrom -(MlImage mlImage) -

-
-
-
-
-

Creates a TensorImage from an MlImage. - -

IMPORTANT: The returned TensorImage shares storage with mlImage, so do not - modify the contained object in the TensorImage, as MlImage expects its - contained data are immutable. Also, callers should use MlImage#getInternal()#acquire() - and MlImage#release() to avoid the mlImage being released unexpectedly.

-
-
Parameters
- - - - - -
mlImage
-
-
-
Throws
- - - - - -
IllegalArgumentExceptionif the mlImage is built from an unsupported container. -
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/TensorImage.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/TensorImage.html deleted file mode 100644 index bf604eeb3b..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/TensorImage.html +++ /dev/null @@ -1,1328 +0,0 @@ - - - - - - - - - -TensorImage - - - -
-
-
-
-
- -
- public class - TensorImage -
-
-
-
-

TensorImage is the wrapper class for Image object. When using image processing utils in - TFLite.support library, it's common to convert image objects in variant types to TensorImage at - first. - -

At present, only RGB images are supported, and the A channel is always ignored. - -

Details of data storage: a TensorImage object may have 2 potential sources of truth: a - Bitmap or a TensorBuffer. TensorImage maintains the - state and only converts one to the other when needed. A typical use case of TensorImage - is to first load a Bitmap image, then process it using ImageProcessor, and finally get the underlying ByteBuffer of the TensorBuffer - and feed it into the TFLite interpreter. - -

IMPORTANT: to achieve the best performance, TensorImage avoids copying data whenever - it's possible. Therefore, it doesn't own its data. Callers should not modify data objects those - are passed to load(Bitmap) or load(TensorBuffer, ColorSpaceType). - -

IMPORTANT: all methods are not proved thread-safe.

- -

-
-
- -
-

Public Constructors

- - - - - - - - - -
- -
-TensorImage() - -
Initializes a TensorImage object.
-
-
- -
-TensorImage(DataType dataType) - -
Initializes a TensorImage object with the specified data type.
-
-
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - static - - TensorImage - -
-createFrom(TensorImage src, DataType dataType) - -
Creates a deep-copy of a given TensorImage with the desired data type.
-
-
- - - - static - - TensorImage - -
-fromBitmap(Bitmap bitmap) - -
Initializes a TensorImage object of DataType.UINT8 with a Bitmap .
-
-
- - - - - - Bitmap - -
-getBitmap() - -
Returns a Bitmap representation of this TensorImage.
-
-
-ByteBuffer - -
-getBuffer() - -
Returns a ByteBuffer representation of this TensorImage with the expected data - type.
-
-
-ColorSpaceType - -
-getColorSpaceType() - -
Gets the color space type of this TensorImage.
-
-
-DataType - -
-getDataType() - -
Gets the data type of this TensorImage.
-
-
- - - - - - int - -
-getHeight() - -
Gets the image height.
-
-
- - - - - - Image - -
-getMediaImage() - -
Returns an Image representation of this TensorImage.
-
-
-TensorBuffer - -
-getTensorBuffer() - -
Returns a TensorBuffer representation of this TensorImage with the expected - data type.
-
-
- - - - - - int - -
-getWidth() - -
Gets the image width.
-
-
- - - - - - void - -
-load(TensorBuffer buffer, ColorSpaceType colorSpaceType) - -
Loads a TensorBuffer containing pixel values with the specific ColorSpaceType.
-
-
- - - - - - void - -
-load(Bitmap bitmap) - -
Loads a Bitmap image object into this TensorImage.
-
-
- - - - - - void - -
-load(int[] pixels, int[] shape) - -
Loads an int array as RGB pixels into this TensorImage, representing the pixels inside.
-
-
- - - - - - void - -
-load(float[] pixels, int[] shape) - -
Loads a float array as RGB pixels into this TensorImage, representing the pixels - inside.
-
-
- - - - - - void - -
-load(ByteBuffer buffer, ImageProperties imageProperties) - -
Loads a ByteBuffer containing pixel values with the specific ImageProperties.
-
-
- - - - - - void - -
-load(TensorBuffer buffer, ImageProperties imageProperties) - -
Loads a TensorBuffer containing pixel values with the specific ImageProperties.
-
-
- - - - - - void - -
-load(Image image) - -
Loads an Image object into this TensorImage.
-
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -TensorImage -() -

-
-
-
-
-

Initializes a TensorImage object. - -

Note: the data type of this TensorImage is DataType.UINT8. Use TensorImage(DataType) if other data types are preferred. -

-
-
- -
-

- - public - - - - - - -TensorImage -(DataType dataType) -

-
-
-
-
-

Initializes a TensorImage object with the specified data type. - -

When getting a TensorBuffer or a ByteBuffer from this TensorImage, - such as using getTensorBuffer() and getBuffer(), the data values will be - converted to the specified data type. - -

Note: the shape of a TensorImage is not fixed. It can be adjusted to the shape of - the image being loaded to this TensorImage.

-
-
Parameters
- - - - - -
dataTypethe expected data type of the resulting TensorBuffer. The type is - always fixed during the lifetime of the TensorImage. To convert the data type, use - createFrom(TensorImage, DataType) to create a copy and convert data type at the - same time.
-
-
-
Throws
- - - - - -
IllegalArgumentExceptionif dataType is neither DataType.UINT8 nor - DataType.FLOAT32 -
-
-
-
-
- - - - -
-

Public Methods

- -
-

- - public - static - - - - TensorImage - -createFrom -(TensorImage src, DataType dataType) -

-
-
-
-
-

Creates a deep-copy of a given TensorImage with the desired data type.

-
-
Parameters
- - - - - - - - - -
srcthe TensorImage to copy from
dataTypethe expected data type of newly created TensorImage
-
-
-
Returns
-
  • a TensorImage whose data is copied from src and data type is dataType -
-
-
-
- -
-

- - public - static - - - - TensorImage - -fromBitmap -(Bitmap bitmap) -

-
-
-
- -
- -
-

- - public - - - - - Bitmap - -getBitmap -() -

-
-
-
-
-

Returns a Bitmap representation of this TensorImage. - -

Numeric casting and clamping will be applied if the stored data is not uint8. - -

Note that, the reliable way to get pixels from an ALPHA_8 Bitmap is to use copyPixelsToBuffer. Bitmap methods such as, `setPixels()` and `getPixels` do not work. - -

Important: it's only a reference. DO NOT MODIFY. We don't create a copy here for performance - concern, but if modification is necessary, please make a copy.

-
-
Returns
- -
-
-
Throws
- - - - - -
IllegalStateExceptionif the TensorImage never loads data -
-
-
-
- -
-

- - public - - - - - ByteBuffer - -getBuffer -() -

-
-
-
-
-

Returns a ByteBuffer representation of this TensorImage with the expected data - type. - -

Numeric casting and clamping will be applied if the stored data is different from the data - type of the TensorImage. - -

Important: it's only a reference. DO NOT MODIFY. We don't create a copy here for performance - concern, but if modification is necessary, please make a copy. - -

It's essentially a short cut for getTensorBuffer().getBuffer().

-
-
Returns
-
  • a reference to a ByteBuffer which holds the image data
-
-
-
Throws
- - - - - -
IllegalStateExceptionif the TensorImage never loads data -
-
-
-
- -
-

- - public - - - - - ColorSpaceType - -getColorSpaceType -() -

-
-
-
-
-

Gets the color space type of this TensorImage.

-
-
Throws
- - - - - -
IllegalStateExceptionif the TensorImage never loads data -
-
-
-
- -
-

- - public - - - - - DataType - -getDataType -() -

-
-
-
-
-

Gets the data type of this TensorImage.

-
-
Returns
- -
-
-
- -
-

- - public - - - - - int - -getHeight -() -

-
-
-
-
-

Gets the image height.

-
-
Throws
- - - - - - - - - -
IllegalStateExceptionif the TensorImage never loads data
IllegalArgumentExceptionif the underlying data is corrupted -
-
-
-
- -
-

- - public - - - - - Image - -getMediaImage -() -

-
-
-
-
-

Returns an Image representation of this TensorImage. - -

This method only works when the TensorImage is backed by an Image, meaning you need to first load an Image through - load(Image). - -

Important: it's only a reference. DO NOT MODIFY. We don't create a copy here for performance - concern, but if modification is necessary, please make a copy.

-
-
Returns
- -
-
-
Throws
- - - - - -
IllegalStateExceptionif the TensorImage never loads data -
-
-
-
- -
-

- - public - - - - - TensorBuffer - -getTensorBuffer -() -

-
-
-
-
-

Returns a TensorBuffer representation of this TensorImage with the expected - data type. - -

Numeric casting and clamping will be applied if the stored data is different from the data - type of the TensorImage. - -

Important: it's only a reference. DO NOT MODIFY. We don't create a copy here for performance - concern, but if modification is necessary, please make a copy.

-
-
Returns
- -
-
-
Throws
- - - - - -
IllegalStateExceptionif the TensorImage never loads data -
-
-
-
- -
-

- - public - - - - - int - -getWidth -() -

-
-
-
-
-

Gets the image width.

-
-
Throws
- - - - - - - - - -
IllegalStateExceptionif the TensorImage never loads data
IllegalArgumentExceptionif the underlying data is corrupted -
-
-
-
- -
-

- - public - - - - - void - -load -(TensorBuffer buffer, ColorSpaceType colorSpaceType) -

-
-
-
-
-

Loads a TensorBuffer containing pixel values with the specific ColorSpaceType. - -

Only supports ColorSpaceType.RGB and ColorSpaceType.GRAYSCALE. Use load(TensorBuffer, ImageProperties) for other color space types. - -

Note: if the data type of buffer does not match that of this TensorImage, - numeric casting and clamping will be applied when calling getTensorBuffer() and getBuffer().

-
-
Parameters
- - - - - - - - - -
bufferthe TensorBuffer to be loaded. Its shape should be either (h, w, 3) or - (1, h, w, 3) for RGB images, and either (h, w) or (1, h, w) for GRAYSCALE images
colorSpaceType
-
-
-
Throws
- - - - - -
IllegalArgumentExceptionif the shape of buffer does not match the color space type, or - if the color space type is not supported -
-
-
-
- -
-

- - public - - - - - void - -load -(Bitmap bitmap) -

-
-
-
-
-

Loads a Bitmap image object into this TensorImage. - -

Note: if the TensorImage has data type other than DataType.UINT8, numeric - casting and clamping will be applied when calling getTensorBuffer() and getBuffer(), where the Bitmap will be converted into a TensorBuffer. - -

Important: when loading a bitmap, DO NOT MODIFY the bitmap from the caller side anymore. The - TensorImage object will rely on the bitmap. It will probably modify the bitmap as well. - In this method, we perform a zero-copy approach for that bitmap, by simply holding its - reference. Use bitmap.copy(bitmap.getConfig(), true) to create a copy if necessary. - -

Note: to get the best performance, please load images in the same shape to avoid memory - re-allocation.

-
-
Parameters
- - - - - -
bitmap
-
-
-
Throws
- - - - - -
IllegalArgumentExceptionif bitmap is not in ARGB_8888 -
-
-
-
- -
-

- - public - - - - - void - -load -(int[] pixels, int[] shape) -

-
-
-
-
-

Loads an int array as RGB pixels into this TensorImage, representing the pixels inside. - -

Note: numeric casting and clamping will be applied to convert the values into the data type - of this TensorImage when calling getTensorBuffer() and getBuffer().

-
-
Parameters
- - - - - - - - - -
pixelsthe RGB pixels representing the image
shapethe shape of the image, should either in form (h, w, 3), or in form (1, h, w, 3)
-
-
-
Throws
- - - - - -
IllegalArgumentExceptionif the shape is neither (h, w, 3) nor (1, h, w, 3) -
-
-
-
- -
-

- - public - - - - - void - -load -(float[] pixels, int[] shape) -

-
-
-
-
-

Loads a float array as RGB pixels into this TensorImage, representing the pixels - inside. - -

Note: if the TensorImage has a data type other than DataType.FLOAT32, - numeric casting and clamping will be applied when calling getTensorBuffer() and getBuffer().

-
-
Parameters
- - - - - - - - - -
pixelsthe RGB pixels representing the image
shapethe shape of the image, should either in form (h, w, 3), or in form (1, h, w, 3)
-
-
-
Throws
- - - - - -
IllegalArgumentExceptionif the shape is neither (h, w, 3) nor (1, h, w, 3) -
-
-
-
- -
-

- - public - - - - - void - -load -(ByteBuffer buffer, ImageProperties imageProperties) -

-
-
-
-
-

Loads a ByteBuffer containing pixel values with the specific ImageProperties. - -

Note: if the data type of buffer does not match that of this TensorImage, - numeric casting and clamping will be applied when calling getTensorBuffer() and getBuffer().

-
-
Parameters
- - - - - - - - - -
buffer
imageProperties
-
-
-
Throws
- - - - - -
IllegalArgumentExceptionif buffer size is less than the image size indicated by image - height, width, and color space type in ImageProperties -
-
-
-
- -
-

- - public - - - - - void - -load -(TensorBuffer buffer, ImageProperties imageProperties) -

-
-
-
-
-

Loads a TensorBuffer containing pixel values with the specific ImageProperties. - -

The shape of the TensorBuffer will not be used to determine image height and width. - Set image properties through ImageProperties. - -

Note: if the data type of buffer does not match that of this TensorImage, - numeric casting and clamping will be applied when calling getTensorBuffer() and getBuffer().

-
-
Parameters
- - - - - - - - - -
buffer
imageProperties
-
-
-
Throws
- - - - - -
IllegalArgumentExceptionif buffer size is less than the image size indicated by image - height, width, and color space type in ImageProperties -
-
-
-
- -
-

- - public - - - - - void - -load -(Image image) -

-
-
-
-
-

Loads an Image object into this TensorImage. - -

The main usage of this method is to load an Image object as model - input to the https://www.tensorflow.org/lite/inference_with_metadata/task_library/overview. - TensorImage backed by Image is not supported by ImageProcessor. - -

* @throws IllegalArgumentException if the ImageFormat of image is not YUV_420_888 -

-
-
Parameters
- - - - - -
image
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/ops/ResizeOp.ResizeMethod.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/ops/ResizeOp.ResizeMethod.html deleted file mode 100644 index 6d1735b00f..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/ops/ResizeOp.ResizeMethod.html +++ /dev/null @@ -1,434 +0,0 @@ - - - - - - - - - -ResizeOp.ResizeMethod - - - -
-
-
-
-
- -
- public static final enum - ResizeOp.ResizeMethod -
-
-
-
-

Algorithms for resizing.

-
-
-
- -
-

Inherited Methods

- - - -
-
- -
- - - - -
-

Enum Values

- -
-

- - public - static - final - - - ResizeOp.ResizeMethod - - -BILINEAR -

-
-
-
-

-
-
- -
-

- - public - static - final - - - ResizeOp.ResizeMethod - - -NEAREST_NEIGHBOR -

-
-
-
-

-
-
-
- - - - - - - - - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/ops/ResizeOp.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/ops/ResizeOp.html deleted file mode 100644 index 6b29fe8345..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/ops/ResizeOp.html +++ /dev/null @@ -1,627 +0,0 @@ - - - - - - - - - -ResizeOp - - - -
-
-
-
-
- -
- public class - ResizeOp -
-
-
-
-

As a computation unit for processing images, it can resize an image to user-specified size. - -

It interpolates pixels when image is stretched, and discards pixels when image is compressed.

- -

-
-
- -
-

Nested Classes

- - - - - - -
- - - - - enumResizeOp.ResizeMethodAlgorithms for resizing. 
-
- -
-

Public Constructors

- - - - - -
- -
-ResizeOp(int targetHeight, int targetWidth, ResizeOp.ResizeMethod resizeMethod) - -
Creates a ResizeOp which can resize images to specified size in specified method.
-
-
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - -
-TensorImage - -
-apply(TensorImage image) - -
Applies the defined resizing on given image and returns the result.
-
-
- - - - - - int - -
-getOutputImageHeight(int inputImageHeight, int inputImageWidth) - -
Computes the height of the expected output image when input image size is given.
-
-
- - - - - - int - -
-getOutputImageWidth(int inputImageHeight, int inputImageWidth) - -
Computes the width of the expected output image when input image size is given.
-
-
- - - - - - PointF - -
-inverseTransform(PointF point, int inputImageHeight, int inputImageWidth) - -
Transforms a point from coordinates system of the result image back to the one of the input - image.
-
-
-
- -
-

Inherited Methods

- - - -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -ResizeOp -(int targetHeight, int targetWidth, ResizeOp.ResizeMethod resizeMethod) -

-
-
-
-
-

Creates a ResizeOp which can resize images to specified size in specified method.

-
-
Parameters
- - - - - - - - - - - - - -
targetHeightThe expected height of resized image.
targetWidthThe expected width of resized image.
resizeMethodThe algorithm to use for resizing. Options: ResizeOp.ResizeMethod -
-
-
-
-
- - - - -
-

Public Methods

- -
-

- - public - - - - - TensorImage - -apply -(TensorImage image) -

-
-
-
-
-

Applies the defined resizing on given image and returns the result. - -

Note: the content of input image will change, and image is the same instance - with the output.

-
-
Parameters
- - - - - -
imageinput image.
-
-
-
Returns
-
  • output image. -
-
-
-
- -
-

- - public - - - - - int - -getOutputImageHeight -(int inputImageHeight, int inputImageWidth) -

-
-
-
-
-

Computes the height of the expected output image when input image size is given.

-
-
Parameters
- - - - - - - - - -
inputImageHeight
inputImageWidth
-
-
-
- -
-

- - public - - - - - int - -getOutputImageWidth -(int inputImageHeight, int inputImageWidth) -

-
-
-
-
-

Computes the width of the expected output image when input image size is given.

-
-
Parameters
- - - - - - - - - -
inputImageHeight
inputImageWidth
-
-
-
- -
-

- - public - - - - - PointF - -inverseTransform -(PointF point, int inputImageHeight, int inputImageWidth) -

-
-
-
-
-

Transforms a point from coordinates system of the result image back to the one of the input - image.

-
-
Parameters
- - - - - - - - - - - - - -
pointthe point from the result coordinates system.
inputImageHeightthe height of input image.
inputImageWidththe width of input image.
-
-
-
Returns
-
  • the point with the coordinates from the coordinates system of the input image. -
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/ops/ResizeWithCropOrPadOp.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/ops/ResizeWithCropOrPadOp.html deleted file mode 100644 index c0ce143f62..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/ops/ResizeWithCropOrPadOp.html +++ /dev/null @@ -1,612 +0,0 @@ - - - - - - - - - -ResizeWithCropOrPadOp - - - -
-
-
-
-
- -
- public class - ResizeWithCropOrPadOp -
-
-
-
-

As a computation unit for processing images, it could resize image to predefined size. - -

It will not stretch or compress the content of image. However, to fit the new size, it crops - or pads pixels. When it crops image, it performs a center-crop; when it pads pixels, it performs - a zero-padding.

- -

-
-
- -
-

Public Constructors

- - - - - -
- -
-ResizeWithCropOrPadOp(int targetHeight, int targetWidth) - -
Creates a ResizeWithCropOrPadOp which could crop/pad images to specified size.
-
-
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - -
-TensorImage - -
-apply(TensorImage image) - -
Applies the defined resizing with cropping or/and padding on given image and returns the - result.
-
-
- - - - - - int - -
-getOutputImageHeight(int inputImageHeight, int inputImageWidth) - -
Computes the height of the expected output image when input image size is given.
-
-
- - - - - - int - -
-getOutputImageWidth(int inputImageHeight, int inputImageWidth) - -
Computes the width of the expected output image when input image size is given.
-
-
- - - - - - PointF - -
-inverseTransform(PointF point, int inputImageHeight, int inputImageWidth) - -
Transforms a point from coordinates system of the result image back to the one of the input - image.
-
-
-
- -
-

Inherited Methods

- - - -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -ResizeWithCropOrPadOp -(int targetHeight, int targetWidth) -

-
-
-
-
-

Creates a ResizeWithCropOrPadOp which could crop/pad images to specified size. It adopts - center-crop and zero-padding.

-
-
Parameters
- - - - - - - - - -
targetHeightThe expected height of cropped/padded image.
targetWidthThe expected width of cropped/padded image. -
-
-
-
-
- - - - -
-

Public Methods

- -
-

- - public - - - - - TensorImage - -apply -(TensorImage image) -

-
-
-
-
-

Applies the defined resizing with cropping or/and padding on given image and returns the - result. - -

Note: the content of input image will change, and image is the same instance - with the output.

-
-
Parameters
- - - - - -
imageinput image.
-
-
-
Returns
-
  • output image. -
-
-
-
- -
-

- - public - - - - - int - -getOutputImageHeight -(int inputImageHeight, int inputImageWidth) -

-
-
-
-
-

Computes the height of the expected output image when input image size is given.

-
-
Parameters
- - - - - - - - - -
inputImageHeight
inputImageWidth
-
-
-
- -
-

- - public - - - - - int - -getOutputImageWidth -(int inputImageHeight, int inputImageWidth) -

-
-
-
-
-

Computes the width of the expected output image when input image size is given.

-
-
Parameters
- - - - - - - - - -
inputImageHeight
inputImageWidth
-
-
-
- -
-

- - public - - - - - PointF - -inverseTransform -(PointF point, int inputImageHeight, int inputImageWidth) -

-
-
-
-
-

Transforms a point from coordinates system of the result image back to the one of the input - image.

-
-
Parameters
- - - - - - - - - - - - - -
pointthe point from the result coordinates system.
inputImageHeightthe height of input image.
inputImageWidththe width of input image.
-
-
-
Returns
-
  • the point with the coordinates from the coordinates system of the input image. -
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/ops/Rot90Op.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/ops/Rot90Op.html deleted file mode 100644 index 1fc37e20c6..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/ops/Rot90Op.html +++ /dev/null @@ -1,628 +0,0 @@ - - - - - - - - - -Rot90Op - - - -
-
-
-
-
- -
- public class - Rot90Op -
-
-
-
-

Rotates image counter-clockwise.

-
-
-
- -
-

Public Constructors

- - - - - - - - - -
- -
-Rot90Op() - -
Creates a Rot90 Op which will rotate image by 90 degree counter-clockwise.
-
-
- -
-Rot90Op(int k) - -
Creates a Rot90 Op which will rotate image by 90 degree for k times counter-clockwise.
-
-
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - -
-TensorImage - -
-apply(TensorImage image) - -
Applies the defined rotation on given image and returns the result.
-
-
- - - - - - int - -
-getOutputImageHeight(int inputImageHeight, int inputImageWidth) - -
Computes the height of the expected output image when input image size is given.
-
-
- - - - - - int - -
-getOutputImageWidth(int inputImageHeight, int inputImageWidth) - -
Computes the width of the expected output image when input image size is given.
-
-
- - - - - - PointF - -
-inverseTransform(PointF point, int inputImageHeight, int inputImageWidth) - -
Transforms a point from coordinates system of the result image back to the one of the input - image.
-
-
-
- -
-

Inherited Methods

- - - -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -Rot90Op -() -

-
-
-
-
-

Creates a Rot90 Op which will rotate image by 90 degree counter-clockwise.

-
-
- -
-

- - public - - - - - - -Rot90Op -(int k) -

-
-
-
-
-

Creates a Rot90 Op which will rotate image by 90 degree for k times counter-clockwise.

-
-
Parameters
- - - - - -
kThe number of times the image is rotated by 90 degrees. If it's positive, the image - will be rotated counter-clockwise. If it's negative, the op will rotate image clockwise. -
-
-
-
-
- - - - -
-

Public Methods

- -
-

- - public - - - - - TensorImage - -apply -(TensorImage image) -

-
-
-
-
-

Applies the defined rotation on given image and returns the result. - -

Note: the content of input image will change, and image is the same instance - with the output.

-
-
Parameters
- - - - - -
imageinput image.
-
-
-
Returns
-
  • output image. -
-
-
-
- -
-

- - public - - - - - int - -getOutputImageHeight -(int inputImageHeight, int inputImageWidth) -

-
-
-
-
-

Computes the height of the expected output image when input image size is given.

-
-
Parameters
- - - - - - - - - -
inputImageHeight
inputImageWidth
-
-
-
- -
-

- - public - - - - - int - -getOutputImageWidth -(int inputImageHeight, int inputImageWidth) -

-
-
-
-
-

Computes the width of the expected output image when input image size is given.

-
-
Parameters
- - - - - - - - - -
inputImageHeight
inputImageWidth
-
-
-
- -
-

- - public - - - - - PointF - -inverseTransform -(PointF point, int inputImageHeight, int inputImageWidth) -

-
-
-
-
-

Transforms a point from coordinates system of the result image back to the one of the input - image.

-
-
Parameters
- - - - - - - - - - - - - -
pointthe point from the result coordinates system.
inputImageHeightthe height of input image.
inputImageWidththe width of input image.
-
-
-
Returns
-
  • the point with the coordinates from the coordinates system of the input image. -
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/ops/TensorOperatorWrapper.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/ops/TensorOperatorWrapper.html deleted file mode 100644 index 3ffd3b0841..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/ops/TensorOperatorWrapper.html +++ /dev/null @@ -1,593 +0,0 @@ - - - - - - - - - -TensorOperatorWrapper - - - -
-
-
-
-
- -
- public class - TensorOperatorWrapper -
-
-
-
-

The adapter that makes a TensorOperator able to run with TensorImage.

- -
-
-
- -
-

Public Constructors

- - - - - -
- -
-TensorOperatorWrapper(TensorOperator op) - -
Wraps a TensorOperator object as an ImageOperator, so that the TensorOperator could handle TensorImage objects by handling its underlying TensorBuffer.
-
-
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - -
-TensorImage - -
-apply(TensorImage image) - -
-
- - - - - - int - -
-getOutputImageHeight(int inputImageHeight, int inputImageWidth) - -
Computes the height of the expected output image when input image size is given.
-
-
- - - - - - int - -
-getOutputImageWidth(int inputImageHeight, int inputImageWidth) - -
Computes the width of the expected output image when input image size is given.
-
-
- - - - - - PointF - -
-inverseTransform(PointF point, int inputImageHeight, int inputImageWidth) - -
Transforms a point from coordinates system of the result image back to the one of the input - image.
-
-
-
- -
-

Inherited Methods

- - - -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -TensorOperatorWrapper -(TensorOperator op) -

-
-
-
-
-

Wraps a TensorOperator object as an ImageOperator, so that the TensorOperator could handle TensorImage objects by handling its underlying TensorBuffer. - -

Requirement: The op should not change coordinate system when applied on an image.

-
-
Parameters
- - - - - -
opThe created operator. -
-
-
-
-
- - - - -
-

Public Methods

- -
-

- - public - - - - - TensorImage - -apply -(TensorImage image) -

-
-
-
-
-

-
-
Parameters
- - - - - -
image
-
-
-
- -
-

- - public - - - - - int - -getOutputImageHeight -(int inputImageHeight, int inputImageWidth) -

-
-
-
-
-

Computes the height of the expected output image when input image size is given.

-
-
Parameters
- - - - - - - - - -
inputImageHeight
inputImageWidth
-
-
-
- -
-

- - public - - - - - int - -getOutputImageWidth -(int inputImageHeight, int inputImageWidth) -

-
-
-
-
-

Computes the width of the expected output image when input image size is given.

-
-
Parameters
- - - - - - - - - -
inputImageHeight
inputImageWidth
-
-
-
- -
-

- - public - - - - - PointF - -inverseTransform -(PointF point, int inputImageHeight, int inputImageWidth) -

-
-
-
-
-

Transforms a point from coordinates system of the result image back to the one of the input - image.

-
-
Parameters
- - - - - - - - - - - - - -
pointthe point from the result coordinates system.
inputImageHeightthe height of input image.
inputImageWidththe width of input image.
-
-
-
Returns
-
  • the point with the coordinates from the coordinates system of the input image. -
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/ops/TransformToGrayscaleOp.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/ops/TransformToGrayscaleOp.html deleted file mode 100644 index 59228a45ce..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/ops/TransformToGrayscaleOp.html +++ /dev/null @@ -1,598 +0,0 @@ - - - - - - - - - -TransformToGrayscaleOp - - - -
-
-
-
-
- -
- public class - TransformToGrayscaleOp -
-
-
-
-

Transforms an image to GrayScale as an image processing unit. - -

Supported color spaces: - -

-

The conversion is based on OpenCV RGB to GRAY conversion - https://docs.opencv.org/master/de/d25/imgproc_color_conversions.html#color_convert_rgb_gray -

-

-
-
- -
-

Public Constructors

- - - - - -
- -
-TransformToGrayscaleOp() - -
Creates a TransformToGrayscaleOp.
-
-
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - -
-TensorImage - -
-apply(TensorImage image) - -
Applies the transformation to grayscale and returns a TensorImage.
-
-
- - - - - - int - -
-getOutputImageHeight(int inputImageHeight, int inputImageWidth) - -
Computes the height of the expected output image when input image size is given.
-
-
- - - - - - int - -
-getOutputImageWidth(int inputImageHeight, int inputImageWidth) - -
Computes the width of the expected output image when input image size is given.
-
-
- - - - - - PointF - -
-inverseTransform(PointF point, int inputImageHeight, int inputImageWidth) - -
Transforms a point from coordinates system of the result image back to the one of the input - image.
-
-
-
- -
-

Inherited Methods

- - - -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -TransformToGrayscaleOp -() -

-
-
-
-
-

Creates a TransformToGrayscaleOp.

-
-
-
- - - - -
-

Public Methods

- -
-

- - public - - - - - TensorImage - -apply -(TensorImage image) -

-
-
-
-
-

Applies the transformation to grayscale and returns a TensorImage. - -

If the input image is already ColorSpaceType.GRAYSCALE, this op will be a no-op.

-
-
Parameters
- - - - - -
image
-
-
-
Throws
- - - - - -
IllegalArgumentExceptionif the image is not ColorSpaceType.RGB or ColorSpaceType.GRAYSCALE. -
-
-
-
- -
-

- - public - - - - - int - -getOutputImageHeight -(int inputImageHeight, int inputImageWidth) -

-
-
-
-
-

Computes the height of the expected output image when input image size is given.

-
-
Parameters
- - - - - - - - - -
inputImageHeight
inputImageWidth
-
-
-
- -
-

- - public - - - - - int - -getOutputImageWidth -(int inputImageHeight, int inputImageWidth) -

-
-
-
-
-

Computes the width of the expected output image when input image size is given.

-
-
Parameters
- - - - - - - - - -
inputImageHeight
inputImageWidth
-
-
-
- -
-

- - public - - - - - PointF - -inverseTransform -(PointF point, int inputImageHeight, int inputImageWidth) -

-
-
-
-
-

Transforms a point from coordinates system of the result image back to the one of the input - image.

-
-
Parameters
- - - - - - - - - - - - - -
pointthe point from the result coordinates system.
inputImageHeightthe height of input image.
inputImageWidththe width of input image.
-
-
-
Returns
-
  • the point with the coordinates from the coordinates system of the input image. -
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/ops/package-summary.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/ops/package-summary.html deleted file mode 100644 index 73bc1c03ec..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/ops/package-summary.html +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - - - -org.tensorflow.lite.support.image.ops - - - -
-
-
-
-
-
-
- -
-
-
-

Classes

-
- - - - - - - - - - - - - - - - - - - - - -
ResizeOpAs a computation unit for processing images, it can resize an image to user-specified size. 
ResizeWithCropOrPadOpAs a computation unit for processing images, it could resize image to predefined size. 
Rot90OpRotates image counter-clockwise. 
TensorOperatorWrapperThe adapter that makes a TensorOperator able to run with TensorImage. 
TransformToGrayscaleOpTransforms an image to GrayScale as an image processing unit. 
-
-

Enums

-
- - - - - -
ResizeOp.ResizeMethodAlgorithms for resizing. 
-
-
-
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/package-summary.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/package-summary.html deleted file mode 100644 index d697b5cd20..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/image/package-summary.html +++ /dev/null @@ -1,89 +0,0 @@ - - - - - - - - - -org.tensorflow.lite.support.image - - - -
-
-
-
-
-
-
- -
-
-
-

Interfaces

-
- - - - - -
ImageOperatorOperates a TensorImage object. 
-
-

Classes

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
BoundingBoxUtilHelper class for converting values that represents bounding boxes into rectangles. 
ImageProcessorImageProcessor is a helper class for preprocessing and postprocessing TensorImage
ImageProcessor.BuilderThe Builder to create an ImageProcessor, which could be executed later. 
ImagePropertiesRepresents the properties of an image object when being loaded to a TensorImage
ImageProperties.BuilderBuilder for ImageProperties
MlImageAdapterConverts MlImage to TensorImage and vice versa. 
TensorImageTensorImage is the wrapper class for Image object. 
-
-

Enums

-
- - - - - - - - - - - - - -
BoundingBoxUtil.CoordinateTypeDenotes if the coordinates are actual pixels or relative ratios. 
BoundingBoxUtil.TypeDenotes how a bounding box is represented. 
ColorSpaceTypeRepresents the type of color space of an image. 
-
-
-
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/label/Category.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/label/Category.html deleted file mode 100644 index 1b61d967bc..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/label/Category.html +++ /dev/null @@ -1,654 +0,0 @@ - - - - - - - - - -Category - - - -
-
-
-
-
- -
- public final class - Category -
-
-
-
-

Category is a util class, contains a label, its display name, a float value as score, and the - index of the label in the corresponding label file. Typically it's used as result of - classification tasks. -

-
-
-
- -
-

Public Constructors

- - - - - -
- -
-Category(String label, float score) - -
Constructs a Category object with an empty displayName and the default index (-1).
-
-
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - static - - Category - -
-create(String label, String displayName, float score, int index) - -
Constructs a Category object.
-
-
- - - - static - - Category - -
-create(String label, String displayName, float score) - -
Constructs a Category object with the default index (-1).
-
-
- - - - - - boolean - -
-equals(Object o) - -
-
-String - -
-getDisplayName() - -
Gets the reference of category's displayName, a name in locale of the label.
-
-
- - - - - - int - -
-getIndex() - -
Gets the index of the category.
-
-
-String - -
-getLabel() - -
Gets the reference of category's label.
-
-
- - - - - - float - -
-getScore() - -
Gets the score of the category.
-
-
- - - - - - int - -
-hashCode() - -
-
-String - -
-toString() - -
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -Category -(String label, float score) -

-
-
-
-
-

Constructs a Category object with an empty displayName and the default index (-1).

-
-
Parameters
- - - - - - - - - -
label
score
-
-
-
-
- - - - -
-

Public Methods

- -
-

- - public - static - - - - Category - -create -(String label, String displayName, float score, int index) -

-
-
-
-
-

Constructs a Category object.

-
-
Parameters
- - - - - - - - - - - - - - - - - -
labelthe label of this category object
displayNamethe display name of the label, which may be translated for different - locales. For exmaple, a label, "apple", may be translated into Spanish for display purpose, - so that the displayName is "manzana".
scorethe probability score of this label category
indexthe index of the label in the corresponding label file -
-
-
-
- -
-

- - public - static - - - - Category - -create -(String label, String displayName, float score) -

-
-
-
-
-

Constructs a Category object with the default index (-1).

-
-
Parameters
- - - - - - - - - - - - - -
label
displayName
score
-
-
-
- -
-

- - public - - - - - boolean - -equals -(Object o) -

-
-
-
-
-

-
-
Parameters
- - - - - -
o
-
-
-
- -
-

- - public - - - - - String - -getDisplayName -() -

-
-
-
-
-

Gets the reference of category's displayName, a name in locale of the label. - -

The display name can be an empty string if this Category object is constructed - without displayName, such as when using Category(String, float). -

-
-
- -
-

- - public - - - - - int - -getIndex -() -

-
-
-
-
-

Gets the index of the category. The index value might be -1, which means it has not been set up - properly and is invalid. -

-
-
- -
-

- - public - - - - - String - -getLabel -() -

-
-
-
-
-

Gets the reference of category's label.

-
-
- -
-

- - public - - - - - float - -getScore -() -

-
-
-
-
-

Gets the score of the category.

-
-
- -
-

- - public - - - - - int - -hashCode -() -

-
-
-
-
-

-
-
- -
-

- - public - - - - - String - -toString -() -

-
-
-
-
-

-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/label/LabelUtil.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/label/LabelUtil.html deleted file mode 100644 index aaff4ed783..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/label/LabelUtil.html +++ /dev/null @@ -1,292 +0,0 @@ - - - - - - - - - -LabelUtil - - - -
-
-
-
-
- -
- public class - LabelUtil -
-
-
-
-

Label operation utils.

-
-
-
- -
-

Public Methods

- - - - - -
- - - - static - - List<String> - -
-mapValueToLabels(TensorBuffer tensorBuffer, List<String> labels, int offset) - -
Maps an int value tensor to a list of string labels.
-
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - - - - -
-

Public Methods

- -
-

- - public - static - - - - List<String> - -mapValueToLabels -(TensorBuffer tensorBuffer, List<String> labels, int offset) -

-
-
-
-
-

Maps an int value tensor to a list of string labels. It takes an array of strings as the - dictionary. Example: if the given tensor is [3, 1, 0], and given labels is ["background", - "apple", "banana", "cherry", "date"], the result will be ["date", "banana", "apple"].

-
-
Parameters
- - - - - - - - - - - - - -
tensorBufferA tensor with index values. The values should be non-negative integers, and - each value x will be converted to labels[x + offset]. If the tensor is - given as a float TensorBuffer, values will be cast to integers. All values that are - out of bound will map to empty string.
labelsA list of strings, used as a dictionary to look up. The index of the array - element will be used as the key. To get better performance, use an object that implements - RandomAccess, such as ArrayList.
offsetThe offset value when look up int values in the labels.
-
-
-
Returns
- -
-
-
Throws
- - - - - -
IllegalArgumentExceptionif tensorBuffer or labels is null. -
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/label/TensorLabel.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/label/TensorLabel.html deleted file mode 100644 index a379278ba3..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/label/TensorLabel.html +++ /dev/null @@ -1,498 +0,0 @@ - - - - - - - - - -TensorLabel - - - -
-
-
-
-
- -
- public class - TensorLabel -
-
-
-
-

TensorLabel is an util wrapper for TensorBuffers with meaningful labels on an axis. - -

For example, an image classification model may have an output tensor with shape as {1, 10}, - where 1 is the batch size and 10 is the number of categories. In fact, on the 2nd axis, we could - label each sub-tensor with the name or description of each corresponding category. TensorLabel could help converting the plain Tensor in TensorBuffer into a map from - predefined labels to sub-tensors. In this case, if provided 10 labels for the 2nd axis, TensorLabel could convert the original {1, 10} Tensor to a 10 element map, each value of which - is Tensor in shape {} (scalar). Usage example: - -

-   TensorBuffer outputTensor = ...;
-   List<String> labels = FileUtil.loadLabels(context, labelFilePath);
-   // labels the first axis with size greater than one
-   TensorLabel labeled = new TensorLabel(labels, outputTensor);
-   // If each sub-tensor has effectively size 1, we can directly get a float value
-   Map<String, Float> probabilities = labeled.getMapWithFloatValue();
-   // Or get sub-tensors, when each sub-tensor has elements more than 1
-   Map<String, TensorBuffer> subTensors = labeled.getMapWithTensorBuffer();
- 
-

Note: currently we only support tensor-to-map conversion for the first label with size greater - than 1.

- -

-
-
- -
-

Public Constructors

- - - - - - - - - -
- -
-TensorLabel(Map<IntegerList<String>> axisLabels, TensorBuffer tensorBuffer) - -
Creates a TensorLabel object which is able to label on the axes of multi-dimensional tensors.
-
-
- -
-TensorLabel(List<String> axisLabels, TensorBuffer tensorBuffer) - -
Creates a TensorLabel object which is able to label on one axis of multi-dimensional tensors.
-
-
-
- -
-

Public Methods

- - - - - - - - - - - - - -
-List<Category> - -
-getCategoryList() - -
Gets a list of Category from the TensorLabel object.
-
-
-Map<StringFloat> - -
-getMapWithFloatValue() - -
Gets a map that maps label to float.
-
-
-Map<StringTensorBuffer> - -
-getMapWithTensorBuffer() - -
Gets the map with a pair of the label and the corresponding TensorBuffer.
-
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -TensorLabel -(Map<IntegerList<String>> axisLabels, TensorBuffer tensorBuffer) -

-
-
-
-
-

Creates a TensorLabel object which is able to label on the axes of multi-dimensional tensors.

-
-
Parameters
- - - - - - - - - -
axisLabelsA map, whose key is axis id (starting from 0) and value is corresponding - labels. Note: The size of labels should be same with the size of the tensor on that axis.
tensorBufferThe TensorBuffer to be labeled.
-
-
-
Throws
- - - - - - - - - -
NullPointerExceptionif axisLabels or tensorBuffer is null, or any - value in axisLabels is null.
IllegalArgumentExceptionif any key in axisLabels is out of range (compared to - the shape of tensorBuffer, or any value (labels) has different size with the tensorBuffer on the given dimension. -
-
-
-
- -
-

- - public - - - - - - -TensorLabel -(List<String> axisLabels, TensorBuffer tensorBuffer) -

-
-
-
-
-

Creates a TensorLabel object which is able to label on one axis of multi-dimensional tensors. - -

Note: The labels are applied on the first axis whose size is larger than 1. For example, if - the shape of the tensor is [1, 10, 3], the labels will be applied on axis 1 (id starting from - 0), and size of axisLabels should be 10 as well.

-
-
Parameters
- - - - - - - - - -
axisLabelsA list of labels, whose size should be same with the size of the tensor on - the to-be-labeled axis.
tensorBufferThe TensorBuffer to be labeled. -
-
-
-
-
- - - - -
-

Public Methods

- -
-

- - public - - - - - List<Category> - -getCategoryList -() -

-
-
-
-
-

Gets a list of Category from the TensorLabel object. - -

The axis of label should be effectively the last axis (which means every sub tensor - specified by this axis should have a flat size of 1), so that each labelled sub tensor could be - converted into a float value score. Example: A TensorLabel with shape {2, 5, 3} - and axis 2 is valid. If axis is 1 or 0, it cannot be converted into a Category. - -

getMapWithFloatValue() is an alternative but returns a Map as - the result.

-
-
Throws
- - - - - -
IllegalStateExceptionif size of a sub tensor on each label is not 1. -
-
-
-
- -
-

- - public - - - - - Map<StringFloat> - -getMapWithFloatValue -() -

-
-
-
-
-

Gets a map that maps label to float. Only allow the mapping on the first axis with size greater - than 1, and the axis should be effectively the last axis (which means every sub tensor - specified by this axis should have a flat size of 1). - -

getCategoryList() is an alternative API to get the result.

-
-
Throws
- - - - - -
IllegalStateExceptionif size of a sub tensor on each label is not 1. -
-
-
-
- -
-

- - public - - - - - Map<StringTensorBuffer> - -getMapWithTensorBuffer -() -

-
-
-
-
-

Gets the map with a pair of the label and the corresponding TensorBuffer. Only allow the - mapping on the first axis with size greater than 1 currently. -

-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/label/ops/LabelAxisOp.Builder.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/label/ops/LabelAxisOp.Builder.html deleted file mode 100644 index 0159b60af0..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/label/ops/LabelAxisOp.Builder.html +++ /dev/null @@ -1,351 +0,0 @@ - - - - - - - - - -LabelAxisOp.Builder - - - -
-
-
-
-
- -
- public static class - LabelAxisOp.Builder -
-
-
-
-

The inner builder class to build a LabelTensor Operator.

-
-
-
- -
-

Public Methods

- - - - - - - - - - - - - -
-LabelAxisOp.Builder - -
-addAxisLabel(int axis, List<String> labels) - -
-
-LabelAxisOp.Builder - -
-addAxisLabel(Context context, int axis, String filePath) - -
-
-LabelAxisOp - -
-build() - -
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - - - - -
-

Public Methods

- -
-

- - public - - - - - LabelAxisOp.Builder - -addAxisLabel -(int axis, List<String> labels) -

-
-
-
-
-

-
-
Parameters
- - - - - - - - - -
axis
labels
-
-
-
- -
-

- - public - - - - - LabelAxisOp.Builder - -addAxisLabel -(Context context, int axis, String filePath) -

-
-
-
-
-

-
-
Parameters
- - - - - - - - - - - - - -
context
axis
filePath
-
-
-
Throws
- - - - - -
IOException
-
-
-
- -
-

- - public - - - - - LabelAxisOp - -build -() -

-
-
-
-
-

-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/label/ops/LabelAxisOp.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/label/ops/LabelAxisOp.html deleted file mode 100644 index d886b1fcd6..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/label/ops/LabelAxisOp.html +++ /dev/null @@ -1,277 +0,0 @@ - - - - - - - - - -LabelAxisOp - - - -
-
-
-
-
- -
- public class - LabelAxisOp -
-
-
-
-

Labels TensorBuffer with axisLabels for outputs. - -

Apply on a TensorBuffer to get a TensorLabel that could output a Map, which is - a pair of the label name and the corresponding TensorBuffer value. -

-

-
-
- -
-

Nested Classes

- - - - - - -
- - - - - classLabelAxisOp.BuilderThe inner builder class to build a LabelTensor Operator. 
-
- -
-

Public Methods

- - - - - -
-TensorLabel - -
-apply(TensorBuffer buffer) - -
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - - - - -
-

Public Methods

- -
-

- - public - - - - - TensorLabel - -apply -(TensorBuffer buffer) -

-
-
-
-
-

-
-
Parameters
- - - - - -
buffer
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/label/ops/package-summary.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/label/ops/package-summary.html deleted file mode 100644 index a35cb1427d..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/label/ops/package-summary.html +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - -org.tensorflow.lite.support.label.ops - - - -
-
-
-
-
-
-
- -
-
-
-

Classes

-
- - - - - - - - - -
LabelAxisOpLabels TensorBuffer with axisLabels for outputs. 
LabelAxisOp.BuilderThe inner builder class to build a LabelTensor Operator. 
-
-
-
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/label/package-summary.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/label/package-summary.html deleted file mode 100644 index 30849bfdcf..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/label/package-summary.html +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - -org.tensorflow.lite.support.label - - - -
-
-
-
-
-
-
- -
-
-
-

Classes

-
- - - - - - - - - - - - - -
CategoryCategory is a util class, contains a label, its display name, a float value as score, and the - index of the label in the corresponding label file. 
LabelUtilLabel operation utils. 
TensorLabelTensorLabel is an util wrapper for TensorBuffers with meaningful labels on an axis. 
-
-
-
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/metadata/MetadataExtractor.QuantizationParams.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/metadata/MetadataExtractor.QuantizationParams.html deleted file mode 100644 index a7c6dd0999..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/metadata/MetadataExtractor.QuantizationParams.html +++ /dev/null @@ -1,358 +0,0 @@ - - - - - - - - - -MetadataExtractor.QuantizationParams - - - -
-
-
-
-
- -
- public static class - MetadataExtractor.QuantizationParams -
-
-
-
-

Quantization parameters that corresponds to the table, QuantizationParameters, in the - TFLite - Model schema file. -

Since per-channel quantization does not apply to input and output tensors, scale and - zero_point are both single values instead of arrays. - -

For tensor that are not quantized, the values of scale and zero_point are both 0. - -

Given a quantized value q, the corresponding float value f should be:
- f = scale * (q - zero_point)
-

-

-
-
- -
-

Public Constructors

- - - - - -
- -
-QuantizationParams(float scale, int zeroPoint) - -
Creates a MetadataExtractor.QuantizationParams with scale and zero_point.
-
-
-
- -
-

Public Methods

- - - - - - - - - -
- - - - - - float - -
-getScale() - -
Returns the scale value.
-
-
- - - - - - int - -
-getZeroPoint() - -
Returns the zero point value.
-
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -QuantizationParams -(float scale, int zeroPoint) -

-
-
-
-
-

Creates a MetadataExtractor.QuantizationParams with scale and zero_point.

-
-
Parameters
- - - - - - - - - -
scaleThe scale value used in quantization.
zeroPointThe zero point value used in quantization. -
-
-
-
-
- - - - -
-

Public Methods

- -
-

- - public - - - - - float - -getScale -() -

-
-
-
-
-

Returns the scale value.

-
-
- -
-

- - public - - - - - int - -getZeroPoint -() -

-
-
-
-
-

Returns the zero point value.

-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/metadata/MetadataExtractor.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/metadata/MetadataExtractor.html deleted file mode 100644 index 82d7ccfc02..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/metadata/MetadataExtractor.html +++ /dev/null @@ -1,1031 +0,0 @@ - - - - - - - - - -MetadataExtractor - - - -
-
-
-
-
- -
- public class - MetadataExtractor -
-
-
-
-

Loads metadata from TFLite Model FlatBuffer. - -

TFLite Model FlatBuffer can be generated using the TFLite - Model schema file. -

Some models contain a TFLite Metadata Flatbuffer, which records more information about what - the model does and how to interprete the model. TFLite Metadata Flatbuffer can be generated using - the TFLite - Metadata schema file. -

It is allowed to pass in a model FlatBuffer without TFLite metadata. However, invoking methods - that read from TFLite metadata will cause runtime errors. - -

Similarly, it is allowed to pass in a model FlatBuffer without associated files. However, - invoking methods that read the associated files will cause runtime errors. - -

Though TFLite model FlatBuffer supports multiple subgraphs, TFLite Interpreter only supports a - single subgraph so far. See the instruction - of how to specify subgraph during convertion for more information. Therefore, MetadataExtractor omits subgraph index as an input in its methods. -

-

-
-
- -
-

Nested Classes

- - - - - - -
- - - - - classMetadataExtractor.QuantizationParamsQuantization parameters that corresponds to the table, QuantizationParameters, in the - TFLite - Model schema file. 
-
- -
-

Public Constructors

- - - - - -
- -
-MetadataExtractor(ByteBuffer buffer) - -
Creates a MetadataExtractor with TFLite model FlatBuffer.
-
-
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-InputStream - -
-getAssociatedFile(String fileName) - -
Gets the packed associated file with the specified fileName.
-
-
-Set<String> - -
-getAssociatedFileNames() - -
Gets the file names of the associated files.
-
-
- - - - - - int - -
-getInputTensorCount() - -
Gets the count of input tensors in the model.
-
-
- - - - - - TensorMetadata - -
-getInputTensorMetadata(int inputIndex) - -
Gets the metadata for the input tensor specified by inputIndex.
-
-
-MetadataExtractor.QuantizationParams - -
-getInputTensorQuantizationParams(int inputIndex) - -
Gets the quantization parameters for the input tensor specified by inputIndex.
-
-
- - - - - - int[] - -
-getInputTensorShape(int inputIndex) - -
Gets the shape of the input tensor with inputIndex.
-
-
- - - - - - byte - -
-getInputTensorType(int inputIndex) - -
Gets the ERROR(/TensorType) of the input tensor with inputIndex.
-
-
- - - - - - ModelMetadata - -
-getModelMetadata() - -
Gets the root handler for the model metadata.
-
-
- - - - - - int - -
-getOutputTensorCount() - -
Gets the count of output tensors in the model.
-
-
- - - - - - TensorMetadata - -
-getOutputTensorMetadata(int outputIndex) - -
Gets the metadata for the output tensor specified by outputIndex.
-
-
-MetadataExtractor.QuantizationParams - -
-getOutputTensorQuantizationParams(int outputIndex) - -
Gets the quantization parameters for the output tensor specified by outputIndex.
-
-
- - - - - - int[] - -
-getOutputTensorShape(int outputIndex) - -
Gets the shape of the output tensor with outputIndex.
-
-
- - - - - - byte - -
-getOutputTensorType(int outputIndex) - -
Gets the ERROR(/TensorType) of the output tensor with outputIndex.
-
-
- - - - - - boolean - -
-hasMetadata() - -
Returns true if the model has metadata.
-
-
- - - final - - - boolean - -
-isMinimumParserVersionSatisfied() - -
Returns true if the minimum parser version required by the given metadata flatbuffer - precedes or equals to the version of the metadata parser that this MetadataExtractor library is - relying on.
-
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -MetadataExtractor -(ByteBuffer buffer) -

-
-
-
-
-

Creates a MetadataExtractor with TFLite model FlatBuffer.

-
-
Parameters
- - - - - -
bufferthe TFLite model FlatBuffer
-
-
-
Throws
- - - - - - - - - -
IllegalArgumentExceptionif the number of input or output tensors in the model does not - match that in the metadata
IOExceptionif an error occurs while reading the model as a Zip file -
-
-
-
-
- - - - -
-

Public Methods

- -
-

- - public - - - - - InputStream - -getAssociatedFile -(String fileName) -

-
-
-
-
-

Gets the packed associated file with the specified fileName.

-
-
Parameters
- - - - - -
fileNamethe name of the associated file
-
-
-
Returns
-
  • the raw input stream containing specified file
-
-
-
Throws
- - - - - - - - - -
IllegalStateExceptionif the model is not a zip file
IllegalArgumentExceptionif the specified file does not exist in the model -
-
-
-
- -
-

- - public - - - - - Set<String> - -getAssociatedFileNames -() -

-
-
-
-
-

Gets the file names of the associated files.

-
-
Returns
-
  • the file names of the associated files
-
-
-
Throws
- - - - - -
IllegalStateExceptionif the model is not a zip file -
-
-
-
- -
-

- - public - - - - - int - -getInputTensorCount -() -

-
-
-
-
-

Gets the count of input tensors in the model.

-
-
- -
-

- - public - - - - - TensorMetadata - -getInputTensorMetadata -(int inputIndex) -

-
-
-
-
-

Gets the metadata for the input tensor specified by inputIndex.

-
-
Parameters
- - - - - -
inputIndexthe index of the desired input tensor
-
-
-
Throws
- - - - - -
IllegalStateExceptionif this model does not contain model metadata -
-
-
-
- -
-

- - public - - - - - MetadataExtractor.QuantizationParams - -getInputTensorQuantizationParams -(int inputIndex) -

-
-
-
-
-

Gets the quantization parameters for the input tensor specified by inputIndex.

-
-
Parameters
- - - - - -
inputIndexthe index of the desired input tensor -
-
-
-
- -
-

- - public - - - - - int[] - -getInputTensorShape -(int inputIndex) -

-
-
-
-
-

Gets the shape of the input tensor with inputIndex.

-
-
Parameters
- - - - - -
inputIndexthe index of the desired input tensor -
-
-
-
- -
-

- - public - - - - - byte - -getInputTensorType -(int inputIndex) -

-
-
-
-
-

Gets the ERROR(/TensorType) of the input tensor with inputIndex.

-
-
Parameters
- - - - - -
inputIndexthe index of the desired input tensor -
-
-
-
- -
-

- - public - - - - - ModelMetadata - -getModelMetadata -() -

-
-
-
-
-

Gets the root handler for the model metadata.

-
-
Throws
- - - - - -
IllegalStateExceptionif this model does not contain model metadata -
-
-
-
- -
-

- - public - - - - - int - -getOutputTensorCount -() -

-
-
-
-
-

Gets the count of output tensors in the model.

-
-
- -
-

- - public - - - - - TensorMetadata - -getOutputTensorMetadata -(int outputIndex) -

-
-
-
-
-

Gets the metadata for the output tensor specified by outputIndex.

-
-
Parameters
- - - - - -
outputIndexthe index of the desired output tensor
-
-
-
Throws
- - - - - -
IllegalStateExceptionif this model does not contain model metadata -
-
-
-
- -
-

- - public - - - - - MetadataExtractor.QuantizationParams - -getOutputTensorQuantizationParams -(int outputIndex) -

-
-
-
-
-

Gets the quantization parameters for the output tensor specified by outputIndex.

-
-
Parameters
- - - - - -
outputIndexthe index of the desired output tensor -
-
-
-
- -
-

- - public - - - - - int[] - -getOutputTensorShape -(int outputIndex) -

-
-
-
-
-

Gets the shape of the output tensor with outputIndex.

-
-
Parameters
- - - - - -
outputIndexthe index of the desired output tensor -
-
-
-
- -
-

- - public - - - - - byte - -getOutputTensorType -(int outputIndex) -

-
-
-
-
-

Gets the ERROR(/TensorType) of the output tensor with outputIndex.

-
-
Parameters
- - - - - -
outputIndexthe index of the desired output tensor -
-
-
-
- -
-

- - public - - - - - boolean - -hasMetadata -() -

-
-
-
-
-

Returns true if the model has metadata. Otherwise, returns false.

-
-
- -
-

- - public - - final - - - boolean - -isMinimumParserVersionSatisfied -() -

-
-
-
-
-

Returns true if the minimum parser version required by the given metadata flatbuffer - precedes or equals to the version of the metadata parser that this MetadataExtractor library is - relying on. All fields in the metadata can be parsed correctly with this metadata extractor - library in this case. Otherwise, it returns false. - -

For example, assume the underlying metadata parser version is 1.14.1, - -

    -
  • it returns true, if the required minimum parser version is the same or older, - such as 1.14.1 or 1.14.0. Null version precedes all numeric versions, - because some metadata flatbuffers are generated before the first versioned release;
    -
  • it returns false, if the required minimum parser version is newer, such as 1.14.2. -
-

-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/metadata/MetadataParser.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/metadata/MetadataParser.html deleted file mode 100644 index 9d82e8673b..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/metadata/MetadataParser.html +++ /dev/null @@ -1,250 +0,0 @@ - - - - - - - - - -MetadataParser - - - -
-
-
-
-
- -
- public final class - MetadataParser -
-
-
-
-

Information about the metadata parser that this metadata extractor library is depending on.

-
-
-
- -

Constants

- - - - - - -
StringVERSIONThe version of the metadata parser that this metadata extractor library is depending on.
-
- -
-

Inherited Methods

- -
-
- -
- - - - - -
-

Constants

- -
-

- - public - static - final - - - String - -VERSION -

-
-
-
-

The version of the metadata parser that this metadata extractor library is depending on. The - value should match the value of "Schema Semantic version" in metadata_schema.fbs. -

-
-Constant Value: - - - "1.5.0" - - -
-
-
-
- - - - - - - - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/metadata/package-summary.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/metadata/package-summary.html deleted file mode 100644 index 7178dbb479..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/metadata/package-summary.html +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - -org.tensorflow.lite.support.metadata - - - -
-
-
-
-
-
-
- -
-
-
-

Classes

-
- - - - - - - - - - - - - -
MetadataExtractorLoads metadata from TFLite Model FlatBuffer. 
MetadataExtractor.QuantizationParamsQuantization parameters that corresponds to the table, QuantizationParameters, in the - TFLite - Model schema file. 
MetadataParserInformation about the metadata parser that this metadata extractor library is depending on. 
-
-
-
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/model/Model.Builder.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/model/Model.Builder.html deleted file mode 100644 index 731f5a617e..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/model/Model.Builder.html +++ /dev/null @@ -1,403 +0,0 @@ - - - - - - - - - -Model.Builder - - - -
-
-
-
-
- -
- public static class - Model.Builder -
-
-
-
-

-

- - This class is deprecated.
Please use Model.createModel(Context, String, Options). - -

-

Builder for Model.

-

-
-
- -
-

Public Constructors

- - - - - -
- -
-Builder(Context context, String modelPath) - -
Creates a builder which loads tflite model from asset folder using memory-mapped files.
-
-
-
- -
-

Public Methods

- - - - - - - - - - - - - -
-Model - -
-build() - -
-
-Model.Builder - -
-setDevice(Model.Device device) - -
Sets running device.
-
-
-Model.Builder - -
-setNumThreads(int numThreads) - -
Sets number of threads.
-
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -Builder -(Context context, String modelPath) -

-
-
-
-
-

Creates a builder which loads tflite model from asset folder using memory-mapped files.

-
-
Parameters
- - - - - - - - - -
contextApplication context to access assets.
modelPathAsset path of the model (.tflite file).
-
-
-
Throws
- - - - - -
IOExceptionif an I/O error occurs when loading the tflite model. -
-
-
-
-
- - - - -
-

Public Methods

- -
-

- - public - - - - - Model - -build -() -

-
-
-
-
-

-
-
- -
-

- - public - - - - - Model.Builder - -setDevice -(Model.Device device) -

-
-
-
-
-

Sets running device. By default, TFLite will run on CPU.

-
-
Parameters
- - - - - -
device
-
-
-
- -
-

- - public - - - - - Model.Builder - -setNumThreads -(int numThreads) -

-
-
-
-
-

Sets number of threads. By default it's 1.

-
-
Parameters
- - - - - -
numThreads
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/model/Model.Device.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/model/Model.Device.html deleted file mode 100644 index 04e7810249..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/model/Model.Device.html +++ /dev/null @@ -1,454 +0,0 @@ - - - - - - - - - -Model.Device - - - -
-
-
-
-
- -
- public static final enum - Model.Device -
-
-
-
-

The runtime device type used for executing classification.

-
-
-
- -
-

Inherited Methods

- - - -
-
- -
- - - - -
-

Enum Values

- -
-

- - public - static - final - - - Model.Device - - -CPU -

-
-
-
-

-
-
- -
-

- - public - static - final - - - Model.Device - - -GPU -

-
-
-
-

-
-
- -
-

- - public - static - final - - - Model.Device - - -NNAPI -

-
-
-
-

-
-
-
- - - - - - - - - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/model/Model.Options.Builder.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/model/Model.Options.Builder.html deleted file mode 100644 index ce17b2e693..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/model/Model.Options.Builder.html +++ /dev/null @@ -1,412 +0,0 @@ - - - - - - - - - -Model.Options.Builder - - - -
-
-
-
-
- -
- public static class - Model.Options.Builder -
-
-
-
-

Builder of Model.Options. See its doc for details.

-
-
-
- -
-

Public Constructors

- - - - - -
- -
-Builder() - -
-
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - -
-Model.Options - -
-build() - -
-
-Model.Options.Builder - -
-setDevice(Model.Device device) - -
-
-Model.Options.Builder - -
-setNumThreads(int numThreads) - -
-
-Model.Options.Builder - - -
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -Builder -() -

-
-
-
-
-

-
-
-
- - - - -
-

Public Methods

- -
-

- - public - - - - - Model.Options - -build -() -

-
-
-
-
-

-
-
- -
-

- - public - - - - - Model.Options.Builder - -setDevice -(Model.Device device) -

-
-
-
-
-

-
-
Parameters
- - - - - -
device
-
-
-
- -
-

- - public - - - - - Model.Options.Builder - -setNumThreads -(int numThreads) -

-
-
-
-
-

-
-
Parameters
- - - - - -
numThreads
-
-
-
- -
-

- - public - - - - - Model.Options.Builder - -setTfLiteRuntime -(InterpreterApi.Options.TfLiteRuntime tfLiteRuntime) -

-
-
-
-
-

-
-
Parameters
- - - - - -
tfLiteRuntime
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/model/Model.Options.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/model/Model.Options.html deleted file mode 100644 index fda732d8b4..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/model/Model.Options.html +++ /dev/null @@ -1,232 +0,0 @@ - - - - - - - - - -Model.Options - - - -
-
-
-
-
- -
- public static class - Model.Options -
-
-
-
-

Options for running the model. Configurable parameters includes: - -

-

-
-
-
- -
-

Nested Classes

- - - - - - -
- - - - - classModel.Options.BuilderBuilder of Model.Options
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - - - - - - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/model/Model.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/model/Model.html deleted file mode 100644 index 74da4bb577..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/model/Model.html +++ /dev/null @@ -1,711 +0,0 @@ - - - - - - - - - -Model - - - -
-
-
-
-
- -
- public class - Model -
-
-
-
-

The wrapper class for a TFLite model and a TFLite interpreter. - -

Note: A Model can only holds 1 TFLite model at a time, and always holds a TFLite - interpreter instance to run it. -

-

-
-
- -
-

Nested Classes

- - - - - - - - - - - - - - - - -
- - - - - classModel.Builder - This class is deprecated. Please use Model.createModel(Context, String, Options). - 
- - - - - enumModel.DeviceThe runtime device type used for executing classification. 
- - - - - classModel.OptionsOptions for running the model. 
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - void - -
-close() - -
-
- - - - static - - Model - -
-createModel(Context context, String modelPath, Model.Options options) - -
Loads a model from assets and initialize TFLite interpreter with given options.
-
-
- - - - static - - Model - -
-createModel(Context context, String modelPath) - -
Loads a model from assets and initialize TFLite interpreter.
-
-
-MappedByteBuffer - -
-getData() - -
Returns the memory-mapped model data.
-
-
-Tensor - -
-getInputTensor(int inputIndex) - -
Gets the Tensor associated with the provided input index.
-
-
-Tensor - -
-getOutputTensor(int outputIndex) - -
Gets the Tensor associated with the provided output index.
-
-
- - - - - - int[] - -
-getOutputTensorShape(int outputIndex) - -
Returns the output shape.
-
-
-String - -
-getPath() - -
Returns the path of the model file stored in Assets.
-
-
- - - - - - void - -
-run(Object[] inputs, Map<IntegerObject> outputs) - -
Runs model inference on multiple inputs, and returns multiple outputs.
-
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - - - - -
-

Public Methods

- -
-

- - public - - - - - void - -close -() -

-
-
-
-
-

-
-
- -
-

- - public - static - - - - Model - -createModel -(Context context, String modelPath, Model.Options options) -

-
-
-
-
-

Loads a model from assets and initialize TFLite interpreter with given options.

-
-
Parameters
- - - - - - - - - - - - - -
contextThe App Context.
modelPathThe path of the model file.
optionsThe options for running the model.
-
-
-
Throws
- - - - - -
IOExceptionif any exception occurs when open the model file. -
-
-
-
See Also
- -
-
-
- -
-

- - public - static - - - - Model - -createModel -(Context context, String modelPath) -

-
-
-
-
-

Loads a model from assets and initialize TFLite interpreter. - -

The default options are: (1) CPU device; (2) one thread.

-
-
Parameters
- - - - - - - - - -
contextThe App Context.
modelPathThe path of the model file.
-
-
-
Throws
- - - - - -
IOExceptionif any exception occurs when open the model file. -
-
-
-
- -
-

- - public - - - - - MappedByteBuffer - -getData -() -

-
-
-
-
-

Returns the memory-mapped model data.

-
-
- -
-

- - public - - - - - Tensor - -getInputTensor -(int inputIndex) -

-
-
-
-
-

Gets the Tensor associated with the provided input index.

-
-
Parameters
- - - - - -
inputIndex
-
-
-
Throws
- - - - - -
IllegalStateExceptionif the interpreter is closed. -
-
-
-
- -
-

- - public - - - - - Tensor - -getOutputTensor -(int outputIndex) -

-
-
-
-
-

Gets the Tensor associated with the provided output index.

-
-
Parameters
- - - - - -
outputIndex
-
-
-
Throws
- - - - - -
IllegalStateExceptionif the interpreter is closed. -
-
-
-
- -
-

- - public - - - - - int[] - -getOutputTensorShape -(int outputIndex) -

-
-
-
-
-

Returns the output shape. Useful if output shape is only determined when graph is created.

-
-
Parameters
- - - - - -
outputIndex
-
-
-
Throws
- - - - - -
IllegalStateExceptionif the interpreter is closed. -
-
-
-
- -
-

- - public - - - - - String - -getPath -() -

-
-
-
-
-

Returns the path of the model file stored in Assets.

-
-
- -
-

- - public - - - - - void - -run -(Object[] inputs, Map<IntegerObject> outputs) -

-
-
-
-
-

Runs model inference on multiple inputs, and returns multiple outputs.

-
-
Parameters
- - - - - - - - - -
inputsan array of input data. The inputs should be in the same order as inputs of the - model. Each input can be an array or multidimensional array, or a ByteBuffer of primitive types including int, float, long, and byte. ByteBuffer is the preferred way to pass large input data, whereas string types - require using the (multi-dimensional) array input path. When ByteBuffer is - used, its content should remain unchanged until model inference is done.
outputsa map mapping output indices to multidimensional arrays of output data or ByteBuffers of primitive types including int, float, long, and byte. It only - needs to keep entries for the outputs to be used. -
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/model/package-summary.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/model/package-summary.html deleted file mode 100644 index 99a3ae7d29..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/model/package-summary.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - -org.tensorflow.lite.support.model - - - -
-
-
-
-
-
-
- -
-
-
-

Classes

-
- - - - - - - - - - - - - - - - - -
ModelThe wrapper class for a TFLite model and a TFLite interpreter. 
Model.Builder - This class is deprecated. Please use Model.createModel(Context, String, Options). - 
Model.OptionsOptions for running the model. 
Model.Options.BuilderBuilder of Model.Options
-
-

Enums

-
- - - - - -
Model.DeviceThe runtime device type used for executing classification. 
-
-
-
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/tensorbuffer/TensorBuffer.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/tensorbuffer/TensorBuffer.html deleted file mode 100644 index 6fea458556..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/tensorbuffer/TensorBuffer.html +++ /dev/null @@ -1,1290 +0,0 @@ - - - - - - - - - -TensorBuffer - - - -
-
-
-
-
- -
- public abstract class - TensorBuffer -
-
-
-
- Known Direct Subclasses - -
- - -
-
-
-

Represents the data buffer for either a model's input or its output.

-
-
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - static - - TensorBuffer - -
-createDynamic(DataType dataType) - -
Creates an empty dynamic TensorBuffer with specified DataType.
-
-
- - - - static - - TensorBuffer - -
-createFixedSize(int[] shape, DataType dataType) - -
Creates a TensorBuffer with specified shape and DataType.
-
-
- - - - static - - TensorBuffer - -
-createFrom(TensorBuffer buffer, DataType dataType) - -
Creates a TensorBuffer deep-copying data from another, with specified DataType.
-
-
-ByteBuffer - -
-getBuffer() - -
Returns the data buffer.
-
-
- abstract - - - - - DataType - -
-getDataType() - -
Returns the data type of this buffer.
-
-
- - - - - - int - -
-getFlatSize() - -
Gets the flatSize of the buffer.
-
-
- abstract - - - - - float[] - -
-getFloatArray() - -
Returns a float array of the values stored in this buffer.
-
-
- abstract - - - - - float - -
-getFloatValue(int absIndex) - -
Returns a float value at a given index.
-
-
- abstract - - - - - int[] - -
-getIntArray() - -
Returns an int array of the values stored in this buffer.
-
-
- abstract - - - - - int - -
-getIntValue(int absIndex) - -
Returns an int value at a given index.
-
-
- - - - - - int[] - -
-getShape() - -
Gets the current shape.
-
-
- abstract - - - - - int - -
-getTypeSize() - -
Returns the number of bytes of a single element in the array.
-
-
- - - - - - boolean - -
-isDynamic() - -
Returns if the TensorBuffer is dynamic sized (could resize arbitrarily).
-
-
- abstract - - - - - void - -
-loadArray(int[] src, int[] shape) - -
Loads an int array into this buffer with specific shape.
-
-
- abstract - - - - - void - -
-loadArray(float[] src, int[] shape) - -
Loads a float array into this buffer with specific shape.
-
-
- - - - - - void - -
-loadArray(float[] src) - -
Loads a float array into this buffer.
-
-
- - - - - - void - -
-loadArray(int[] src) - -
Loads an int array into this buffer.
-
-
- - - - - - void - -
-loadBuffer(ByteBuffer buffer) - -
Loads a byte buffer into this TensorBuffer.
-
-
- - - - - - void - -
-loadBuffer(ByteBuffer buffer, int[] shape) - -
Loads a byte buffer into this TensorBuffer with specific shape.
-
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - - - - -
-

Public Methods

- -
-

- - public - static - - - - TensorBuffer - -createDynamic -(DataType dataType) -

-
-
-
-
-

Creates an empty dynamic TensorBuffer with specified DataType. The shape of the - created TensorBuffer is {0}. - -

Dynamic TensorBuffers will reallocate memory when loading arrays or data buffers of - different buffer sizes. Here are some examples: - -

- // Creating a float dynamic TensorBuffer:
- TensorBuffer tensorBuffer = TensorBuffer.createDynamic(DataType.FLOAT32);
- // Loading a float array:
- float[] arr1 = new float[] {1, 2, 3};
- tensorBuffer.loadArray(arr, new int[] {arr1.length});
- // loading another float array:
- float[] arr2 = new float[] {1, 2, 3, 4, 5};
- tensorBuffer.loadArray(arr, new int[] {arr2.length});
- // loading a third float array with the same size as arr2, assuming shape doesn't change:
- float[] arr3 = new float[] {5, 4, 3, 2, 1};
- tensorBuffer.loadArray(arr);
- // loading a forth float array with different size as arr3 and omitting the shape will result
- // in error:
- float[] arr4 = new float[] {3, 2, 1};
- tensorBuffer.loadArray(arr); // Error: The size of byte buffer and the shape do not match.
- 

-
-
Parameters
- - - - - -
dataTypeThe dataType of the TensorBuffer to be created. -
-
-
-
- -
-

- - public - static - - - - TensorBuffer - -createFixedSize -(int[] shape, DataType dataType) -

-
-
-
-
-

Creates a TensorBuffer with specified shape and DataType. Here are some - examples: - -

- // Creating a float TensorBuffer with shape {2, 3}:
- int[] shape = new int[] {2, 3};
- TensorBuffer tensorBuffer = TensorBuffer.createFixedSize(shape, DataType.FLOAT32);
- 
-
- // Creating an uint8 TensorBuffer of a scalar:
- int[] shape = new int[] {};
- TensorBuffer tensorBuffer = TensorBuffer.createFixedSize(shape, DataType.UINT8);
- 
-
- // Creating an empty uint8 TensorBuffer:
- int[] shape = new int[] {0};
- TensorBuffer tensorBuffer = TensorBuffer.createFixedSize(shape, DataType.UINT8);
- 
-

The size of a fixed-size TensorBuffer cannot be changed once it is created.

-
-
Parameters
- - - - - - - - - -
shapeThe shape of the TensorBuffer to be created.
dataTypeThe dataType of the TensorBuffer to be created.
-
-
-
Throws
- - - - - - - - - -
NullPointerExceptionif shape is null.
IllegalArgumentExceptionif shape has non-positive elements. -
-
-
-
- -
-

- - public - static - - - - TensorBuffer - -createFrom -(TensorBuffer buffer, DataType dataType) -

-
-
-
-
-

Creates a TensorBuffer deep-copying data from another, with specified DataType.

-
-
Parameters
- - - - - - - - - -
bufferthe source TensorBuffer to copy from.
dataTypethe expected DataType of newly created TensorBuffer.
-
-
-
Throws
- - - - - -
NullPointerExceptionif buffer is null. -
-
-
-
- -
-

- - public - - - - - ByteBuffer - -getBuffer -() -

-
-
-
-
-

Returns the data buffer.

-
-
- -
-

- - public - - - abstract - - DataType - -getDataType -() -

-
-
-
-
-

Returns the data type of this buffer.

-
-
- -
-

- - public - - - - - int - -getFlatSize -() -

-
-
-
-
-

Gets the flatSize of the buffer.

-
-
Throws
- - - - - -
IllegalStateExceptionif the underlying data is corrupted -
-
-
-
- -
-

- - public - - - abstract - - float[] - -getFloatArray -() -

-
-
-
-
-

Returns a float array of the values stored in this buffer. If the buffer is of different types - than float, the values will be converted into float. For example, values in TensorBufferUint8 will be converted from uint8 to float. -

-
-
- -
-

- - public - - - abstract - - float - -getFloatValue -(int absIndex) -

-
-
-
-
-

Returns a float value at a given index. If the buffer is of different types than float, the - value will be converted into float. For example, when reading a value from TensorBufferUint8, the value will be first read out as uint8, and then will be converted from - uint8 to float. - -

- For example, a TensorBuffer with shape {2, 3} that represents the following array,
- [[0.0f, 1.0f, 2.0f], [3.0f, 4.0f, 5.0f]].
-
- The fourth element (whose value is 3.0f) in the TensorBuffer can be retrieved by:
- float v = tensorBuffer.getFloatValue(3);
- 

-
-
Parameters
- - - - - -
absIndexThe absolute index of the value to be read. -
-
-
-
- -
-

- - public - - - abstract - - int[] - -getIntArray -() -

-
-
-
-
-

Returns an int array of the values stored in this buffer. If the buffer is of different type - than int, the values will be converted into int, and loss of precision may apply. For example, - getting an int array from a TensorBufferFloat with values {400.32f, 23.04f}, the output - is {400, 23}. -

-
-
- -
-

- - public - - - abstract - - int - -getIntValue -(int absIndex) -

-
-
-
-
-

Returns an int value at a given index. If the buffer is of different types than int, the value - will be converted into int. For example, when reading a value from TensorBufferFloat, - the value will be first read out as float, and then will be converted from float to int. Loss - of precision may apply. - -

- For example, a TensorBuffer with shape {2, 3} that represents the following array,
- [[0.0f, 1.0f, 2.0f], [3.0f, 4.0f, 5.0f]].
-
- The fourth element (whose value is 3.0f) in the TensorBuffer can be retrieved by:
- int v = tensorBuffer.getIntValue(3);
- Note that v is converted from 3.0f to 3 as a result of type conversion.
- 

-
-
Parameters
- - - - - -
absIndexThe absolute index of the value to be read. -
-
-
-
- -
-

- - public - - - - - int[] - -getShape -() -

-
-
-
-
-

Gets the current shape. (returning a copy here to avoid unexpected modification.)

-
-
Throws
- - - - - -
IllegalStateExceptionif the underlying data is corrupted -
-
-
-
- -
-

- - public - - - abstract - - int - -getTypeSize -() -

-
-
-
-
-

Returns the number of bytes of a single element in the array. For example, a float buffer will - return 4, and a byte buffer will return 1. -

-
-
- -
-

- - public - - - - - boolean - -isDynamic -() -

-
-
-
-
-

Returns if the TensorBuffer is dynamic sized (could resize arbitrarily).

-
-
- -
-

- - public - - - abstract - - void - -loadArray -(int[] src, int[] shape) -

-
-
-
-
-

Loads an int array into this buffer with specific shape. If the buffer is of different types - than int, the values will be converted into the buffer's type before being loaded into the - buffer, and loss of precision may apply. For example, loading an int array with values {400, - -23} into a TensorBufferUint8 , the values will be clamped to [0, 255] and then be - casted to uint8 by {255, 0}.

-
-
Parameters
- - - - - - - - - -
srcThe source array to be loaded.
shapeShape of the tensor that src represents.
-
-
-
Throws
- - - - - - - - - - - - - -
NullPointerExceptionif src is null.
NullPointerExceptionif shape is null.
IllegalArgumentExceptionif the size of the array to be loaded does not match the - specified shape. -
-
-
-
- -
-

- - public - - - abstract - - void - -loadArray -(float[] src, int[] shape) -

-
-
-
-
-

Loads a float array into this buffer with specific shape. If the buffer is of different types - than float, the values will be converted into the buffer's type before being loaded into the - buffer, and loss of precision may apply. For example, loading a float array into a TensorBufferUint8 with values {400.32f, -23.04f}, the values will be clamped to [0, 255] and - then be casted to uint8 by {255, 0}.

-
-
Parameters
- - - - - - - - - -
srcThe source array to be loaded.
shapeShape of the tensor that src represents.
-
-
-
Throws
- - - - - - - - - - - - - -
NullPointerExceptionif src is null.
NullPointerExceptionif shape is null.
IllegalArgumentExceptionif the size of the array to be loaded does not match the - specified shape. -
-
-
-
- -
-

- - public - - - - - void - -loadArray -(float[] src) -

-
-
-
-
-

Loads a float array into this buffer. If the buffer is of different types than float, the - values will be converted into the buffer's type before being loaded into the buffer, and loss - of precision may apply. For example, loading a float array into a TensorBufferUint8 - with values {400.32f, -23.04f}, the values will be clamped to [0, 255] and then be casted to - uint8 by {255, 0}. - -

Using this method assumes that the shape of src is the same as the shape of this - TensorBuffer. Thus the size of buffer (src.length) should always match - the flat size of this TensorBuffer, for both fixed-size and dynamic TensorBuffer. Use loadArray(float[], int[]) if src has a different shape.

-
-
Parameters
- - - - - -
srcThe source array to be loaded. -
-
-
-
- -
-

- - public - - - - - void - -loadArray -(int[] src) -

-
-
-
-
-

Loads an int array into this buffer. If the buffer is of different types than int, the values - will be converted into the buffer's type before being loaded into the buffer, and loss of - precision may apply. For example, loading an int array with values {400, -23} into a TensorBufferUint8 , the values will be clamped to [0, 255] and then be casted to uint8 by - {255, 0}. - -

Using this method assumes that the shape of src is the same as the shape of this - TensorBuffer. Thus the size of buffer (src.length) should always match - the flat size of this TensorBuffer, for both fixed-size and dynamic TensorBuffer. Use loadArray(int[], int[]) if src has a different shape.

-
-
Parameters
- - - - - -
srcThe source array to be loaded. -
-
-
-
- -
-

- - public - - - - - void - -loadBuffer -(ByteBuffer buffer) -

-
-
-
-
-

Loads a byte buffer into this TensorBuffer. Buffer size must match the flat size of - this TensorBuffer. - -

Using this method assumes that the shape of buffer is the same as the shape of this - TensorBuffer. Thus the size of buffer (buffer.limit()) should always - match the flat size of this TensorBuffer, for both fixed-size and dynamic TensorBuffer. Use loadBuffer(ByteBuffer, int[]) if buffer has a different - shape. - -

Important: The loaded buffer is a reference. DO NOT MODIFY. We don't create a copy here for - performance concern, but if modification is necessary, please make a copy. - -

For the best performance, always load a direct ByteBuffer or a ByteBuffer - backed by an array. - -

If the buffer is read-only, we adopt a copy-on-write strategy for performance.

-
-
Parameters
- - - - - -
bufferThe byte buffer to load. -
-
-
-
- -
-

- - public - - - - - void - -loadBuffer -(ByteBuffer buffer, int[] shape) -

-
-
-
-
-

Loads a byte buffer into this TensorBuffer with specific shape. - -

Important: The loaded buffer is a reference. DO NOT MODIFY. We don't create a copy here for - performance concern, but if modification is necessary, please make a copy. - -

For the best performance, always load a direct ByteBuffer or a ByteBuffer - backed by an array.

-
-
Parameters
- - - - - - - - - -
bufferThe byte buffer to load.
shape
-
-
-
Throws
- - - - - - - - - -
NullPointerExceptionif buffer is null.
IllegalArgumentExceptionif the size of buffer and typeSize do not - match or the size of buffer and flatSize do not match. -
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/tensorbuffer/TensorBufferFloat.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/tensorbuffer/TensorBufferFloat.html deleted file mode 100644 index 5c93b8f5ba..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/tensorbuffer/TensorBufferFloat.html +++ /dev/null @@ -1,930 +0,0 @@ - - - - - - - - - -TensorBufferFloat - - - -
-
-
-
-
- -
- public final class - TensorBufferFloat -
-
-
-
-

Represents data buffer with float values.

-
-
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-DataType - -
-getDataType() - -
Returns the data type of this buffer.
-
-
- - - - - - float[] - -
-getFloatArray() - -
Returns a float array of the values stored in this buffer.
-
-
- - - - - - float - -
-getFloatValue(int absIndex) - -
Returns a float value at a given index.
-
-
- - - - - - int[] - -
-getIntArray() - -
Returns an int array of the values stored in this buffer.
-
-
- - - - - - int - -
-getIntValue(int absIndex) - -
Returns an int value at a given index.
-
-
- - - - - - int - -
-getTypeSize() - -
Returns the number of bytes of a single element in the array.
-
-
- - - - - - void - -
-loadArray(int[] src, int[] shape) - -
Loads an int array into this buffer with specific shape.
-
-
- - - - - - void - -
-loadArray(float[] src, int[] shape) - -
Loads a float array into this buffer with specific shape.
-
-
-
- -
-

Inherited Methods

- - -
-
- -
- - - - - - - - - - -
-

Public Methods

- -
-

- - public - - - - - DataType - -getDataType -() -

-
-
-
-
-

Returns the data type of this buffer.

-
-
- -
-

- - public - - - - - float[] - -getFloatArray -() -

-
-
-
-
-

Returns a float array of the values stored in this buffer. If the buffer is of different types - than float, the values will be converted into float. For example, values in TensorBufferUint8 will be converted from uint8 to float. -

-
-
- -
-

- - public - - - - - float - -getFloatValue -(int absIndex) -

-
-
-
-
-

Returns a float value at a given index. If the buffer is of different types than float, the - value will be converted into float. For example, when reading a value from TensorBufferUint8, the value will be first read out as uint8, and then will be converted from - uint8 to float. - -

- For example, a TensorBuffer with shape {2, 3} that represents the following array,
- [[0.0f, 1.0f, 2.0f], [3.0f, 4.0f, 5.0f]].
-
- The fourth element (whose value is 3.0f) in the TensorBuffer can be retrieved by:
- float v = tensorBuffer.getFloatValue(3);
- 

-
-
Parameters
- - - - - -
absIndexThe absolute index of the value to be read. -
-
-
-
- -
-

- - public - - - - - int[] - -getIntArray -() -

-
-
-
-
-

Returns an int array of the values stored in this buffer. If the buffer is of different type - than int, the values will be converted into int, and loss of precision may apply. For example, - getting an int array from a TensorBufferFloat with values {400.32f, 23.04f}, the output - is {400, 23}. -

-
-
- -
-

- - public - - - - - int - -getIntValue -(int absIndex) -

-
-
-
-
-

Returns an int value at a given index. If the buffer is of different types than int, the value - will be converted into int. For example, when reading a value from TensorBufferFloat, - the value will be first read out as float, and then will be converted from float to int. Loss - of precision may apply. - -

- For example, a TensorBuffer with shape {2, 3} that represents the following array,
- [[0.0f, 1.0f, 2.0f], [3.0f, 4.0f, 5.0f]].
-
- The fourth element (whose value is 3.0f) in the TensorBuffer can be retrieved by:
- int v = tensorBuffer.getIntValue(3);
- Note that v is converted from 3.0f to 3 as a result of type conversion.
- 

-
-
Parameters
- - - - - -
absIndexThe absolute index of the value to be read. -
-
-
-
- -
-

- - public - - - - - int - -getTypeSize -() -

-
-
-
-
-

Returns the number of bytes of a single element in the array. For example, a float buffer will - return 4, and a byte buffer will return 1. -

-
-
- -
-

- - public - - - - - void - -loadArray -(int[] src, int[] shape) -

-
-
-
-
-

Loads an int array into this buffer with specific shape. If the buffer is of different types - than int, the values will be converted into the buffer's type before being loaded into the - buffer, and loss of precision may apply. For example, loading an int array with values {400, - -23} into a TensorBufferUint8 , the values will be clamped to [0, 255] and then be - casted to uint8 by {255, 0}.

-
-
Parameters
- - - - - - - - - -
srcThe source array to be loaded.
shapeShape of the tensor that src represents.
-
-
-
- -
-

- - public - - - - - void - -loadArray -(float[] src, int[] shape) -

-
-
-
-
-

Loads a float array into this buffer with specific shape. If the buffer is of different types - than float, the values will be converted into the buffer's type before being loaded into the - buffer, and loss of precision may apply. For example, loading a float array into a TensorBufferUint8 with values {400.32f, -23.04f}, the values will be clamped to [0, 255] and - then be casted to uint8 by {255, 0}.

-
-
Parameters
- - - - - - - - - -
srcThe source array to be loaded.
shapeShape of the tensor that src represents.
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/tensorbuffer/TensorBufferUint8.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/tensorbuffer/TensorBufferUint8.html deleted file mode 100644 index c7e4f82b79..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/tensorbuffer/TensorBufferUint8.html +++ /dev/null @@ -1,930 +0,0 @@ - - - - - - - - - -TensorBufferUint8 - - - -
-
-
-
-
- -
- public final class - TensorBufferUint8 -
-
-
-
-

Represents data buffer with 8-bit unsigned integer values.

-
-
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-DataType - -
-getDataType() - -
Returns the data type of this buffer.
-
-
- - - - - - float[] - -
-getFloatArray() - -
Returns a float array of the values stored in this buffer.
-
-
- - - - - - float - -
-getFloatValue(int index) - -
Returns a float value at a given index.
-
-
- - - - - - int[] - -
-getIntArray() - -
Returns an int array of the values stored in this buffer.
-
-
- - - - - - int - -
-getIntValue(int index) - -
Returns an int value at a given index.
-
-
- - - - - - int - -
-getTypeSize() - -
Returns the number of bytes of a single element in the array.
-
-
- - - - - - void - -
-loadArray(int[] src, int[] shape) - -
Loads an int array into this buffer with specific shape.
-
-
- - - - - - void - -
-loadArray(float[] src, int[] shape) - -
Loads a float array into this buffer with specific shape.
-
-
-
- -
-

Inherited Methods

- - -
-
- -
- - - - - - - - - - -
-

Public Methods

- -
-

- - public - - - - - DataType - -getDataType -() -

-
-
-
-
-

Returns the data type of this buffer.

-
-
- -
-

- - public - - - - - float[] - -getFloatArray -() -

-
-
-
-
-

Returns a float array of the values stored in this buffer. If the buffer is of different types - than float, the values will be converted into float. For example, values in TensorBufferUint8 will be converted from uint8 to float. -

-
-
- -
-

- - public - - - - - float - -getFloatValue -(int index) -

-
-
-
-
-

Returns a float value at a given index. If the buffer is of different types than float, the - value will be converted into float. For example, when reading a value from TensorBufferUint8, the value will be first read out as uint8, and then will be converted from - uint8 to float. - -

- For example, a TensorBuffer with shape {2, 3} that represents the following array,
- [[0.0f, 1.0f, 2.0f], [3.0f, 4.0f, 5.0f]].
-
- The fourth element (whose value is 3.0f) in the TensorBuffer can be retrieved by:
- float v = tensorBuffer.getFloatValue(3);
- 

-
-
Parameters
- - - - - -
indexThe absolute index of the value to be read. -
-
-
-
- -
-

- - public - - - - - int[] - -getIntArray -() -

-
-
-
-
-

Returns an int array of the values stored in this buffer. If the buffer is of different type - than int, the values will be converted into int, and loss of precision may apply. For example, - getting an int array from a TensorBufferFloat with values {400.32f, 23.04f}, the output - is {400, 23}. -

-
-
- -
-

- - public - - - - - int - -getIntValue -(int index) -

-
-
-
-
-

Returns an int value at a given index. If the buffer is of different types than int, the value - will be converted into int. For example, when reading a value from TensorBufferFloat, - the value will be first read out as float, and then will be converted from float to int. Loss - of precision may apply. - -

- For example, a TensorBuffer with shape {2, 3} that represents the following array,
- [[0.0f, 1.0f, 2.0f], [3.0f, 4.0f, 5.0f]].
-
- The fourth element (whose value is 3.0f) in the TensorBuffer can be retrieved by:
- int v = tensorBuffer.getIntValue(3);
- Note that v is converted from 3.0f to 3 as a result of type conversion.
- 

-
-
Parameters
- - - - - -
indexThe absolute index of the value to be read. -
-
-
-
- -
-

- - public - - - - - int - -getTypeSize -() -

-
-
-
-
-

Returns the number of bytes of a single element in the array. For example, a float buffer will - return 4, and a byte buffer will return 1. -

-
-
- -
-

- - public - - - - - void - -loadArray -(int[] src, int[] shape) -

-
-
-
-
-

Loads an int array into this buffer with specific shape. If the buffer is of different types - than int, the values will be converted into the buffer's type before being loaded into the - buffer, and loss of precision may apply. For example, loading an int array with values {400, - -23} into a TensorBufferUint8 , the values will be clamped to [0, 255] and then be - casted to uint8 by {255, 0}.

-
-
Parameters
- - - - - - - - - -
srcThe source array to be loaded.
shapeShape of the tensor that src represents.
-
-
-
- -
-

- - public - - - - - void - -loadArray -(float[] src, int[] shape) -

-
-
-
-
-

Loads a float array into this buffer with specific shape. If the buffer is of different types - than float, the values will be converted into the buffer's type before being loaded into the - buffer, and loss of precision may apply. For example, loading a float array into a TensorBufferUint8 with values {400.32f, -23.04f}, the values will be clamped to [0, 255] and - then be casted to uint8 by {255, 0}.

-
-
Parameters
- - - - - - - - - -
srcThe source array to be loaded.
shapeShape of the tensor that src represents.
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/support/tensorbuffer/package-summary.html b/site/en/lite/api_docs/java/org/tensorflow/lite/support/tensorbuffer/package-summary.html deleted file mode 100644 index 427eb4d0d5..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/support/tensorbuffer/package-summary.html +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - -org.tensorflow.lite.support.tensorbuffer - - - -
-
-
-
-
-
-
- -
-
-
-

Classes

-
- - - - - - - - - - - - - -
TensorBufferRepresents the data buffer for either a model's input or its output. 
TensorBufferFloatRepresents data buffer with float values. 
TensorBufferUint8Represents data buffer with 8-bit unsigned integer values. 
-
-
-
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/audio/classifier/AudioClassifier.AudioClassifierOptions.Builder.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/audio/classifier/AudioClassifier.AudioClassifierOptions.Builder.html deleted file mode 100644 index 112fbaeb83..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/audio/classifier/AudioClassifier.AudioClassifierOptions.Builder.html +++ /dev/null @@ -1,529 +0,0 @@ - - - - - - - - - -AudioClassifier.AudioClassifierOptions.Builder - - - -
-
-
-
-
- -
- public static class - AudioClassifier.AudioClassifierOptions.Builder -
-
-
-
-

A builder that helps to configure an instance of AudioClassifierOptions.

-
-
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-AudioClassifier.AudioClassifierOptions - -
-build() - -
-
-AudioClassifier.AudioClassifierOptions.Builder - -
-setBaseOptions(BaseOptions baseOptions) - -
Sets the general options to configure Task APIs, such as accelerators.
-
-
-AudioClassifier.AudioClassifierOptions.Builder - -
-setDisplayNamesLocale(String displayNamesLocale) - -
Sets the locale to use for display names specified through the TFLite Model Metadata, if - any.
-
-
-AudioClassifier.AudioClassifierOptions.Builder - -
-setLabelAllowList(List<String> labelAllowList) - -
Sets the optional allowlist of labels.
-
-
-AudioClassifier.AudioClassifierOptions.Builder - -
-setLabelDenyList(List<String> labelDenyList) - -
Sets the optional denylist of labels.
-
-
-AudioClassifier.AudioClassifierOptions.Builder - -
-setMaxResults(int maxResults) - -
Sets the maximum number of top scored results to return.
-
-
-AudioClassifier.AudioClassifierOptions.Builder - -
-setScoreThreshold(float scoreThreshold) - -
Sets the score threshold.
-
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - - - - -
-

Public Methods

- -
-

- - public - - - - - AudioClassifier.AudioClassifierOptions - -build -() -

-
-
-
-
-

-
-
- -
-

- - public - - - - - AudioClassifier.AudioClassifierOptions.Builder - -setBaseOptions -(BaseOptions baseOptions) -

-
-
-
-
-

Sets the general options to configure Task APIs, such as accelerators.

-
-
Parameters
- - - - - -
baseOptions
-
-
-
- -
-

- - public - - - - - AudioClassifier.AudioClassifierOptions.Builder - -setDisplayNamesLocale -(String displayNamesLocale) -

-
-
-
-
-

Sets the locale to use for display names specified through the TFLite Model Metadata, if - any. - -

Defaults to English("en"). See the TFLite - Metadata schema file. for the accepted pattern of locale. -

-
-
Parameters
- - - - - -
displayNamesLocale
-
-
-
- -
-

- - public - - - - - AudioClassifier.AudioClassifierOptions.Builder - -setLabelAllowList -(List<String> labelAllowList) -

-
-
-
-
-

Sets the optional allowlist of labels. - -

If non-empty, classifications whose label is not in this set will be filtered out. - Duplicate or unknown labels are ignored. Mutually exclusive with labelDenyList. -

-
-
Parameters
- - - - - -
labelAllowList
-
-
-
- -
-

- - public - - - - - AudioClassifier.AudioClassifierOptions.Builder - -setLabelDenyList -(List<String> labelDenyList) -

-
-
-
-
-

Sets the optional denylist of labels. - -

If non-empty, classifications whose label is in this set will be filtered out. Duplicate - or unknown labels are ignored. Mutually exclusive with labelAllowList. -

-
-
Parameters
- - - - - -
labelDenyList
-
-
-
- -
-

- - public - - - - - AudioClassifier.AudioClassifierOptions.Builder - -setMaxResults -(int maxResults) -

-
-
-
-
-

Sets the maximum number of top scored results to return.

-
-
Parameters
- - - - - -
maxResultsif < 0, all results will be returned. If 0, an invalid argument error is - returned. Defaults to -1.
-
-
-
Throws
- - - - - -
IllegalArgumentExceptionif maxResults is 0 -
-
-
-
- -
-

- - public - - - - - AudioClassifier.AudioClassifierOptions.Builder - -setScoreThreshold -(float scoreThreshold) -

-
-
-
-
-

Sets the score threshold. - -

It overrides the one provided in the model metadata (if any). Results below this value - are rejected. -

-
-
Parameters
- - - - - -
scoreThreshold
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/audio/classifier/AudioClassifier.AudioClassifierOptions.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/audio/classifier/AudioClassifier.AudioClassifierOptions.html deleted file mode 100644 index c824ec17cd..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/audio/classifier/AudioClassifier.AudioClassifierOptions.html +++ /dev/null @@ -1,508 +0,0 @@ - - - - - - - - - -AudioClassifier.AudioClassifierOptions - - - -
-
-
-
-
- -
- public static class - AudioClassifier.AudioClassifierOptions -
-
-
-
-

Options for setting up an AudioClassifier.

-
-
-
- -
-

Nested Classes

- - - - - - -
- - - - - classAudioClassifier.AudioClassifierOptions.BuilderA builder that helps to configure an instance of AudioClassifierOptions. 
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - static - - AudioClassifier.AudioClassifierOptions.Builder - -
-builder() - -
-
-BaseOptions - - -
-String - - -
- - - - - - boolean - - -
-List<String> - - -
-List<String> - - -
- - - - - - int - -
-getMaxResults() - -
-
- - - - - - float - - -
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - - - - -
-

Public Methods

- -
-

- - public - static - - - - AudioClassifier.AudioClassifierOptions.Builder - -builder -() -

-
-
-
-
-

-
-
- -
-

- - public - - - - - BaseOptions - -getBaseOptions -() -

-
-
-
-
-

-
-
- -
-

- - public - - - - - String - -getDisplayNamesLocale -() -

-
-
-
-
-

-
-
- -
-

- - public - - - - - boolean - -getIsScoreThresholdSet -() -

-
-
-
-
-

-
-
- -
-

- - public - - - - - List<String> - -getLabelAllowList -() -

-
-
-
-
-

-
-
- -
-

- - public - - - - - List<String> - -getLabelDenyList -() -

-
-
-
-
-

-
-
- -
-

- - public - - - - - int - -getMaxResults -() -

-
-
-
-
-

-
-
- -
-

- - public - - - - - float - -getScoreThreshold -() -

-
-
-
-
-

-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/audio/classifier/AudioClassifier.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/audio/classifier/AudioClassifier.html deleted file mode 100644 index dc753337c7..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/audio/classifier/AudioClassifier.html +++ /dev/null @@ -1,1044 +0,0 @@ - - - - - - - - - -AudioClassifier - - - -
-
-
-
-
- -
- public final class - AudioClassifier -
-
-
-
-

Performs classification on audio waveforms. - -

The API expects a TFLite model with TFLite Model Metadata.. - -

The API supports models with one audio input tensor and one classification output tensor. To - be more specific, here are the requirements. - -

    -
  • Input audio tensor (kTfLiteFloat32) -
      -
    • input audio buffer of size [batch x samples]. -
    • batch inference is not supported (batch is required to be 1). -
    -
  • Output score tensor (kTfLiteFloat32) -
      -
    • with N classes of either 2 or 4 dimensions, such as [1 x N] or [1 x 1 x 1 x N] -
    • the label file is required to be packed to the metadata. See the example of - creating metadata for an image classifier. If no label files are packed, it will - use index as label in the result. -
    -
- - See an example - of such model, and a - CLI demo tool for easily trying out this API. -

-

-
-
- -
-

Nested Classes

- - - - - - -
- - - - - classAudioClassifier.AudioClassifierOptionsOptions for setting up an AudioClassifier
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-List<Classifications> - -
-classify(TensorAudio tensor) - -
Performs actual classification on the provided audio tensor.
-
-
- - - - - - AudioRecord - -
-createAudioRecord() - -
Creates an AudioRecord instance to record audio stream.
-
-
- - - - static - - AudioClassifier - -
-createFromBuffer(ByteBuffer modelBuffer) - -
Creates an AudioClassifier instance with a model buffer and the default AudioClassifier.AudioClassifierOptions.
-
-
- - - - static - - AudioClassifier - - -
- - - - static - - AudioClassifier - -
-createFromFile(Context context, String modelPath) - -
Creates an AudioClassifier instance from the default AudioClassifier.AudioClassifierOptions.
-
-
- - - - static - - AudioClassifier - -
-createFromFile(File modelFile) - -
Creates an AudioClassifier instance from the default AudioClassifier.AudioClassifierOptions.
-
-
- - - - static - - AudioClassifier - - -
- - - - static - - AudioClassifier - - -
-TensorAudio - -
-createInputTensorAudio() - -
Creates a TensorAudio instance to store input audio samples.
-
-
- - - - - - long - -
-getRequiredInputBufferSize() - -
Returns the required input buffer size in number of float elements.
-
-
-TensorAudio.TensorAudioFormat - -
-getRequiredTensorAudioFormat() - -
Returns the TensorAudio.TensorAudioFormat required by the model.
-
-
-
- -
-

Inherited Methods

- - - - -
-
- -
- - - - - - - - - - -
-

Public Methods

- -
-

- - public - - - - - List<Classifications> - -classify -(TensorAudio tensor) -

-
-
-
-
-

Performs actual classification on the provided audio tensor.

-
-
Parameters
- - - - - -
tensora TensorAudio containing the input audio clip in float with values - between [-1, 1). The tensor argument should have the same flat size as the TFLite - model's input tensor. It's recommended to create tensor using createInputTensorAudio method.
-
-
-
Throws
- - - - - - - - - -
IllegalArgumentExceptionif an argument is invalid
IllegalStateExceptionif error occurs when classifying the audio clip from the native - code -
-
-
-
- -
-

- - public - - - - - AudioRecord - -createAudioRecord -() -

-
-
-
-
-

Creates an AudioRecord instance to record audio stream. The returned - AudioRecord instance is initialized and client needs to call AudioRecord.startRecordingnull method to start recording.

-
-
Returns
- -
-
-
Throws
- - - - - - - - - -
IllegalArgumentExceptionif the model required channel count is unsupported
IllegalStateExceptionif AudioRecord instance failed to initialize -
-
-
-
- -
-

- - public - static - - - - AudioClassifier - -createFromBuffer -(ByteBuffer modelBuffer) -

-
-
-
-
-

Creates an AudioClassifier instance with a model buffer and the default AudioClassifier.AudioClassifierOptions.

-
-
Parameters
- - - - - -
modelBuffera direct ByteBuffer or a MappedByteBuffer of the - classification model
-
-
-
Throws
- - - - - - - - - - - - - -
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error
IllegalArgumentExceptionif the model buffer is not a direct ByteBuffer or a - MappedByteBuffer -
-
-
-
- -
-

- - public - static - - - - AudioClassifier - -createFromBufferAndOptions -(ByteBuffer modelBuffer, AudioClassifier.AudioClassifierOptions options) -

-
-
-
-
-

Creates an AudioClassifier instance with a model buffer and AudioClassifier.AudioClassifierOptions.

-
-
Parameters
- - - - - - - - - -
modelBuffera direct ByteBuffer or a MappedByteBuffer of the - classification model
options
-
-
-
Throws
- - - - - - - - - - - - - -
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error
IllegalArgumentExceptionif the model buffer is not a direct ByteBuffer or a - MappedByteBuffer -
-
-
-
- -
-

- - public - static - - - - AudioClassifier - -createFromFile -(Context context, String modelPath) -

-
-
-
-
-

Creates an AudioClassifier instance from the default AudioClassifier.AudioClassifierOptions.

-
-
Parameters
- - - - - - - - - -
context
modelPathpath of the classification model with metadata in the assets
-
-
-
Throws
- - - - - - - - - - - - - - - - - -
IOExceptionif an I/O error occurs when loading the tflite model
IllegalArgumentExceptionif an argument is invalid
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error -
-
-
-
- -
-

- - public - static - - - - AudioClassifier - -createFromFile -(File modelFile) -

-
-
-
-
-

Creates an AudioClassifier instance from the default AudioClassifier.AudioClassifierOptions.

-
-
Parameters
- - - - - -
modelFilethe classification model File instance
-
-
-
Throws
- - - - - - - - - - - - - - - - - -
IOExceptionif an I/O error occurs when loading the tflite model
IllegalArgumentExceptionif an argument is invalid
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error -
-
-
-
- -
-

- - public - static - - - - AudioClassifier - -createFromFileAndOptions -(Context context, String modelPath, AudioClassifier.AudioClassifierOptions options) -

-
-
-
-
- -
-
Parameters
- - - - - - - - - - - - - -
context
modelPathpath of the classification model with metadata in the assets
options
-
-
-
Throws
- - - - - - - - - - - - - - - - - -
IOExceptionif an I/O error occurs when loading the tflite model
IllegalArgumentExceptionif an argument is invalid
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error -
-
-
-
- -
-

- - public - static - - - - AudioClassifier - -createFromFileAndOptions -(File modelFile, AudioClassifier.AudioClassifierOptions options) -

-
-
-
-
-

Creates an AudioClassifier instance.

-
-
Parameters
- - - - - - - - - -
modelFilethe classification model File instance
options
-
-
-
Throws
- - - - - - - - - - - - - - - - - -
IOExceptionif an I/O error occurs when loading the tflite model
IllegalArgumentExceptionif an argument is invalid
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error -
-
-
-
- -
-

- - public - - - - - TensorAudio - -createInputTensorAudio -() -

-
-
-
-
-

Creates a TensorAudio instance to store input audio samples.

-
-
Returns
- -
-
-
Throws
- - - - - -
IllegalArgumentExceptionif the model is not compatible -
-
-
-
- -
-

- - public - - - - - long - -getRequiredInputBufferSize -() -

-
-
-
-
-

Returns the required input buffer size in number of float elements.

-
-
- -
-

- - public - - - - - TensorAudio.TensorAudioFormat - -getRequiredTensorAudioFormat -() -

-
-
-
-
-

Returns the TensorAudio.TensorAudioFormat required by the model.

-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/audio/classifier/Classifications.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/audio/classifier/Classifications.html deleted file mode 100644 index a7b4f99b15..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/audio/classifier/Classifications.html +++ /dev/null @@ -1,370 +0,0 @@ - - - - - - - - - -Classifications - - - -
-
-
-
-
- -
- public abstract class - Classifications -
-
-
-
-

The classification results of one head in a multihead (a.k.a. multi-output) AudioClassifier. A multihead AudioClassifier can perform classification for multiple - purposes, such as a fine grained classifier to distinguish different bird sounds. -

-
-
-
- -
-

Public Constructors

- - - - - -
- - -
-
- -
-

Public Methods

- - - - - - - - - - - - - -
- abstract - - - - - List<Category> - -
-getCategories() - -
-
- abstract - - - - - int - -
-getHeadIndex() - -
-
- abstract - - - - - String - -
-getHeadName() - -
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -Classifications -() -

-
-
-
-
-

-
-
-
- - - - -
-

Public Methods

- -
-

- - public - - - abstract - - List<Category> - -getCategories -() -

-
-
-
-
-

-
-
- -
-

- - public - - - abstract - - int - -getHeadIndex -() -

-
-
-
-
-

-
-
- -
-

- - public - - - abstract - - String - -getHeadName -() -

-
-
-
-
-

-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/audio/classifier/package-summary.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/audio/classifier/package-summary.html deleted file mode 100644 index a437adeb31..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/audio/classifier/package-summary.html +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - -org.tensorflow.lite.task.audio.classifier - - - -
-
-
-
-
-
-
- -
-
-
-

Classes

-
- - - - - - - - - - - - - - - - - -
AudioClassifierPerforms classification on audio waveforms. 
AudioClassifier.AudioClassifierOptionsOptions for setting up an AudioClassifier
AudioClassifier.AudioClassifierOptions.BuilderA builder that helps to configure an instance of AudioClassifierOptions. 
ClassificationsThe classification results of one head in a multihead (a.k.a. 
-
-
-
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/core/BaseOptions.Builder.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/core/BaseOptions.Builder.html deleted file mode 100644 index 2c46fdfb08..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/core/BaseOptions.Builder.html +++ /dev/null @@ -1,475 +0,0 @@ - - - - - - - - - -BaseOptions.Builder - - - -
-
-
-
-
- -
- public static abstract class - BaseOptions.Builder -
-
-
-
-

Builder for BaseOptions.

-
-
-
- -
-

Public Constructors

- - - - - -
- -
-Builder() - -
-
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - - - - - -
- abstract - - - - - BaseOptions - -
-build() - -
-
- abstract - - - - - BaseOptions.Builder - -
-setComputeSettings(ComputeSettings computeSettings) - -
Sets the advanced accelerator options.
-
-
- abstract - - - - - BaseOptions.Builder - -
-setNumThreads(int numThreads) - -
Sets the number of threads to be used for TFLite ops that support multi-threading when - running inference with CPU.
-
-
-BaseOptions.Builder - -
-useGpu() - -
Uses GPU for inference.
-
-
-BaseOptions.Builder - -
-useNnapi() - -
Uses NNAPI for inference.
-
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -Builder -() -

-
-
-
-
-

-
-
-
- - - - -
-

Public Methods

- -
-

- - public - - - abstract - - BaseOptions - -build -() -

-
-
-
-
-

-
-
- -
-

- - public - - - abstract - - BaseOptions.Builder - -setComputeSettings -(ComputeSettings computeSettings) -

-
-
-
-
-

Sets the advanced accelerator options. - -

Note: this method will override those highlevel API to choose an delegate, such as useGpu() and useNnapi(). -

-
-
Parameters
- - - - - -
computeSettings
-
-
-
- -
-

- - public - - - abstract - - BaseOptions.Builder - -setNumThreads -(int numThreads) -

-
-
-
-
-

Sets the number of threads to be used for TFLite ops that support multi-threading when - running inference with CPU. Defaults to -1. - -

numThreads should be greater than 0 or equal to -1. Setting numThreads to -1 has - the effect to let TFLite runtime set the value. -

-
-
Parameters
- - - - - -
numThreads
-
-
-
- -
-

- - public - - - - - BaseOptions.Builder - -useGpu -() -

-
-
-
-
-

Uses GPU for inference. The advanced GPU configuration settings will be set to default - values. - -

Note: this method will override the settings from setComputeSettings(ComputeSettings). - -

To manipulate the advanced GPU configuration settings, use setComputeSettings(ComputeSettings). -

-
-
- -
-

- - public - - - - - BaseOptions.Builder - -useNnapi -() -

-
-
-
-
-

Uses NNAPI for inference. The advanced NNAPI configuration settings will be set to default - values. - -

Note: this method will override the settings from setComputeSettings(ComputeSettings). - -

To manipulate the advanced NNAPI configuration settings, use setComputeSettings(ComputeSettings). -

-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/core/BaseOptions.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/core/BaseOptions.html deleted file mode 100644 index d957007e30..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/core/BaseOptions.html +++ /dev/null @@ -1,310 +0,0 @@ - - - - - - - - - -BaseOptions - - - -
-
-
-
-
- -
- public abstract class - BaseOptions -
-
-
-
-

Options to configure Task APIs in general.

-
-
-
- -
-

Nested Classes

- - - - - - -
- - - - - classBaseOptions.BuilderBuilder for BaseOptions
-
- -
-

Public Constructors

- - - - - -
- -
-BaseOptions() - -
-
-
- -
-

Public Methods

- - - - - -
- - - - static - - BaseOptions.Builder - -
-builder() - -
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -BaseOptions -() -

-
-
-
-
-

-
-
-
- - - - -
-

Public Methods

- -
-

- - public - static - - - - BaseOptions.Builder - -builder -() -

-
-
-
-
-

-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/core/BaseTaskApi.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/core/BaseTaskApi.html deleted file mode 100644 index 15b2cad3c6..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/core/BaseTaskApi.html +++ /dev/null @@ -1,479 +0,0 @@ - - - - - - - - - -BaseTaskApi - - - -
-
-
-
-
- -
- public abstract class - BaseTaskApi -
-
-
-
- Known Direct Subclasses - -
- - -
-
-
- Known Indirect Subclasses - -
- - -
-
-
-

Base class for Task API, provides shared logic to load/unload native libs to its C++ counterpart. -

-
-
-
- -
-

Public Methods

- - - - - - - - - - - - - -
- - synchronized - - - - void - -
-close() - -
Release the memory allocated from C++ and deregister the library from the static holder.
-
-
- - - - - - long - - -
- - - - - - boolean - -
-isClosed() - -
-
-
- -
-

Inherited Methods

- - - -
-
- -
- - - - - - - - - - -
-

Public Methods

- -
-

- - public - - - - synchronized - void - -close -() -

-
-
-
-
-

Release the memory allocated from C++ and deregister the library from the static holder.

-
-
- -
-

- - public - - - - - long - -getNativeHandle -() -

-
-
-
-
-

-
-
- -
-

- - public - - - - - boolean - -isClosed -() -

-
-
-
-
-

-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/core/ComputeSettings.Builder.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/core/ComputeSettings.Builder.html deleted file mode 100644 index 0aa70f5078..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/core/ComputeSettings.Builder.html +++ /dev/null @@ -1,340 +0,0 @@ - - - - - - - - - -ComputeSettings.Builder - - - -
-
-
-
-
- -
- public static abstract class - ComputeSettings.Builder -
-
-
-
-

Builder for ComputeSettings.

-
-
-
- -
-

Public Constructors

- - - - - -
- -
-Builder() - -
-
-
- -
-

Public Methods

- - - - - - - - - -
- abstract - - - - - ComputeSettings - -
-build() - -
-
- abstract - - - - - ComputeSettings.Builder - - -
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -Builder -() -

-
-
-
-
-

-
-
-
- - - - -
-

Public Methods

- -
-

- - public - - - abstract - - ComputeSettings - -build -() -

-
-
-
-
-

-
-
- -
-

- - public - - - abstract - - ComputeSettings.Builder - -setDelegate -(ComputeSettings.Delegate delegate) -

-
-
-
-
-

-
-
Parameters
- - - - - -
delegate
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/core/ComputeSettings.Delegate.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/core/ComputeSettings.Delegate.html deleted file mode 100644 index 6c155e054c..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/core/ComputeSettings.Delegate.html +++ /dev/null @@ -1,454 +0,0 @@ - - - - - - - - - -ComputeSettings.Delegate - - - -
-
-
-
-
- -
- public static final enum - ComputeSettings.Delegate -
-
-
-
-

TFLite accelerator delegate options.

-
-
-
- -
-

Inherited Methods

- - - -
-
- -
- - - - -
-

Enum Values

- -
-

- - public - static - final - - - ComputeSettings.Delegate - - -GPU -

-
-
-
-

-
-
- -
-

- - public - static - final - - - ComputeSettings.Delegate - - -NNAPI -

-
-
-
-

-
-
- -
-

- - public - static - final - - - ComputeSettings.Delegate - - -NONE -

-
-
-
-

-
-
-
- - - - - - - - - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/core/ComputeSettings.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/core/ComputeSettings.html deleted file mode 100644 index d4da1dc0a0..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/core/ComputeSettings.html +++ /dev/null @@ -1,357 +0,0 @@ - - - - - - - - - -ComputeSettings - - - -
-
-
-
-
- -
- public abstract class - ComputeSettings -
-
-
-
-

Options to configure how to accelerate the model inference using dedicated delegates.

-
-
-
- -
-

Nested Classes

- - - - - - - - - - - -
- - - - - classComputeSettings.BuilderBuilder for ComputeSettings
- - - - - enumComputeSettings.DelegateTFLite accelerator delegate options. 
-
- -
-

Public Constructors

- - - - - -
- - -
-
- -
-

Public Methods

- - - - - - - - - -
- - - - static - - ComputeSettings.Builder - -
-builder() - -
-
- abstract - - - - - ComputeSettings.Delegate - -
-getDelegate() - -
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -ComputeSettings -() -

-
-
-
-
-

-
-
-
- - - - -
-

Public Methods

- -
-

- - public - static - - - - ComputeSettings.Builder - -builder -() -

-
-
-
-
-

-
-
- -
-

- - public - - - abstract - - ComputeSettings.Delegate - -getDelegate -() -

-
-
-
-
-

-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/core/TaskJniUtils.EmptyHandleProvider.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/core/TaskJniUtils.EmptyHandleProvider.html deleted file mode 100644 index 3484511e13..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/core/TaskJniUtils.EmptyHandleProvider.html +++ /dev/null @@ -1,96 +0,0 @@ - - - - - - - - - -TaskJniUtils.EmptyHandleProvider - - - -
-
-
-
-
- -
- public static interface - TaskJniUtils.EmptyHandleProvider -
-
-
-
-

Syntax sugar to get nativeHandle from empty param list.

-
-
-
- -
-

Public Methods

- - - - - -
- abstract - - - - - long - -
-createHandle() - -
-
-
-
- -
- - - - - - - - - - -
-

Public Methods

- -
-

- - public - - - abstract - - long - -createHandle -() -

-
-
-
-
-

-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/core/TaskJniUtils.FdAndOptionsHandleProvider.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/core/TaskJniUtils.FdAndOptionsHandleProvider.html deleted file mode 100644 index e62e3fe62e..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/core/TaskJniUtils.FdAndOptionsHandleProvider.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - - - - -TaskJniUtils.FdAndOptionsHandleProvider - - - -
-
-
-
-
- -
- public static interface - TaskJniUtils.FdAndOptionsHandleProvider -
-
-
-
-

Syntax sugar to get nativeHandle from file descriptor and options.

-
-
-
- -
-

Public Methods

- - - - - -
- abstract - - - - - long - -
-createHandle(int fileDescriptor, long fileDescriptorLength, long fileDescriptorOffset, T options) - -
-
-
-
- -
- - - - - - - - - - -
-

Public Methods

- -
-

- - public - - - abstract - - long - -createHandle -(int fileDescriptor, long fileDescriptorLength, long fileDescriptorOffset, T options) -

-
-
-
-
-

-
-
Parameters
- - - - - - - - - - - - - - - - - -
fileDescriptor
fileDescriptorLength
fileDescriptorOffset
options
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/core/TaskJniUtils.MultipleBuffersHandleProvider.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/core/TaskJniUtils.MultipleBuffersHandleProvider.html deleted file mode 100644 index ce18ac936c..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/core/TaskJniUtils.MultipleBuffersHandleProvider.html +++ /dev/null @@ -1,105 +0,0 @@ - - - - - - - - - -TaskJniUtils.MultipleBuffersHandleProvider - - - -
-
-
-
-
- -
- public static interface - TaskJniUtils.MultipleBuffersHandleProvider -
-
-
-
-

Syntax sugar to get nativeHandle from an array of ByteBuffers.

-
-
-
- -
-

Public Methods

- - - - - -
- abstract - - - - - long - -
-createHandle(ByteBuffer... buffers) - -
-
-
-
- -
- - - - - - - - - - -
-

Public Methods

- -
-

- - public - - - abstract - - long - -createHandle -(ByteBuffer... buffers) -

-
-
-
-
-

-
-
Parameters
- - - - - -
buffers
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/core/TaskJniUtils.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/core/TaskJniUtils.html deleted file mode 100644 index a23b1c0d99..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/core/TaskJniUtils.html +++ /dev/null @@ -1,713 +0,0 @@ - - - - - - - - - -TaskJniUtils - - - -
-
-
-
-
- -
- public class - TaskJniUtils -
-
-
-
-

JNI utils for Task API.

-
-
-
- -
-

Nested Classes

- - - - - - - - - - - - - - - - -
- - - - - interfaceTaskJniUtils.EmptyHandleProviderSyntax sugar to get nativeHandle from empty param list. 
- - - - - interfaceTaskJniUtils.FdAndOptionsHandleProvider<T>Syntax sugar to get nativeHandle from file descriptor and options. 
- - - - - interfaceTaskJniUtils.MultipleBuffersHandleProviderSyntax sugar to get nativeHandle from an array of ByteBuffers. 
-
- -

Constants

- - - - - - -
longINVALID_POINTER
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - static - <T> - long - -
-createHandleFromFdAndOptions(Context context, FdAndOptionsHandleProvider<T> provider, String libName, String filePath, T options) - -
Initializes the JNI and returns C++ handle with file descriptor and options for task API.
-
-
- - - - static - - long - -
-createHandleFromLibrary(TaskJniUtils.EmptyHandleProvider provider, String libName) - -
Initializes the JNI and returns C++ handle by first loading the C++ library and then invokes - TaskJniUtils.EmptyHandleProvider.createHandle().
-
-
- - - - static - - long - -
-createHandleWithMultipleAssetFilesFromLibrary(Context context, TaskJniUtils.MultipleBuffersHandleProvider provider, String libName, String... filePaths) - -
Initializes the JNI and returns C++ handle by first loading the C++ library and then invokes - TaskJniUtils.MultipleBuffersHandleProvider.createHandle(ByteBuffer).
-
-
- - - - static - - long - - -
- - - - static - - long - -
-createProtoBaseOptionsHandleWithLegacyNumThreads(BaseOptions baseOptions, int legacyNumThreads) - -
-
- - - - static - - MappedByteBuffer - -
-loadMappedFile(Context context, String filePath) - -
Loads a file from the asset folder through memory mapping.
-
-
- - - - static - - void - -
-tryLoadLibrary(String libName) - -
Try loading a native library, if it's already loaded return directly.
-
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - -
-

Constants

- -
-

- - public - static - final - - - long - - -INVALID_POINTER -

-
-
-
-

-
-Constant Value: - - - 0 - - -
-
-
-
- - - - - - -
-

Public Methods

- -
-

- - public - static - - - - long - -createHandleFromFdAndOptions -(Context context, FdAndOptionsHandleProvider<T> provider, String libName, String filePath, T options) -

-
-
-
-
-

Initializes the JNI and returns C++ handle with file descriptor and options for task API.

-
-
Parameters
- - - - - - - - - - - - - - - - - - - - - -
contextthe Android app context
providerprovider to get C++ handle, usually returned from native call
libNamename of C++ lib to be loaded
filePathpath of the file to be loaded
optionsoptions to set up the task API, used by the provider
-
-
-
Returns
-
  • C++ handle as long
-
-
-
Throws
- - - - - -
IOExceptionIf model file fails to load. -
-
-
-
- -
-

- - public - static - - - - long - -createHandleFromLibrary -(TaskJniUtils.EmptyHandleProvider provider, String libName) -

-
-
-
-
-

Initializes the JNI and returns C++ handle by first loading the C++ library and then invokes - TaskJniUtils.EmptyHandleProvider.createHandle().

-
-
Parameters
- - - - - - - - - -
providerprovider to get C++ handle, usually returned from native call
libName
-
-
-
Returns
-
  • C++ handle as long -
-
-
-
- -
-

- - public - static - - - - long - -createHandleWithMultipleAssetFilesFromLibrary -(Context context, TaskJniUtils.MultipleBuffersHandleProvider provider, String libName, String... filePaths) -

-
-
-
-
-

Initializes the JNI and returns C++ handle by first loading the C++ library and then invokes - TaskJniUtils.MultipleBuffersHandleProvider.createHandle(ByteBuffer).

-
-
Parameters
- - - - - - - - - - - - - - - - - -
contextapp context
providerprovider to get C++ pointer, usually returned from native call
libNamename of C++ lib to load
filePathsfile paths to load
-
-
-
Returns
-
  • C++ pointer as long
-
-
-
Throws
- - - - - -
IOExceptionIf model file fails to load. -
-
-
-
- -
-

- - public - static - - - - long - -createProtoBaseOptionsHandle -(BaseOptions baseOptions) -

-
-
-
-
-

-
-
Parameters
- - - - - -
baseOptions
-
-
-
- -
-

- - public - static - - - - long - -createProtoBaseOptionsHandleWithLegacyNumThreads -(BaseOptions baseOptions, int legacyNumThreads) -

-
-
-
-
-

-
-
Parameters
- - - - - - - - - -
baseOptions
legacyNumThreads
-
-
-
- -
-

- - public - static - - - - MappedByteBuffer - -loadMappedFile -(Context context, String filePath) -

-
-
-
-
-

Loads a file from the asset folder through memory mapping.

-
-
Parameters
- - - - - - - - - -
contextApplication context to access assets.
filePathAsset path of the file.
-
-
-
Returns
-
  • the loaded memory mapped file.
-
-
-
Throws
- - - - - -
IOExceptionIf model file fails to load. -
-
-
-
- -
-

- - public - static - - - - void - -tryLoadLibrary -(String libName) -

-
-
-
-
-

Try loading a native library, if it's already loaded return directly.

-
-
Parameters
- - - - - -
libNamename of the lib -
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/core/package-summary.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/core/package-summary.html deleted file mode 100644 index 218386fa7d..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/core/package-summary.html +++ /dev/null @@ -1,85 +0,0 @@ - - - - - - - - - -org.tensorflow.lite.task.core - - - -
-
-
-
-
-
-
- -
-
-
-

Interfaces

-
- - - - - - - - - - - - - -
TaskJniUtils.EmptyHandleProviderSyntax sugar to get nativeHandle from empty param list. 
TaskJniUtils.FdAndOptionsHandleProvider<T>Syntax sugar to get nativeHandle from file descriptor and options. 
TaskJniUtils.MultipleBuffersHandleProviderSyntax sugar to get nativeHandle from an array of ByteBuffers. 
-
-

Classes

-
- - - - - - - - - - - - - - - - - - - - - - - - - -
BaseOptionsOptions to configure Task APIs in general. 
BaseOptions.BuilderBuilder for BaseOptions
BaseTaskApiBase class for Task API, provides shared logic to load/unload native libs to its C++ counterpart. 
ComputeSettingsOptions to configure how to accelerate the model inference using dedicated delegates. 
ComputeSettings.BuilderBuilder for ComputeSettings
TaskJniUtilsJNI utils for Task API. 
-
-

Enums

-
- - - - - -
ComputeSettings.DelegateTFLite accelerator delegate options. 
-
-
-
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/core/vision/ImageProcessingOptions.Builder.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/core/vision/ImageProcessingOptions.Builder.html deleted file mode 100644 index a5dd0289b8..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/core/vision/ImageProcessingOptions.Builder.html +++ /dev/null @@ -1,390 +0,0 @@ - - - - - - - - - -ImageProcessingOptions.Builder - - - -
-
-
-
-
- -
- public static abstract class - ImageProcessingOptions.Builder -
-
-
-
-

Builder for ImageProcessingOptions.

-
-
-
- -
-

Public Constructors

- - - - - -
- -
-Builder() - -
-
-
- -
-

Public Methods

- - - - - - - - - - - - - -
-ImageProcessingOptions - -
-build() - -
-
- abstract - - - - - ImageProcessingOptions.Builder - -
-setOrientation(ImageProcessingOptions.Orientation orientation) - -
Sets the orientation of the image.
-
-
- abstract - - - - - ImageProcessingOptions.Builder - -
-setRoi(Rect roi) - -
Sets the region of interest (ROI) of the image.
-
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -Builder -() -

-
-
-
-
-

-
-
-
- - - - -
-

Public Methods

- -
-

- - public - - - - - ImageProcessingOptions - -build -() -

-
-
-
-
-

-
-
- -
-

- - public - - - abstract - - ImageProcessingOptions.Builder - -setOrientation -(ImageProcessingOptions.Orientation orientation) -

-
-
-
-
-

Sets the orientation of the image. Defaults to ImageProcessingOptions.Orientation.TOP_LEFT. - -

Rotation will be applied accordingly so that inference is performed on an "upright" image. -

-
-
Parameters
- - - - - -
orientation
-
-
-
- -
-

- - public - - - abstract - - ImageProcessingOptions.Builder - -setRoi -(Rect roi) -

-
-
-
-
-

Sets the region of interest (ROI) of the image. Defaults to the entire image. - -

Cropping according to this region of interest is prepended to the pre-processing - operations. -

-
-
Parameters
- - - - - -
roi
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/core/vision/ImageProcessingOptions.Orientation.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/core/vision/ImageProcessingOptions.Orientation.html deleted file mode 100644 index 702fa536f6..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/core/vision/ImageProcessingOptions.Orientation.html +++ /dev/null @@ -1,559 +0,0 @@ - - - - - - - - - -ImageProcessingOptions.Orientation - - - -
-
-
-
-
- -
- public static final enum - ImageProcessingOptions.Orientation -
-
-
-
-

Orientation type that follows EXIF specification. - -

The name of each enum value defines the position of the 0th row and the 0th column of the - image content. See the EXIF orientation - documentation for details. -

-

-
-
- -
-

Inherited Methods

- - - -
-
- -
- - - - -
-

Enum Values

- -
-

- - public - static - final - - - ImageProcessingOptions.Orientation - - -BOTTOM_LEFT -

-
-
-
-

-
-
- -
-

- - public - static - final - - - ImageProcessingOptions.Orientation - - -BOTTOM_RIGHT -

-
-
-
-

-
-
- -
-

- - public - static - final - - - ImageProcessingOptions.Orientation - - -LEFT_BOTTOM -

-
-
-
-

-
-
- -
-

- - public - static - final - - - ImageProcessingOptions.Orientation - - -LEFT_TOP -

-
-
-
-

-
-
- -
-

- - public - static - final - - - ImageProcessingOptions.Orientation - - -RIGHT_BOTTOM -

-
-
-
-

-
-
- -
-

- - public - static - final - - - ImageProcessingOptions.Orientation - - -RIGHT_TOP -

-
-
-
-

-
-
- -
-

- - public - static - final - - - ImageProcessingOptions.Orientation - - -TOP_LEFT -

-
-
-
-

-
-
- -
-

- - public - static - final - - - ImageProcessingOptions.Orientation - - -TOP_RIGHT -

-
-
-
-

-
-
-
- - - - - - - - - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/core/vision/ImageProcessingOptions.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/core/vision/ImageProcessingOptions.html deleted file mode 100644 index 8ed760bfe1..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/core/vision/ImageProcessingOptions.html +++ /dev/null @@ -1,415 +0,0 @@ - - - - - - - - - -ImageProcessingOptions - - - -
-
-
-
-
- -
- public abstract class - ImageProcessingOptions -
-
-
-
-

Options to configure the image processing pipeline, which operates before inference. - -

The Task Library Vision API performs image preprocessing on the input image over the region of - interest, so that it fits model requirements (e.g. upright 224x224 RGB) and populate the - corresponding input tensor. This is performed by (in this order): - -

    -
  • cropping the frame buffer to the region of interest (which, in most cases, just covers the - entire input image), -
  • resizing it (with bilinear interpolation, aspect-ratio *not* preserved) to the dimensions - of the model input tensor, -
  • converting it to the colorspace of the input tensor (i.e. RGB, which is the only supported - colorspace for now), -
  • rotating it according to its ImageProcessingOptions.Orientation so that inference is performed on an - "upright" image. -
-

IMPORTANT: as a consequence of cropping occurring first, the provided region of interest is - expressed in the unrotated frame of reference coordinates system, i.e. in [0, - TensorImage.getWidth()) x [0, TensorImage.getHeight()), which are the dimensions of the - underlying image data before any orientation gets applied. If the region is out of these bounds, - the inference method, such as ImageClassifier.classify(MlImage), will return error. -

-

-
-
- -
-

Nested Classes

- - - - - - - - - - - -
- - - - - classImageProcessingOptions.BuilderBuilder for ImageProcessingOptions
- - - - - enumImageProcessingOptions.OrientationOrientation type that follows EXIF specification. 
-
- -
-

Public Constructors

- - - - - -
- - -
-
- -
-

Public Methods

- - - - - - - - - - - - - -
- - - - static - - ImageProcessingOptions.Builder - -
-builder() - -
-
- abstract - - - - - ImageProcessingOptions.Orientation - - -
- abstract - - - - - Rect - -
-getRoi() - -
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -ImageProcessingOptions -() -

-
-
-
-
-

-
-
-
- - - - -
-

Public Methods

- -
-

- - public - static - - - - ImageProcessingOptions.Builder - -builder -() -

-
-
-
-
-

-
-
- -
-

- - public - - - abstract - - ImageProcessingOptions.Orientation - -getOrientation -() -

-
-
-
-
-

-
-
- -
-

- - public - - - abstract - - Rect - -getRoi -() -

-
-
-
-
-

-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/core/vision/package-summary.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/core/vision/package-summary.html deleted file mode 100644 index 0f5c61f1f3..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/core/vision/package-summary.html +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - - - - -org.tensorflow.lite.task.core.vision - - - -
-
-
-
-
-
-
- -
-
-
-

Classes

-
- - - - - - - - - -
ImageProcessingOptionsOptions to configure the image processing pipeline, which operates before inference. 
ImageProcessingOptions.BuilderBuilder for ImageProcessingOptions
-
-

Enums

-
- - - - - -
ImageProcessingOptions.OrientationOrientation type that follows EXIF specification. 
-
-
-
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/gms/audio/TfLiteAudio.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/gms/audio/TfLiteAudio.html deleted file mode 100644 index 399cec1697..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/gms/audio/TfLiteAudio.html +++ /dev/null @@ -1,364 +0,0 @@ - - - - - - - - - -TfLiteAudio - - - -
-
-
-
-
- -
- public class - TfLiteAudio -
-
-
-
-

Entry point for the TensorFlow Lite (TFLite) Tasks Audio API provided by Google Play services. -

-
-
-
- -
-

Public Methods

- - - - - - - - - - - - - -
- - - - static - - - -
-initialize(Context context) - -
Initializes the TFLite Tasks Audio API.
-
-
- - - - static - - - -
-initialize(Context context, TfLiteInitializationOptions options) - -
Initializes the TFLite Tasks Audio API with the specified options.
-
-
- - - - static - - boolean - -
-isInitialized() - -
Returns whether the TFLite Tasks Audio API has already been successfully initialized.
-
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - - - - -
-

Public Methods

- -
-

- - public - static - - - - - -initialize -(Context context) -

-
-
-
-
-

Initializes the TFLite Tasks Audio API. TFLite Tasks Audio API methods should only be called - after the task returned by this method has successfully completed. - -

This method returns a Task&lt;Void&gt;, so you should wait for the task to be completed, - but the return value of the Task is irrelevant. -

-
-
Parameters
- - - - - -
context
-
-
-
- -
-

- - public - static - - - - - -initialize -(Context context, TfLiteInitializationOptions options) -

-
-
-
-
-

Initializes the TFLite Tasks Audio API with the specified options. TFLite Tasks Audio API - methods should only be called after the task returned by this method has successfully - completed. - -

This method returns a Task&lt;Void&gt;, so you should wait for the task to be completed, - but the return value of the Task is irrelevant. -

-
-
Parameters
- - - - - - - - - -
context
options
-
-
-
- -
-

- - public - static - - - - boolean - -isInitialized -() -

-
-
-
-
-

Returns whether the TFLite Tasks Audio API has already been successfully initialized.

-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/gms/audio/package-summary.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/gms/audio/package-summary.html deleted file mode 100644 index 7941b657fa..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/gms/audio/package-summary.html +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - -org.tensorflow.lite.task.gms.audio - - - -
-
-
-
-
-
-
- -
-
-
-

Classes

-
- - - - - -
TfLiteAudioEntry point for the TensorFlow Lite (TFLite) Tasks Audio API provided by Google Play services. 
-
-
-
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/gms/text/TfLiteText.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/gms/text/TfLiteText.html deleted file mode 100644 index c6df66a7cf..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/gms/text/TfLiteText.html +++ /dev/null @@ -1,362 +0,0 @@ - - - - - - - - - -TfLiteText - - - -
-
-
-
-
- -
- public class - TfLiteText -
-
-
-
-

Entry point for the TensorFlow Lite (TFLite) Tasks Text API provided by Google Play services.

-
-
-
- -
-

Public Methods

- - - - - - - - - - - - - -
- - - - static - - - -
-initialize(Context context) - -
Initializes the TFLite Tasks Text API.
-
-
- - - - static - - - -
-initialize(Context context, TfLiteInitializationOptions options) - -
Initializes the TFLite Tasks Text API with the specified options.
-
-
- - - - static - - boolean - -
-isInitialized() - -
Returns whether the TFLite Tasks Audio API has already been successfully initialized.
-
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - - - - -
-

Public Methods

- -
-

- - public - static - - - - - -initialize -(Context context) -

-
-
-
-
-

Initializes the TFLite Tasks Text API. TFLite Tasks Text API methods should only be called - after the task returned by this method has successfully completed. - -

This method returns a Task&lt;Void&gt;, so you should wait for the task to be completed, - but the return value of the Task is irrelevant. -

-
-
Parameters
- - - - - -
context
-
-
-
- -
-

- - public - static - - - - - -initialize -(Context context, TfLiteInitializationOptions options) -

-
-
-
-
-

Initializes the TFLite Tasks Text API with the specified options. TFLite Tasks Text API methods - should only be called after the task returned by this method has successfully completed. - -

This method returns a Task&lt;Void&gt;, so you should wait for the task to be completed, - but the return value of the Task is irrelevant. -

-
-
Parameters
- - - - - - - - - -
context
options
-
-
-
- -
-

- - public - static - - - - boolean - -isInitialized -() -

-
-
-
-
-

Returns whether the TFLite Tasks Audio API has already been successfully initialized.

-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/gms/text/package-summary.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/gms/text/package-summary.html deleted file mode 100644 index f16a80c7b3..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/gms/text/package-summary.html +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - -org.tensorflow.lite.task.gms.text - - - -
-
-
-
-
-
-
- -
-
-
-

Classes

-
- - - - - -
TfLiteTextEntry point for the TensorFlow Lite (TFLite) Tasks Text API provided by Google Play services. 
-
-
-
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/processor/NearestNeighbor.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/processor/NearestNeighbor.html deleted file mode 100644 index 957e5cb835..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/processor/NearestNeighbor.html +++ /dev/null @@ -1,337 +0,0 @@ - - - - - - - - - -NearestNeighbor - - - -
-
-
-
-
- -
- public abstract class - NearestNeighbor -
-
-
-
-

Represents the search result of a Searcher model.

-
-
-
- -
-

Public Constructors

- - - - - -
- - -
-
- -
-

Public Methods

- - - - - - - - - -
- abstract - - - - - float - -
-getDistance() - -
Gets the distance score indicating how confident the result is.
-
-
- abstract - - - - - ByteBuffer - -
-getMetadata() - -
Gets the user-defined metadata about the result.
-
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -NearestNeighbor -() -

-
-
-
-
-

-
-
-
- - - - -
-

Public Methods

- -
-

- - public - - - abstract - - float - -getDistance -() -

-
-
-
-
-

Gets the distance score indicating how confident the result is. Lower is better.

-
-
- -
-

- - public - - - abstract - - ByteBuffer - -getMetadata -() -

-
-
-
-
-

Gets the user-defined metadata about the result. This could be a label, a unique ID, a - serialized proto of some sort, etc. - -

Do not mutate the returned metadata. -

-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/processor/SearcherOptions.Builder.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/processor/SearcherOptions.Builder.html deleted file mode 100644 index 73f9a26da3..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/processor/SearcherOptions.Builder.html +++ /dev/null @@ -1,497 +0,0 @@ - - - - - - - - - -SearcherOptions.Builder - - - -
-
-
-
-
- -
- public static abstract class - SearcherOptions.Builder -
-
-
-
-

Builder for SearcherOptions.

-
-
-
- -
-

Public Constructors

- - - - - -
- -
-Builder() - -
-
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - - - - - -
- abstract - - - - - SearcherOptions - -
-build() - -
-
- abstract - - - - - SearcherOptions.Builder - -
-setIndexFile(File indexFile) - -
Sets the index file to search into.
-
-
- abstract - - - - - SearcherOptions.Builder - -
-setL2Normalize(boolean l2Normalize) - -
Sets whether to normalize the embedding feature vector with L2 norm.
-
-
- abstract - - - - - SearcherOptions.Builder - -
-setMaxResults(int maxResults) - -
Sets the maximum number of nearest neighbor results to return.
-
-
- abstract - - - - - SearcherOptions.Builder - -
-setQuantize(boolean quantize) - -
Sets whether the embedding should be quantized to bytes via scalar quantization.
-
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -Builder -() -

-
-
-
-
-

-
-
-
- - - - -
-

Public Methods

- -
-

- - public - - - abstract - - SearcherOptions - -build -() -

-
-
-
-
-

-
-
- -
-

- - public - - - abstract - - SearcherOptions.Builder - -setIndexFile -(File indexFile) -

-
-
-
-
-

Sets the index file to search into. - -

Required if the model does not come with an index file inside. Otherwise, it can be ignore - by setting to null. -

-
-
Parameters
- - - - - -
indexFile
-
-
-
- -
-

- - public - - - abstract - - SearcherOptions.Builder - -setL2Normalize -(boolean l2Normalize) -

-
-
-
-
-

Sets whether to normalize the embedding feature vector with L2 norm. Defaults to false. - -

Use this option only if the model does not already contain a native L2_NORMALIZATION - TFLite Op. In most cases, this is already the case and L2 norm is thus achieved through - TFLite inference. -

-
-
Parameters
- - - - - -
l2Normalize
-
-
-
- -
-

- - public - - - abstract - - SearcherOptions.Builder - -setMaxResults -(int maxResults) -

-
-
-
-
-

Sets the maximum number of nearest neighbor results to return. Defaults to 5

-
-
Parameters
- - - - - -
maxResults
-
-
-
- -
-

- - public - - - abstract - - SearcherOptions.Builder - -setQuantize -(boolean quantize) -

-
-
-
-
-

Sets whether the embedding should be quantized to bytes via scalar quantization. Defaults to - false. - -

Embeddings are implicitly assumed to be unit-norm and therefore any dimension is - guaranteed to have a value in [-1.0, 1.0]. Use the l2_normalize option if this is not - the case. -

-
-
Parameters
- - - - - -
quantize
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/processor/SearcherOptions.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/processor/SearcherOptions.html deleted file mode 100644 index 8ea76df3c1..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/processor/SearcherOptions.html +++ /dev/null @@ -1,458 +0,0 @@ - - - - - - - - - -SearcherOptions - - - -
-
-
-
-
- -
- public abstract class - SearcherOptions -
-
-
-
-

Options to configure Searcher API.

-
-
-
- -
-

Nested Classes

- - - - - - -
- - - - - classSearcherOptions.BuilderBuilder for SearcherOptions
-
- -
-

Public Constructors

- - - - - -
- - -
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - - - - - -
- - - - static - - SearcherOptions.Builder - -
-builder() - -
-
- abstract - - - - - File - -
-getIndexFile() - -
-
- abstract - - - - - boolean - - -
- abstract - - - - - int - -
-getMaxResults() - -
-
- abstract - - - - - boolean - -
-getQuantize() - -
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -SearcherOptions -() -

-
-
-
-
-

-
-
-
- - - - -
-

Public Methods

- -
-

- - public - static - - - - SearcherOptions.Builder - -builder -() -

-
-
-
-
-

-
-
- -
-

- - public - - - abstract - - File - -getIndexFile -() -

-
-
-
-
-

-
-
- -
-

- - public - - - abstract - - boolean - -getL2Normalize -() -

-
-
-
-
-

-
-
- -
-

- - public - - - abstract - - int - -getMaxResults -() -

-
-
-
-
-

-
-
- -
-

- - public - - - abstract - - boolean - -getQuantize -() -

-
-
-
-
-

-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/processor/package-summary.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/processor/package-summary.html deleted file mode 100644 index c2b0671cd1..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/processor/package-summary.html +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - -org.tensorflow.lite.task.processor - - - -
-
-
-
-
-
-
- -
-
-
-

Classes

-
- - - - - - - - - - - - - -
NearestNeighborRepresents the search result of a Searcher model. 
SearcherOptionsOptions to configure Searcher API. 
SearcherOptions.BuilderBuilder for SearcherOptions
-
-
-
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/bertclu/BertCluAnnotator.BertCluAnnotatorOptions.Builder.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/bertclu/BertCluAnnotator.BertCluAnnotatorOptions.Builder.html deleted file mode 100644 index 151e3e5d41..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/bertclu/BertCluAnnotator.BertCluAnnotatorOptions.Builder.html +++ /dev/null @@ -1,571 +0,0 @@ - - - - - - - - - -BertCluAnnotator.BertCluAnnotatorOptions.Builder - - - -
-
-
-
-
- -
- public static abstract class - BertCluAnnotator.BertCluAnnotatorOptions.Builder -
-
-
- -
-
- -
-

Public Constructors

- - - - - -
- -
-Builder() - -
-
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- abstract - - - - - BertCluAnnotator.BertCluAnnotatorOptions - -
-build() - -
-
- abstract - - - - - BertCluAnnotator.BertCluAnnotatorOptions.Builder - -
-setBaseOptions(BaseOptions baseOptions) - -
Sets the general options to configure Task APIs, such as accelerators.
-
-
- abstract - - - - - BertCluAnnotator.BertCluAnnotatorOptions.Builder - -
-setCategoricalSlotThreshold(float categoricalSlotThreshold) - -
-
- abstract - - - - - BertCluAnnotator.BertCluAnnotatorOptions.Builder - -
-setDomainThreshold(float domainThreshold) - -
-
- abstract - - - - - BertCluAnnotator.BertCluAnnotatorOptions.Builder - -
-setIntentThreshold(float intentThreshold) - -
-
- abstract - - - - - BertCluAnnotator.BertCluAnnotatorOptions.Builder - -
-setMaxHistoryTurns(int maxHistoryTurns) - -
-
- abstract - - - - - BertCluAnnotator.BertCluAnnotatorOptions.Builder - -
-setMentionedSlotThreshold(float mentionedSlotThreshold) - -
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -Builder -() -

-
-
-
-
-

-
-
-
- - - - -
-

Public Methods

- -
-

- - public - - - abstract - - BertCluAnnotator.BertCluAnnotatorOptions - -build -() -

-
-
-
-
-

-
-
- -
-

- - public - - - abstract - - BertCluAnnotator.BertCluAnnotatorOptions.Builder - -setBaseOptions -(BaseOptions baseOptions) -

-
-
-
-
-

Sets the general options to configure Task APIs, such as accelerators.

-
-
Parameters
- - - - - -
baseOptions
-
-
-
- -
-

- - public - - - abstract - - BertCluAnnotator.BertCluAnnotatorOptions.Builder - -setCategoricalSlotThreshold -(float categoricalSlotThreshold) -

-
-
-
-
-

-
-
Parameters
- - - - - -
categoricalSlotThreshold
-
-
-
- -
-

- - public - - - abstract - - BertCluAnnotator.BertCluAnnotatorOptions.Builder - -setDomainThreshold -(float domainThreshold) -

-
-
-
-
-

-
-
Parameters
- - - - - -
domainThreshold
-
-
-
- -
-

- - public - - - abstract - - BertCluAnnotator.BertCluAnnotatorOptions.Builder - -setIntentThreshold -(float intentThreshold) -

-
-
-
-
-

-
-
Parameters
- - - - - -
intentThreshold
-
-
-
- -
-

- - public - - - abstract - - BertCluAnnotator.BertCluAnnotatorOptions.Builder - -setMaxHistoryTurns -(int maxHistoryTurns) -

-
-
-
-
-

-
-
Parameters
- - - - - -
maxHistoryTurns
-
-
-
- -
-

- - public - - - abstract - - BertCluAnnotator.BertCluAnnotatorOptions.Builder - -setMentionedSlotThreshold -(float mentionedSlotThreshold) -

-
-
-
-
-

-
-
Parameters
- - - - - -
mentionedSlotThreshold
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/bertclu/BertCluAnnotator.BertCluAnnotatorOptions.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/bertclu/BertCluAnnotator.BertCluAnnotatorOptions.html deleted file mode 100644 index 2c4f4e4c40..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/bertclu/BertCluAnnotator.BertCluAnnotatorOptions.html +++ /dev/null @@ -1,310 +0,0 @@ - - - - - - - - - -BertCluAnnotator.BertCluAnnotatorOptions - - - -
-
-
-
-
- -
- public static abstract class - BertCluAnnotator.BertCluAnnotatorOptions -
-
-
-
-

Options for setting up a BertCluAnnotator.

-
-
-
- -
-

Nested Classes

- - - - - - -
- - - - - classBertCluAnnotator.BertCluAnnotatorOptions.BuilderBuilder for BertCluAnnotator.BertCluAnnotatorOptions
-
- -
-

Public Constructors

- - - - - -
- - -
-
- -
-

Public Methods

- - - - - -
- - - - static - - BertCluAnnotator.BertCluAnnotatorOptions.Builder - -
-builder() - -
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -BertCluAnnotatorOptions -() -

-
-
-
-
-

-
-
-
- - - - -
-

Public Methods

- -
-

- - public - static - - - - BertCluAnnotator.BertCluAnnotatorOptions.Builder - -builder -() -

-
-
-
-
-

-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/bertclu/BertCluAnnotator.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/bertclu/BertCluAnnotator.html deleted file mode 100644 index 2e1211a08c..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/bertclu/BertCluAnnotator.html +++ /dev/null @@ -1,557 +0,0 @@ - - - - - - - - - -BertCluAnnotator - - - -
-
-
-
-
- -
- public class - BertCluAnnotator -
-
-
-
-

API for BERT-based Conversational Language Understanding. - -

The API expects a Bert based TFLite model with metadata populated. The metadata should contain - the following information: - -

    -
  • input_process_units for Wordpiece Tokenizer. -
  • 3 input tensors with names "ids", "mask" and "segment_ids". -
  • 6 output tensors with names "domain_task/names", "domain_task/scores", "intent_task/names", - "intent_task/scores", "slot_task/names", and "slot_task/scores". -
-

-

-
-
- -
-

Nested Classes

- - - - - - -
- - - - - classBertCluAnnotator.BertCluAnnotatorOptionsOptions for setting up a BertCluAnnotator
-
- -
-

Public Methods

- - - - - - - - - - - - - -
-CluResponse - -
-annotate(CluRequest cluRequest) - -
Annotates the input utterances.
-
-
- - - - static - - BertCluAnnotator - - -
- - - - static - - BertCluAnnotator - -
-createFromFile(Context context, String modelPath) - -
Creates a BertCluAnnotator instance from a filepath.
-
-
-
- -
-

Inherited Methods

- - - - -
-
- -
- - - - - - - - - - -
-

Public Methods

- -
-

- - public - - - - - CluResponse - -annotate -(CluRequest cluRequest) -

-
-
-
-
-

Annotates the input utterances.

-
-
Parameters
- - - - - -
cluRequestinput dialogue encoded in a CluRequest
-
-
-
Returns
-
  • domain, intent, and slot annotations encoded in a CluResponse -
-
-
-
- -
-

- - public - static - - - - BertCluAnnotator - -createFromBufferAndOptions -(ByteBuffer modelBuffer, BertCluAnnotator.BertCluAnnotatorOptions options) -

-
-
-
-
-

Creates a BertCluAnnotator instance with a model buffer and BertCluAnnotator.BertCluAnnotatorOptions.

-
-
Parameters
- - - - - - - - - -
modelBuffera direct ByteBuffer or a MappedByteBuffer of the annotator - model
options
-
-
-
Throws
- - - - - - - - - - - - - -
IllegalArgumentExceptionif the model buffer is not a direct ByteBuffer or a - MappedByteBuffer
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error -
-
-
-
- -
-

- - public - static - - - - BertCluAnnotator - -createFromFile -(Context context, String modelPath) -

-
-
-
-
-

Creates a BertCluAnnotator instance from a filepath.

-
-
Parameters
- - - - - - - - - -
context
modelPathpath of the annotator model
-
-
-
Throws
- - - - - - - - - - - - - - - - - -
IOExceptionif an I/O error occurs when loading the tflite model
IllegalArgumentExceptionif an argument is invalid
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error -
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/bertclu/CluRequest.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/bertclu/CluRequest.html deleted file mode 100644 index eb84f5a132..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/bertclu/CluRequest.html +++ /dev/null @@ -1,340 +0,0 @@ - - - - - - - - - -CluRequest - - - -
-
-
-
-
- -
- public abstract class - CluRequest -
-
-
-
-

The input dialogue history for the BertCluAnnotator.

-
-
-
- -
-

Public Constructors

- - - - - -
- -
-CluRequest() - -
-
-
- -
-

Public Methods

- - - - - - - - - -
- - - - static - - CluRequest - -
-create(List<String> utterances) - -
-
- abstract - - - - - List<String> - -
-getUtterances() - -
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -CluRequest -() -

-
-
-
-
-

-
-
-
- - - - -
-

Public Methods

- -
-

- - public - static - - - - CluRequest - -create -(List<String> utterances) -

-
-
-
-
-

-
-
Parameters
- - - - - -
utterances
-
-
-
- -
-

- - public - - - abstract - - List<String> - -getUtterances -() -

-
-
-
-
-

-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/bertclu/CluResponse.CategoricalSlot.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/bertclu/CluResponse.CategoricalSlot.html deleted file mode 100644 index 9b6b1d5648..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/bertclu/CluResponse.CategoricalSlot.html +++ /dev/null @@ -1,331 +0,0 @@ - - - - - - - - - -CluResponse.CategoricalSlot - - - -
-
-
-
-
- -
- public static abstract class - CluResponse.CategoricalSlot -
-
-
-
-

Represents a categorical slot whose values are within a finite set.

-
-
-
- -
-

Public Constructors

- - - - - -
- - -
-
- -
-

Public Methods

- - - - - - - - - -
- abstract - - - - - Category - -
-getPrediction() - -
-
- abstract - - - - - String - -
-getSlot() - -
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -CategoricalSlot -() -

-
-
-
-
-

-
-
-
- - - - -
-

Public Methods

- -
-

- - public - - - abstract - - Category - -getPrediction -() -

-
-
-
-
-

-
-
- -
-

- - public - - - abstract - - String - -getSlot -() -

-
-
-
-
-

-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/bertclu/CluResponse.Mention.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/bertclu/CluResponse.Mention.html deleted file mode 100644 index 6dcdfdb666..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/bertclu/CluResponse.Mention.html +++ /dev/null @@ -1,405 +0,0 @@ - - - - - - - - - -CluResponse.Mention - - - -
-
-
-
-
- -
- public static abstract class - CluResponse.Mention -
-
-
-
-

A single mention.

-
-
-
- -
-

Public Constructors

- - - - - -
- -
-Mention() - -
-
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - -
- abstract - - - - - int - -
-getEnd() - -
-
- abstract - - - - - float - -
-getScore() - -
-
- abstract - - - - - int - -
-getStart() - -
-
- abstract - - - - - String - -
-getValue() - -
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -Mention -() -

-
-
-
-
-

-
-
-
- - - - -
-

Public Methods

- -
-

- - public - - - abstract - - int - -getEnd -() -

-
-
-
-
-

-
-
- -
-

- - public - - - abstract - - float - -getScore -() -

-
-
-
-
-

-
-
- -
-

- - public - - - abstract - - int - -getStart -() -

-
-
-
-
-

-
-
- -
-

- - public - - - abstract - - String - -getValue -() -

-
-
-
-
-

-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/bertclu/CluResponse.MentionedSlot.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/bertclu/CluResponse.MentionedSlot.html deleted file mode 100644 index 1b9351c9b6..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/bertclu/CluResponse.MentionedSlot.html +++ /dev/null @@ -1,331 +0,0 @@ - - - - - - - - - -CluResponse.MentionedSlot - - - -
-
-
-
-
- -
- public static abstract class - CluResponse.MentionedSlot -
-
-
-
-

Represents a mentioned slot whose values are open text extracted from the input text.

-
-
-
- -
-

Public Constructors

- - - - - -
- -
-MentionedSlot() - -
-
-
- -
-

Public Methods

- - - - - - - - - -
- abstract - - - - - CluResponse.Mention - -
-getMention() - -
-
- abstract - - - - - String - -
-getSlot() - -
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -MentionedSlot -() -

-
-
-
-
-

-
-
-
- - - - -
-

Public Methods

- -
-

- - public - - - abstract - - CluResponse.Mention - -getMention -() -

-
-
-
-
-

-
-
- -
-

- - public - - - abstract - - String - -getSlot -() -

-
-
-
-
-

-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/bertclu/CluResponse.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/bertclu/CluResponse.html deleted file mode 100644 index cfde41bccb..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/bertclu/CluResponse.html +++ /dev/null @@ -1,441 +0,0 @@ - - - - - - - - - -CluResponse - - - -
-
-
-
-
- -
- public abstract class - CluResponse -
-
-
-
-

The output domain, intent, and slot information for the BertCluAnnotator.

-
-
-
- -
-

Nested Classes

- - - - - - - - - - - - - - - - -
- - - - - classCluResponse.CategoricalSlotRepresents a categorical slot whose values are within a finite set. 
- - - - - classCluResponse.MentionA single mention. 
- - - - - classCluResponse.MentionedSlotRepresents a mentioned slot whose values are open text extracted from the input text. 
-
- -
-

Public Constructors

- - - - - -
- -
-CluResponse() - -
-
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - -
- abstract - - - - - List<CluResponse.CategoricalSlot> - - -
- abstract - - - - - List<Category> - -
-getDomains() - -
-
- abstract - - - - - List<Category> - -
-getIntents() - -
-
- abstract - - - - - List<CluResponse.MentionedSlot> - - -
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -CluResponse -() -

-
-
-
-
-

-
-
-
- - - - -
-

Public Methods

- -
-

- - public - - - abstract - - List<CluResponse.CategoricalSlot> - -getCategoricalSlots -() -

-
-
-
-
-

-
-
- -
-

- - public - - - abstract - - List<Category> - -getDomains -() -

-
-
-
-
-

-
-
- -
-

- - public - - - abstract - - List<Category> - -getIntents -() -

-
-
-
-
-

-
-
- -
-

- - public - - - abstract - - List<CluResponse.MentionedSlot> - -getMentionedSlots -() -

-
-
-
-
-

-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/bertclu/package-summary.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/bertclu/package-summary.html deleted file mode 100644 index 74bb16af32..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/bertclu/package-summary.html +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - - - -org.tensorflow.lite.task.text.bertclu - - - -
-
-
-
-
-
-
- -
-
-
-

Classes

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
BertCluAnnotatorAPI for BERT-based Conversational Language Understanding. 
BertCluAnnotator.BertCluAnnotatorOptionsOptions for setting up a BertCluAnnotator
BertCluAnnotator.BertCluAnnotatorOptions.BuilderBuilder for BertCluAnnotator.BertCluAnnotatorOptions
CluRequestThe input dialogue history for the BertCluAnnotator
CluResponseThe output domain, intent, and slot information for the BertCluAnnotator
CluResponse.CategoricalSlotRepresents a categorical slot whose values are within a finite set. 
CluResponse.MentionA single mention. 
CluResponse.MentionedSlotRepresents a mentioned slot whose values are open text extracted from the input text. 
-
-
-
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/nlclassifier/BertNLClassifier.BertNLClassifierOptions.Builder.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/nlclassifier/BertNLClassifier.BertNLClassifierOptions.Builder.html deleted file mode 100644 index adb3451bc9..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/nlclassifier/BertNLClassifier.BertNLClassifierOptions.Builder.html +++ /dev/null @@ -1,398 +0,0 @@ - - - - - - - - - -BertNLClassifier.BertNLClassifierOptions.Builder - - - -
-
-
-
-
- -
- public static abstract class - BertNLClassifier.BertNLClassifierOptions.Builder -
-
-
- -
-
- -
-

Public Constructors

- - - - - -
- -
-Builder() - -
-
-
- -
-

Public Methods

- - - - - - - - - - - - - -
- abstract - - - - - BertNLClassifier.BertNLClassifierOptions - -
-build() - -
-
- abstract - - - - - BertNLClassifier.BertNLClassifierOptions.Builder - -
-setBaseOptions(BaseOptions baseOptions) - -
Sets the general options to configure Task APIs, such as accelerators.
-
-
- abstract - - - - - BertNLClassifier.BertNLClassifierOptions.Builder - -
-setMaxSeqLen(int value) - -
- This method is deprecated. maximum sequence length is now read from the model (i.e. input tensor size) - automatically -
-
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -Builder -() -

-
-
-
-
-

-
-
-
- - - - -
-

Public Methods

- -
-

- - public - - - abstract - - BertNLClassifier.BertNLClassifierOptions - -build -() -

-
-
-
-
-

-
-
- -
-

- - public - - - abstract - - BertNLClassifier.BertNLClassifierOptions.Builder - -setBaseOptions -(BaseOptions baseOptions) -

-
-
-
-
-

Sets the general options to configure Task APIs, such as accelerators.

-
-
Parameters
- - - - - -
baseOptions
-
-
-
- -
-

- - public - - - abstract - - BertNLClassifier.BertNLClassifierOptions.Builder - -setMaxSeqLen -(int value) -

-
-
-
-
-

-

- - This method is deprecated.
maximum sequence length is now read from the model (i.e. input tensor size) - automatically - -

-

Set the maximum sequence length.

-
-
Parameters
- - - - - -
value
-
-

-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/nlclassifier/BertNLClassifier.BertNLClassifierOptions.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/nlclassifier/BertNLClassifier.BertNLClassifierOptions.html deleted file mode 100644 index 5ee0f5338e..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/nlclassifier/BertNLClassifier.BertNLClassifierOptions.html +++ /dev/null @@ -1,310 +0,0 @@ - - - - - - - - - -BertNLClassifier.BertNLClassifierOptions - - - -
-
-
-
-
- -
- public static abstract class - BertNLClassifier.BertNLClassifierOptions -
-
-
-
-

Options to configure BertNLClassifier.

-
-
-
- -
-

Nested Classes

- - - - - - -
- - - - - classBertNLClassifier.BertNLClassifierOptions.BuilderBuilder for BertNLClassifier.BertNLClassifierOptions
-
- -
-

Public Constructors

- - - - - -
- - -
-
- -
-

Public Methods

- - - - - -
- - - - static - - BertNLClassifier.BertNLClassifierOptions.Builder - -
-builder() - -
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -BertNLClassifierOptions -() -

-
-
-
-
-

-
-
-
- - - - -
-

Public Methods

- -
-

- - public - static - - - - BertNLClassifier.BertNLClassifierOptions.Builder - -builder -() -

-
-
-
-
-

-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/nlclassifier/BertNLClassifier.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/nlclassifier/BertNLClassifier.html deleted file mode 100644 index 0f292c23c9..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/nlclassifier/BertNLClassifier.html +++ /dev/null @@ -1,866 +0,0 @@ - - - - - - - - - -BertNLClassifier - - - -
-
-
-
-
- -
- public class - BertNLClassifier -
-
-
-
-

Classifier API for NLClassification tasks with Bert models, categorizes string into different - classes. The API expects a Bert based TFLite model with metadata populated. - -

The metadata should contain the following information: - -

    -
  • 1 input_process_unit for Wordpiece/Sentencepiece Tokenizer. -
  • 3 input tensors with names "ids", "mask" and "segment_ids". -
  • 1 output tensor of type float32[1, 2], with a optionally attached label file. If a label - file is attached, the file should be a plain text file with one label per line, the number - of labels should match the number of categories the model outputs. -
-

-

-
-
- -
-

Nested Classes

- - - - - - -
- - - - - classBertNLClassifier.BertNLClassifierOptionsOptions to configure BertNLClassifier. 
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-List<Category> - -
-classify(String text) - -
Performs classification on a string input, returns classified Categorys.
-
-
- - - - static - - BertNLClassifier - -
-createFromBuffer(ByteBuffer modelBuffer) - -
Creates BertNLClassifier with a model buffer and default BertNLClassifier.BertNLClassifierOptions.
-
-
- - - - static - - BertNLClassifier - - -
- - - - static - - BertNLClassifier - -
-createFromFile(Context context, String modelPath) - -
Creates BertNLClassifier from a model file with metadata and default BertNLClassifier.BertNLClassifierOptions.
-
-
- - - - static - - BertNLClassifier - -
-createFromFile(File modelFile) - -
Creates BertNLClassifier from a File object with metadata and default BertNLClassifier.BertNLClassifierOptions.
-
-
- - - - static - - BertNLClassifier - - -
- - - - static - - BertNLClassifier - -
-createFromFileAndOptions(Context context, String modelPath, BertNLClassifier.BertNLClassifierOptions options) - -
Creates BertNLClassifier from a model file with metadata and BertNLClassifier.BertNLClassifierOptions.
-
-
-
- -
-

Inherited Methods

- - - - -
-
- -
- - - - - - - - - - -
-

Public Methods

- -
-

- - public - - - - - List<Category> - -classify -(String text) -

-
-
-
-
-

Performs classification on a string input, returns classified Categorys.

-
-
Parameters
- - - - - -
textinput text to the model.
-
-
-
Returns
-
  • A list of Category results. -
-
-
-
- -
-

- - public - static - - - - BertNLClassifier - -createFromBuffer -(ByteBuffer modelBuffer) -

-
-
-
-
-

Creates BertNLClassifier with a model buffer and default BertNLClassifier.BertNLClassifierOptions.

-
-
Parameters
- - - - - -
modelBuffera direct ByteBuffer or a MappedByteBuffer of the model
-
-
-
Returns
- -
-
-
Throws
- - - - - - - - - - - - - -
IllegalArgumentExceptionif the model buffer is not a direct ByteBuffer or a - MappedByteBuffer
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error -
-
-
-
- -
-

- - public - static - - - - BertNLClassifier - -createFromBufferAndOptions -(ByteBuffer modelBuffer, BertNLClassifier.BertNLClassifierOptions options) -

-
-
-
-
- -
-
Parameters
- - - - - - - - - -
modelBuffera direct ByteBuffer or a MappedByteBuffer of the model
optionsto configure the classifier
-
-
-
Returns
- -
-
-
Throws
- - - - - - - - - - - - - -
IllegalArgumentExceptionif the model buffer is not a direct ByteBuffer or a - MappedByteBuffer
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error -
-
-
-
- -
-

- - public - static - - - - BertNLClassifier - -createFromFile -(Context context, String modelPath) -

-
-
-
-
-

Creates BertNLClassifier from a model file with metadata and default BertNLClassifier.BertNLClassifierOptions.

-
-
Parameters
- - - - - - - - - -
contextAndroid context
modelPathPath to the classification model
-
-
-
Returns
- -
-
-
Throws
- - - - - - - - - - - - - - - - - -
IOExceptionIf model file fails to load
IllegalArgumentExceptionif an argument is invalid
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error -
-
-
-
- -
-

- - public - static - - - - BertNLClassifier - -createFromFile -(File modelFile) -

-
-
-
-
-

Creates BertNLClassifier from a File object with metadata and default BertNLClassifier.BertNLClassifierOptions.

-
-
Parameters
- - - - - -
modelFileThe classification model File instance
-
-
-
Returns
- -
-
-
Throws
- - - - - - - - - - - - - - - - - -
IOExceptionIf model file fails to load
IllegalArgumentExceptionif an argument is invalid
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error -
-
-
-
- -
-

- - public - static - - - - BertNLClassifier - -createFromFileAndOptions -(File modelFile, BertNLClassifier.BertNLClassifierOptions options) -

-
-
-
-
-

Creates BertNLClassifier from a File object with metadata and BertNLClassifier.BertNLClassifierOptions.

-
-
Parameters
- - - - - - - - - -
modelFileThe classification model File instance
optionsto configure the classifier
-
-
-
Returns
- -
-
-
Throws
- - - - - - - - - - - - - - - - - -
IOExceptionIf model file fails to load
IllegalArgumentExceptionif an argument is invalid
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error -
-
-
-
- -
-

- - public - static - - - - BertNLClassifier - -createFromFileAndOptions -(Context context, String modelPath, BertNLClassifier.BertNLClassifierOptions options) -

-
-
-
-
-

Creates BertNLClassifier from a model file with metadata and BertNLClassifier.BertNLClassifierOptions.

-
-
Parameters
- - - - - - - - - - - - - -
contextAndroid context.
modelPathPath to the classification model
optionsto configure the classifier
-
-
-
Returns
- -
-
-
Throws
- - - - - - - - - - - - - - - - - -
IOExceptionIf model file fails to load
IllegalArgumentExceptionif an argument is invalid
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error -
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/nlclassifier/NLClassifier.NLClassifierOptions.Builder.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/nlclassifier/NLClassifier.NLClassifierOptions.Builder.html deleted file mode 100644 index 075ab81ab1..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/nlclassifier/NLClassifier.NLClassifierOptions.Builder.html +++ /dev/null @@ -1,664 +0,0 @@ - - - - - - - - - -NLClassifier.NLClassifierOptions.Builder - - - -
-
-
-
-
- -
- public static abstract class - NLClassifier.NLClassifierOptions.Builder -
-
-
- -
-
- -
-

Public Constructors

- - - - - -
- -
-Builder() - -
-
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- abstract - - - - - NLClassifier.NLClassifierOptions - -
-build() - -
-
- abstract - - - - - NLClassifier.NLClassifierOptions.Builder - -
-setBaseOptions(BaseOptions baseOptions) - -
Sets the general options to configure Task APIs, such as accelerators.
-
-
- abstract - - - - - NLClassifier.NLClassifierOptions.Builder - -
-setInputTensorIndex(int inputTensorIndex) - -
Set the index of the input text tensor among all input tensors, if the model has multiple - inputs.
-
-
- abstract - - - - - NLClassifier.NLClassifierOptions.Builder - -
-setInputTensorName(String inputTensorName) - -
Set the name of the input text tensor, if the model has multiple inputs.
-
-
- abstract - - - - - NLClassifier.NLClassifierOptions.Builder - -
-setOutputLabelTensorIndex(int outputLabelTensorIndex) - -
Set the index of the optional output label tensor among all output tensors, if the model - has multiple outputs.
-
-
- abstract - - - - - NLClassifier.NLClassifierOptions.Builder - -
-setOutputLabelTensorName(String outputLabelTensorName) - -
Set the name of the output label tensor, if the model has multiple outputs.
-
-
- abstract - - - - - NLClassifier.NLClassifierOptions.Builder - -
-setOutputScoreTensorIndex(int outputScoreTensorIndex) - -
Set the index of the output score tensor among all output tensors, if the model has - multiple outputs.
-
-
- abstract - - - - - NLClassifier.NLClassifierOptions.Builder - -
-setOutputScoreTensorName(String outputScoreTensorName) - -
Set the name of the output score tensor, if the model has multiple outputs.
-
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -Builder -() -

-
-
-
-
-

-
-
-
- - - - -
-

Public Methods

- -
-

- - public - - - abstract - - NLClassifier.NLClassifierOptions - -build -() -

-
-
-
-
-

-
-
- -
-

- - public - - - abstract - - NLClassifier.NLClassifierOptions.Builder - -setBaseOptions -(BaseOptions baseOptions) -

-
-
-
-
-

Sets the general options to configure Task APIs, such as accelerators.

-
-
Parameters
- - - - - -
baseOptions
-
-
-
- -
-

- - public - - - abstract - - NLClassifier.NLClassifierOptions.Builder - -setInputTensorIndex -(int inputTensorIndex) -

-
-
-
-
-

Set the index of the input text tensor among all input tensors, if the model has multiple - inputs. Only the input tensor specified will be used for inference; other input tensors - will be ignored. Dafualt to 0. - -

See the section, Configure the input/output tensors for NLClassifier, for more details. -

-
-
Parameters
- - - - - -
inputTensorIndex
-
-
-
- -
-

- - public - - - abstract - - NLClassifier.NLClassifierOptions.Builder - -setInputTensorName -(String inputTensorName) -

-
-
-
-
-

Set the name of the input text tensor, if the model has multiple inputs. Only the input - tensor specified will be used for inference; other input tensors will be ignored. Dafualt - to "INPUT". - -

See the section, Configure the input/output tensors for NLClassifier, for more details. -

-
-
Parameters
- - - - - -
inputTensorName
-
-
-
- -
-

- - public - - - abstract - - NLClassifier.NLClassifierOptions.Builder - -setOutputLabelTensorIndex -(int outputLabelTensorIndex) -

-
-
-
-
-

Set the index of the optional output label tensor among all output tensors, if the model - has multiple outputs. - -

See the document above outputLabelTensorName for more information about what the - output label tensor is. - -

See the section, Configure the input/output tensors for NLClassifier, for more details. - -

outputLabelTensorIndex dafualts to -1, meaning to disable the output label - tensor. -

-
-
Parameters
- - - - - -
outputLabelTensorIndex
-
-
-
- -
-

- - public - - - abstract - - NLClassifier.NLClassifierOptions.Builder - -setOutputLabelTensorName -(String outputLabelTensorName) -

-
-
-
-
-

Set the name of the output label tensor, if the model has multiple outputs. Dafualt to - "OUTPUT_LABEL". - -

See the section, Configure the input/output tensors for NLClassifier, for more details. - -

By default, label file should be packed with the output score tensor through Model - Metadata. See the MetadataWriter - for NLClassifier. NLClassifier reads and parses labels from the label file - automatically. However, some models may output a specific label tensor instead. In this - case, NLClassifier reads labels from the output label tensor. -

-
-
Parameters
- - - - - -
outputLabelTensorName
-
-
-
- -
-

- - public - - - abstract - - NLClassifier.NLClassifierOptions.Builder - -setOutputScoreTensorIndex -(int outputScoreTensorIndex) -

-
-
-
-
-

Set the index of the output score tensor among all output tensors, if the model has - multiple outputs. Dafualt to 0. - -

See the section, Configure the input/output tensors for NLClassifier, for more details. -

-
-
Parameters
- - - - - -
outputScoreTensorIndex
-
-
-
- -
-

- - public - - - abstract - - NLClassifier.NLClassifierOptions.Builder - -setOutputScoreTensorName -(String outputScoreTensorName) -

-
-
-
-
-

Set the name of the output score tensor, if the model has multiple outputs. Dafualt to - "OUTPUT_SCORE". - -

See the section, Configure the input/output tensors for NLClassifier, for more details. -

-
-
Parameters
- - - - - -
outputScoreTensorName
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/nlclassifier/NLClassifier.NLClassifierOptions.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/nlclassifier/NLClassifier.NLClassifierOptions.html deleted file mode 100644 index 2fe365e39f..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/nlclassifier/NLClassifier.NLClassifierOptions.html +++ /dev/null @@ -1,310 +0,0 @@ - - - - - - - - - -NLClassifier.NLClassifierOptions - - - -
-
-
-
-
- -
- public static abstract class - NLClassifier.NLClassifierOptions -
-
-
-
-

Options to identify input and output tensors of the model.

-
-
-
- -
-

Nested Classes

- - - - - - -
- - - - - classNLClassifier.NLClassifierOptions.BuilderBuilder for NLClassifier.NLClassifierOptions
-
- -
-

Public Constructors

- - - - - -
- - -
-
- -
-

Public Methods

- - - - - -
- - - - static - - NLClassifier.NLClassifierOptions.Builder - -
-builder() - -
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -NLClassifierOptions -() -

-
-
-
-
-

-
-
-
- - - - -
-

Public Methods

- -
-

- - public - static - - - - NLClassifier.NLClassifierOptions.Builder - -builder -() -

-
-
-
-
-

-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/nlclassifier/NLClassifier.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/nlclassifier/NLClassifier.html deleted file mode 100644 index 526214fd50..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/nlclassifier/NLClassifier.html +++ /dev/null @@ -1,817 +0,0 @@ - - - - - - - - - -NLClassifier - - - -
-
-
-
-
- -
- public class - NLClassifier -
-
-
-
-

Classifier API for natural language classification tasks, categorizes string into different - classes. - -

The API expects a TFLite model with the following input/output tensor: - -

    -
  • Input tensor (kTfLiteString) -
      -
    • input of the model, accepts a string. -
    -
  • Output score tensor - (kTfLiteUInt8/kTfLiteInt8/kTfLiteInt16/kTfLiteFloat32/kTfLiteFloat64/kTfLiteBool) -
      -
    • output scores for each class, if type is one of the Int types, dequantize it, if it - is Bool type, convert the values to 0.0 and 1.0 respectively. -
    • can have an optional associated file in metadata for labels, the file should be a - plain text file with one label per line, the number of labels should match the number - of categories the model outputs. Output label tensor: optional (kTfLiteString) - - output classname for each class, should be of the same length with scores. If this - tensor is not present, the API uses score indices as classnames. - will be ignored if - output score tensor already has an associated label file. -
    -
  • Optional Output label tensor (kTfLiteString/kTfLiteInt32) -
      -
    • output classname for each class, should be of the same length with scores. If this - tensor is not present, the API uses score indices as classnames. -
    • will be ignored if output score tensor already has an associated labe file. -
    -
-

By default the API tries to find the input/output tensors with default configurations in - NLClassifier.NLClassifierOptions, with tensor name prioritized over tensor index. The option is - configurable for different TFLite models. -

-

-
-
- -
-

Nested Classes

- - - - - - -
- - - - - classNLClassifier.NLClassifierOptionsOptions to identify input and output tensors of the model. 
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - - - - - - - - - -
-List<Category> - -
-classify(String text) - -
Performs classification on a string input, returns classified Categorys.
-
-
- - - - static - - NLClassifier - - -
- - - - static - - NLClassifier - -
-createFromFile(Context context, String modelPath) - - -
-
- - - - static - - NLClassifier - -
-createFromFile(File modelFile) - - -
-
- - - - static - - NLClassifier - - -
- - - - static - - NLClassifier - - -
-
- -
-

Inherited Methods

- - - - -
-
- -
- - - - - - - - - - -
-

Public Methods

- -
-

- - public - - - - - List<Category> - -classify -(String text) -

-
-
-
-
-

Performs classification on a string input, returns classified Categorys.

-
-
Parameters
- - - - - -
textinput text to the model
-
-
-
Returns
-
  • a list of Category results -
-
-
-
- -
-

- - public - static - - - - NLClassifier - -createFromBufferAndOptions -(ByteBuffer modelBuffer, NLClassifier.NLClassifierOptions options) -

-
-
-
-
- -
-
Parameters
- - - - - - - - - -
modelBuffera direct ByteBuffer or a MappedByteBuffer of the - classification model
optionsconfigurations for the model
-
-
-
Returns
- -
-
-
Throws
- - - - - - - - - - - - - -
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error
IllegalArgumentExceptionif the model buffer is not a direct ByteBuffer or a - MappedByteBuffer -
-
-
-
- -
-

- - public - static - - - - NLClassifier - -createFromFile -(Context context, String modelPath) -

-
-
-
-
- -
-
Parameters
- - - - - - - - - -
contextAndroid context
modelPathpath to the classification model relative to asset dir
-
-
-
Returns
- -
-
-
Throws
- - - - - - - - - - - - - - - - - -
IOExceptionif model file fails to load
IllegalArgumentExceptionif an argument is invalid
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error -
-
-
-
- -
-

- - public - static - - - - NLClassifier - -createFromFile -(File modelFile) -

-
-
-
-
- -
-
Parameters
- - - - - -
modelFilethe classification model File instance
-
-
-
Returns
- -
-
-
Throws
- - - - - - - - - - - - - - - - - -
IOExceptionif model file fails to load
IllegalArgumentExceptionif an argument is invalid
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error -
-
-
-
- -
-

- - public - static - - - - NLClassifier - -createFromFileAndOptions -(File modelFile, NLClassifier.NLClassifierOptions options) -

-
-
-
-
- -
-
Parameters
- - - - - - - - - -
modelFilethe classification model File instance
optionsconfigurations for the model
-
-
-
Returns
- -
-
-
Throws
- - - - - - - - - - - - - - - - - -
IOExceptionif model file fails to load
IllegalArgumentExceptionif an argument is invalid
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error -
-
-
-
- -
-

- - public - static - - - - NLClassifier - -createFromFileAndOptions -(Context context, String modelPath, NLClassifier.NLClassifierOptions options) -

-
-
-
-
- -
-
Parameters
- - - - - - - - - - - - - -
contextAndroid context
modelPathpath to the classification model relative to asset dir
optionsconfigurations for the model.
-
-
-
Returns
- -
-
-
Throws
- - - - - - - - - - - - - - - - - -
IOExceptionif model file fails to load
IllegalArgumentExceptionif an argument is invalid
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error -
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/nlclassifier/package-summary.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/nlclassifier/package-summary.html deleted file mode 100644 index e630807c69..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/nlclassifier/package-summary.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - -org.tensorflow.lite.task.text.nlclassifier - - - -
-
-
-
-
-
-
- -
-
-
-

Classes

-
- - - - - - - - - - - - - - - - - - - - - - - - - -
BertNLClassifierClassifier API for NLClassification tasks with Bert models, categorizes string into different - classes. 
BertNLClassifier.BertNLClassifierOptionsOptions to configure BertNLClassifier. 
BertNLClassifier.BertNLClassifierOptions.BuilderBuilder for BertNLClassifier.BertNLClassifierOptions
NLClassifierClassifier API for natural language classification tasks, categorizes string into different - classes. 
NLClassifier.NLClassifierOptionsOptions to identify input and output tensors of the model. 
NLClassifier.NLClassifierOptions.BuilderBuilder for NLClassifier.NLClassifierOptions
-
-
-
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/qa/BertQuestionAnswerer.BertQuestionAnswererOptions.Builder.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/qa/BertQuestionAnswerer.BertQuestionAnswererOptions.Builder.html deleted file mode 100644 index d4ed22dd9d..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/qa/BertQuestionAnswerer.BertQuestionAnswererOptions.Builder.html +++ /dev/null @@ -1,341 +0,0 @@ - - - - - - - - - -BertQuestionAnswerer.BertQuestionAnswererOptions.Builder - - - -
-
-
-
-
- -
- public static abstract class - BertQuestionAnswerer.BertQuestionAnswererOptions.Builder -
-
-
- -
-
- -
-

Public Constructors

- - - - - -
- -
-Builder() - -
-
-
- -
-

Public Methods

- - - - - - - - - -
- abstract - - - - - BertQuestionAnswerer.BertQuestionAnswererOptions - -
-build() - -
-
- abstract - - - - - BertQuestionAnswerer.BertQuestionAnswererOptions.Builder - -
-setBaseOptions(BaseOptions baseOptions) - -
Sets the general options to configure Task APIs, such as accelerators.
-
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -Builder -() -

-
-
-
-
-

-
-
-
- - - - -
-

Public Methods

- -
-

- - public - - - abstract - - BertQuestionAnswerer.BertQuestionAnswererOptions - -build -() -

-
-
-
-
-

-
-
- -
-

- - public - - - abstract - - BertQuestionAnswerer.BertQuestionAnswererOptions.Builder - -setBaseOptions -(BaseOptions baseOptions) -

-
-
-
-
-

Sets the general options to configure Task APIs, such as accelerators.

-
-
Parameters
- - - - - -
baseOptions
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/qa/BertQuestionAnswerer.BertQuestionAnswererOptions.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/qa/BertQuestionAnswerer.BertQuestionAnswererOptions.html deleted file mode 100644 index 9c24d14f84..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/qa/BertQuestionAnswerer.BertQuestionAnswererOptions.html +++ /dev/null @@ -1,310 +0,0 @@ - - - - - - - - - -BertQuestionAnswerer.BertQuestionAnswererOptions - - - -
-
-
-
-
- -
- public static abstract class - BertQuestionAnswerer.BertQuestionAnswererOptions -
-
-
-
-

Options for setting up a BertQuestionAnswerer.

-
-
-
- -
-

Nested Classes

- - - - - - -
- - - - - classBertQuestionAnswerer.BertQuestionAnswererOptions.BuilderBuilder for BertQuestionAnswerer.BertQuestionAnswererOptions
-
- -
-

Public Constructors

- - - - - -
- - -
-
- -
-

Public Methods

- - - - - -
- - - - static - - BertQuestionAnswerer.BertQuestionAnswererOptions.Builder - -
-builder() - -
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -BertQuestionAnswererOptions -() -

-
-
-
-
-

-
-
-
- - - - -
-

Public Methods

- -
-

- - public - static - - - - BertQuestionAnswerer.BertQuestionAnswererOptions.Builder - -builder -() -

-
-
-
-
-

-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/qa/BertQuestionAnswerer.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/qa/BertQuestionAnswerer.html deleted file mode 100644 index dfca30273f..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/qa/BertQuestionAnswerer.html +++ /dev/null @@ -1,926 +0,0 @@ - - - - - - - - - -BertQuestionAnswerer - - - -
-
-
-
-
- -
- public class - BertQuestionAnswerer -
-
-
-
-

Returns the most possible answers on a given question for QA models (BERT, Albert, etc.). - -

The API expects a Bert based TFLite model with metadata containing the following information: - -

    -
  • input_process_units for Wordpiece/Sentencepiece Tokenizer - Wordpiece Tokenizer can be used - for a MobileBert model, - Sentencepiece Tokenizer Tokenizer can be used for an Albert model. -
  • 3 input tensors with names "ids", "mask" and "segment_ids". -
  • 2 output tensors with names "end_logits" and "start_logits". -
-

-

-
-
- -
-

Nested Classes

- - - - - - -
- - - - - classBertQuestionAnswerer.BertQuestionAnswererOptionsOptions for setting up a BertQuestionAnswerer
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-List<QaAnswer> - -
-answer(String context, String question) - -
Answers question based on context, and returns a list of possible QaAnswers.
-
-
- - - - static - - BertQuestionAnswerer - -
-createAlbertQuestionAnswererFromFile(Context context, String modelPath, String sentencePieceModelPath) - -
Creates a BertQuestionAnswerer instance with an Albert model and a sentence piece model - file.
-
-
- - - - static - - BertQuestionAnswerer - -
-createBertQuestionAnswererFromFile(Context context, String modelPath, String vocabPath) - -
Creates a BertQuestionAnswerer instance with a Bert model and a vocabulary file.
-
-
- - - - static - - BertQuestionAnswerer - -
-createFromFile(Context context, String modelPath) - - -
-
- - - - static - - BertQuestionAnswerer - -
-createFromFile(File modelFile) - - -
-
- - - - static - - BertQuestionAnswerer - - -
- - - - static - - BertQuestionAnswerer - - -
-
- -
-

Inherited Methods

- - - - - -
-
- -
- - - - - - - - - - -
-

Public Methods

- -
-

- - public - - - - - List<QaAnswer> - -answer -(String context, String question) -

-
-
-
-
-

Answers question based on context, and returns a list of possible QaAnswers. Could be - empty if no answer was found from the given context.

-
-
Parameters
- - - - - - - - - -
contextcontext the question bases on
questionquestion to ask
-
-
-
Returns
-
  • a list of possible answers in QaAnswer -
-
-
-
- -
-

- - public - static - - - - BertQuestionAnswerer - -createAlbertQuestionAnswererFromFile -(Context context, String modelPath, String sentencePieceModelPath) -

-
-
-
-
-

Creates a BertQuestionAnswerer instance with an Albert model and a sentence piece model - file. - -

One suitable model is: https://tfhub.dev/tensorflow/lite-model/albert_lite_base/squadv1/1

-
-
Parameters
- - - - - - - - - - - - - -
contextandroid context
modelPathfile path to the Albert model. Note: The model should not be compressed
sentencePieceModelPathfile path to the sentence piece model file. Note: The model - should not be compressed
-
-
-
Returns
- -
-
-
Throws
- - - - - - - - - - - - - - - - - -
IOExceptionIf model file fails to load
IllegalArgumentExceptionif an argument is invalid
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error -
-
-
-
- -
-

- - public - static - - - - BertQuestionAnswerer - -createBertQuestionAnswererFromFile -(Context context, String modelPath, String vocabPath) -

-
-
-
-
-

Creates a BertQuestionAnswerer instance with a Bert model and a vocabulary file. - -

One suitable model is: https://tfhub.dev/tensorflow/lite-model/mobilebert/1/default/1

-
-
Parameters
- - - - - - - - - - - - - -
contextandroid context
modelPathfile path to the Bert model. Note: The model should not be compressed
vocabPathfile path to the vocabulary file. Note: The file should not be compressed
-
-
-
Returns
- -
-
-
Throws
- - - - - - - - - - - - - - - - - -
IOExceptionIf model file fails to load
IllegalArgumentExceptionif an argument is invalid
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error -
-
-
-
- -
-

- - public - static - - - - BertQuestionAnswerer - -createFromFile -(Context context, String modelPath) -

-
-
-
-
- -
-
Parameters
- - - - - - - - - -
contextandroid context
modelPathfile path to the model with metadata. Note: The model should not be compressed
-
-
-
Returns
- -
-
-
Throws
- - - - - - - - - - - - - - - - - -
IOExceptionif model file fails to load
IllegalArgumentExceptionif an argument is invalid
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error -
-
-
-
- -
-

- - public - static - - - - BertQuestionAnswerer - -createFromFile -(File modelFile) -

-
-
-
-
- -
-
Parameters
- - - - - -
modelFilea File object of the model
-
-
-
Returns
- -
-
-
Throws
- - - - - - - - - - - - - - - - - -
IOExceptionif model file fails to load
IllegalArgumentExceptionif an argument is invalid
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error -
-
-
-
- -
-

- - public - static - - - - BertQuestionAnswerer - -createFromFileAndOptions -(File modelFile, BertQuestionAnswerer.BertQuestionAnswererOptions options) -

-
-
-
-
- -
-
Parameters
- - - - - - - - - -
modelFilea File object of the model
options
-
-
-
Returns
- -
-
-
Throws
- - - - - - - - - - - - - - - - - -
IOExceptionif model file fails to load
IllegalArgumentExceptionif an argument is invalid
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error -
-
-
-
- -
-

- - public - static - - - - BertQuestionAnswerer - -createFromFileAndOptions -(Context context, String modelPath, BertQuestionAnswerer.BertQuestionAnswererOptions options) -

-
-
-
-
- -
-
Parameters
- - - - - - - - - - - - - -
contextandroid context
modelPathfile path to the model with metadata. Note: The model should not be compressed
options
-
-
-
Returns
- -
-
-
Throws
- - - - - - - - - - - - - - - - - -
IOExceptionif model file fails to load
IllegalArgumentExceptionif an argument is invalid
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error -
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/qa/QaAnswer.Pos.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/qa/QaAnswer.Pos.html deleted file mode 100644 index 4ee0c8d07e..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/qa/QaAnswer.Pos.html +++ /dev/null @@ -1,448 +0,0 @@ - - - - - - - - - -QaAnswer.Pos - - - -
-
-
-
-
- -
- public static class - QaAnswer.Pos -
-
-
-
-

Position information of the answer relative to context. It is sortable in descending order - based on logit. -

-
-
-
- -

Fields

- - - - - - - - - - - - - - - - -
- public - - - intend
- public - - - floatlogit
- public - - - intstart
-
- -
-

Public Constructors

- - - - - -
- -
-Pos(int start, int end, float logit) - -
-
-
- -
-

Public Methods

- - - - - -
- - - - - - int - -
-compareTo(QaAnswer.Pos other) - -
-
-
- -
-

Inherited Methods

- - -
-
- -
- - - - - - -
-

Fields

- -
-

- - public - - - - - int - - -end -

-
-
-
-

-
-
- -
-

- - public - - - - - float - - -logit -

-
-
-
-

-
-
- -
-

- - public - - - - - int - - -start -

-
-
-
-

-
-
-
- - -
-

Public Constructors

- -
-

- - public - - - - - - -Pos -(int start, int end, float logit) -

-
-
-
-
-

-
-
Parameters
- - - - - - - - - - - - - -
start
end
logit
-
-
-
-
- - - - -
-

Public Methods

- -
-

- - public - - - - - int - -compareTo -(QaAnswer.Pos other) -

-
-
-
-
-

-
-
Parameters
- - - - - -
other
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/qa/QaAnswer.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/qa/QaAnswer.html deleted file mode 100644 index 381d0c8b05..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/qa/QaAnswer.html +++ /dev/null @@ -1,396 +0,0 @@ - - - - - - - - - -QaAnswer - - - -
-
-
-
-
- -
- public class - QaAnswer -
-
-
-
-

Answers to QuestionAnswerer. Contains information about the answer and its relative - position information to the context. -

-
-
-
- -
-

Nested Classes

- - - - - - -
- - - - - classQaAnswer.PosPosition information of the answer relative to context. 
-
- -

Fields

- - - - - - - - - - - -
- public - - - QaAnswer.Pospos
- public - - - Stringtext
-
- -
-

Public Constructors

- - - - - - - - - -
- -
-QaAnswer(String text, QaAnswer.Pos pos) - -
-
- -
-QaAnswer(String text, int start, int end, float logit) - -
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - -
-

Fields

- -
-

- - public - - - - - QaAnswer.Pos - -pos -

-
-
-
-

-
-
- -
-

- - public - - - - - String - -text -

-
-
-
-

-
-
-
- - -
-

Public Constructors

- -
-

- - public - - - - - - -QaAnswer -(String text, QaAnswer.Pos pos) -

-
-
-
-
-

-
-
Parameters
- - - - - - - - - -
text
pos
-
-
-
- -
-

- - public - - - - - - -QaAnswer -(String text, int start, int end, float logit) -

-
-
-
-
-

-
-
Parameters
- - - - - - - - - - - - - - - - - -
text
start
end
logit
-
-
-
-
- - - - - - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/qa/QuestionAnswerer.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/qa/QuestionAnswerer.html deleted file mode 100644 index 1a177ab395..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/qa/QuestionAnswerer.html +++ /dev/null @@ -1,133 +0,0 @@ - - - - - - - - - -QuestionAnswerer - - - -
-
-
-
-
- -
- public interface - QuestionAnswerer -
-
-
-
- Known Indirect Subclasses - -
- - -
-
-
-

API to answer questions based on context.

-
-
-
- -
-

Public Methods

- - - - - -
- abstract - - - - - List<QaAnswer> - -
-answer(String context, String question) - -
Answers question based on context, and returns a list of possible QaAnswers.
-
-
-
-
- -
- - - - - - - - - - -
-

Public Methods

- -
-

- - public - - - abstract - - List<QaAnswer> - -answer -(String context, String question) -

-
-
-
-
-

Answers question based on context, and returns a list of possible QaAnswers. Could be - empty if no answer was found from the given context.

-
-
Parameters
- - - - - - - - - -
contextcontext the question bases on
questionquestion to ask
-
-
-
Returns
-
  • a list of possible answers in QaAnswer -
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/qa/package-summary.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/qa/package-summary.html deleted file mode 100644 index 4356fd3877..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/qa/package-summary.html +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - - - -org.tensorflow.lite.task.text.qa - - - -
-
-
-
-
-
-
- -
-
-
-

Interfaces

-
- - - - - -
QuestionAnswererAPI to answer questions based on context. 
-
-

Classes

-
- - - - - - - - - - - - - - - - - - - - - -
BertQuestionAnswererReturns the most possible answers on a given question for QA models (BERT, Albert, etc.). 
BertQuestionAnswerer.BertQuestionAnswererOptionsOptions for setting up a BertQuestionAnswerer
BertQuestionAnswerer.BertQuestionAnswererOptions.BuilderBuilder for BertQuestionAnswerer.BertQuestionAnswererOptions
QaAnswerAnswers to QuestionAnswerer
QaAnswer.PosPosition information of the answer relative to context. 
-
-
-
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/searcher/TextSearcher.TextSearcherOptions.Builder.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/searcher/TextSearcher.TextSearcherOptions.Builder.html deleted file mode 100644 index 4591e6b720..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/searcher/TextSearcher.TextSearcherOptions.Builder.html +++ /dev/null @@ -1,388 +0,0 @@ - - - - - - - - - -TextSearcher.TextSearcherOptions.Builder - - - -
-
-
-
-
- -
- public static abstract class - TextSearcher.TextSearcherOptions.Builder -
-
-
- -
-
- -
-

Public Constructors

- - - - - -
- -
-Builder() - -
-
-
- -
-

Public Methods

- - - - - - - - - - - - - -
- abstract - - - - - TextSearcher.TextSearcherOptions - -
-build() - -
-
- abstract - - - - - TextSearcher.TextSearcherOptions.Builder - -
-setBaseOptions(BaseOptions baseOptions) - -
Sets the general options to configure Task APIs, such as accelerators.
-
-
- abstract - - - - - TextSearcher.TextSearcherOptions.Builder - -
-setSearcherOptions(SearcherOptions searcherOptions) - -
Sets the options to configure Searcher API.
-
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -Builder -() -

-
-
-
-
-

-
-
-
- - - - -
-

Public Methods

- -
-

- - public - - - abstract - - TextSearcher.TextSearcherOptions - -build -() -

-
-
-
-
-

-
-
- -
-

- - public - - - abstract - - TextSearcher.TextSearcherOptions.Builder - -setBaseOptions -(BaseOptions baseOptions) -

-
-
-
-
-

Sets the general options to configure Task APIs, such as accelerators.

-
-
Parameters
- - - - - -
baseOptions
-
-
-
- -
-

- - public - - - abstract - - TextSearcher.TextSearcherOptions.Builder - -setSearcherOptions -(SearcherOptions searcherOptions) -

-
-
-
-
-

Sets the options to configure Searcher API.

-
-
Parameters
- - - - - -
searcherOptions
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/searcher/TextSearcher.TextSearcherOptions.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/searcher/TextSearcher.TextSearcherOptions.html deleted file mode 100644 index d8cb145a0d..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/searcher/TextSearcher.TextSearcherOptions.html +++ /dev/null @@ -1,310 +0,0 @@ - - - - - - - - - -TextSearcher.TextSearcherOptions - - - -
-
-
-
-
- -
- public static abstract class - TextSearcher.TextSearcherOptions -
-
-
-
-

Options for setting up an TextSearcher.

-
-
-
- -
-

Nested Classes

- - - - - - -
- - - - - classTextSearcher.TextSearcherOptions.BuilderBuilder for TextSearcher.TextSearcherOptions
-
- -
-

Public Constructors

- - - - - -
- - -
-
- -
-

Public Methods

- - - - - -
- - - - static - - TextSearcher.TextSearcherOptions.Builder - -
-builder() - -
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -TextSearcherOptions -() -

-
-
-
-
-

-
-
-
- - - - -
-

Public Methods

- -
-

- - public - static - - - - TextSearcher.TextSearcherOptions.Builder - -builder -() -

-
-
-
-
-

-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/searcher/TextSearcher.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/searcher/TextSearcher.html deleted file mode 100644 index affa525b0f..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/searcher/TextSearcher.html +++ /dev/null @@ -1,710 +0,0 @@ - - - - - - - - - -TextSearcher - - - -
-
-
-
-
- -
- public final class - TextSearcher -
-
-
-
-

Performs similarity search on text string. - -

The API expects a TFLite model with optional, but strongly recommended, TFLite Model Metadata.. - -

The API expects a TFLite model with metadata populated. The metadata should contain the - following information: - -

    -
  • For Bert based TFLite model: -
      -
    • 3 input tensors of type kTfLiteString with names "ids", "mask" and "segment_ids". -
    • input_process_units for Wordpiece/Sentencepiece Tokenizer -
    • exactly one output tensor of type kTfLiteFloat32 -
    -
  • For Regex based TFLite model: -
      -
    • 1 input tensor. -
    • input_process_units for RegexTokenizer Tokenizer -
    • exactly one output tensor of type kTfLiteFloat32 -
    -
  • For Universal Sentence Encoder based TFLite model: -
      -
    • 3 input tensors with names "inp_text", "res_context" and "res_text" -
    • 2 output tensors with names "query_encoding" and "response_encoding" of type - kTfLiteFloat32 -
    -
-

TODO(b/180502532): add pointer to example model. - -

TODO(b/222671076): add factory create methods without options, such as `createFromFile`, once - the single file format (index file packed in the model) is supported. -

-

-
-
- -
-

Nested Classes

- - - - - - -
- - - - - classTextSearcher.TextSearcherOptionsOptions for setting up an TextSearcher. 
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - - - - - -
- - - - static - - TextSearcher - -
-createFromBufferAndOptions(ByteBuffer modelBuffer, TextSearcher.TextSearcherOptions options) - -
Creates an TextSearcher instance with a model buffer and TextSearcher.TextSearcherOptions.
-
-
- - - - static - - TextSearcher - - -
- - - - static - - TextSearcher - -
-createFromFileAndOptions(File modelFile, TextSearcher.TextSearcherOptions options) - -
Creates an TextSearcher instance.
-
-
- - - - static - - TextSearcher - -
-createFromFileAndOptions(Context context, String modelPath, TextSearcher.TextSearcherOptions options) - - -
-
-List<NearestNeighbor> - -
-search(String text) - -
Performs embedding extraction on the provided string input, followed by nearest-neighbor search - in the index.
-
-
-
- -
-

Inherited Methods

- - - - -
-
- -
- - - - - - - - - - -
-

Public Methods

- -
-

- - public - static - - - - TextSearcher - -createFromBufferAndOptions -(ByteBuffer modelBuffer, TextSearcher.TextSearcherOptions options) -

-
-
-
-
-

Creates an TextSearcher instance with a model buffer and TextSearcher.TextSearcherOptions.

-
-
Parameters
- - - - - - - - - -
modelBuffera direct ByteBuffer or a MappedByteBuffer of the search - model
options
-
-
-
Throws
- - - - - - - - - - - - - - - - - -
IllegalArgumentExceptionif the model buffer is not a direct ByteBuffer or a - MappedByteBuffer
IOExceptionif an I/O error occurs when loading the index file
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error -
-
-
-
- -
-

- - public - static - - - - TextSearcher - -createFromBufferAndOptionsImpl -(ByteBuffer modelBuffer, TextSearcher.TextSearcherOptions options, int indexFd) -

-
-
-
-
-

-
-
Parameters
- - - - - - - - - - - - - -
modelBuffer
options
indexFd
-
-
-
- -
-

- - public - static - - - - TextSearcher - -createFromFileAndOptions -(File modelFile, TextSearcher.TextSearcherOptions options) -

-
-
-
-
-

Creates an TextSearcher instance.

-
-
Parameters
- - - - - - - - - -
modelFilethe search model File instance
options
-
-
-
Throws
- - - - - - - - - - - - - - - - - -
IOExceptionif an I/O error occurs when loading the tflite model or the index file
IllegalArgumentExceptionif an argument is invalid
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error -
-
-
-
- -
-

- - public - static - - - - TextSearcher - -createFromFileAndOptions -(Context context, String modelPath, TextSearcher.TextSearcherOptions options) -

-
-
-
-
- -
-
Parameters
- - - - - - - - - - - - - -
context
modelPathpath of the search model with metadata in the assets
options
-
-
-
Throws
- - - - - - - - - - - - - - - - - -
IOExceptionif an I/O error occurs when loading the tflite model or the index file
IllegalArgumentExceptionif an argument is invalid
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error -
-
-
-
- -
-

- - public - - - - - List<NearestNeighbor> - -search -(String text) -

-
-
-
-
-

Performs embedding extraction on the provided string input, followed by nearest-neighbor search - in the index.

-
-
Parameters
- - - - - -
textinput text query to the model -
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/searcher/package-summary.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/searcher/package-summary.html deleted file mode 100644 index e68f284c2a..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/text/searcher/package-summary.html +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - -org.tensorflow.lite.task.text.searcher - - - -
-
-
-
-
-
-
- -
-
-
-

Classes

-
- - - - - - - - - - - - - -
TextSearcherPerforms similarity search on text string. 
TextSearcher.TextSearcherOptionsOptions for setting up an TextSearcher. 
TextSearcher.TextSearcherOptions.BuilderBuilder for TextSearcher.TextSearcherOptions
-
-
-
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/classifier/Classifications.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/classifier/Classifications.html deleted file mode 100644 index 1acab51976..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/classifier/Classifications.html +++ /dev/null @@ -1,334 +0,0 @@ - - - - - - - - - -Classifications - - - -
-
-
-
-
- -
- public abstract class - Classifications -
-
-
-
-

The classification results of one head in a multihead (a.k.a. multi-output) ImageClassifier. A multihead ImageClassifier can perform classification for multiple - purposes, such as a fine grained classifier to describe apparel items (e.g. color, material, - type, etc.). -

-
-
-
- -
-

Public Constructors

- - - - - -
- - -
-
- -
-

Public Methods

- - - - - - - - - -
- abstract - - - - - List<Category> - -
-getCategories() - -
-
- abstract - - - - - int - -
-getHeadIndex() - -
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -Classifications -() -

-
-
-
-
-

-
-
-
- - - - -
-

Public Methods

- -
-

- - public - - - abstract - - List<Category> - -getCategories -() -

-
-
-
-
-

-
-
- -
-

- - public - - - abstract - - int - -getHeadIndex -() -

-
-
-
-
-

-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/classifier/ImageClassifier.ImageClassifierOptions.Builder.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/classifier/ImageClassifier.ImageClassifierOptions.Builder.html deleted file mode 100644 index b951a54774..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/classifier/ImageClassifier.ImageClassifierOptions.Builder.html +++ /dev/null @@ -1,587 +0,0 @@ - - - - - - - - - -ImageClassifier.ImageClassifierOptions.Builder - - - -
-
-
-
-
- -
- public static class - ImageClassifier.ImageClassifierOptions.Builder -
-
-
-
-

A builder that helps to configure an instance of ImageClassifierOptions.

-
-
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-ImageClassifier.ImageClassifierOptions - -
-build() - -
-
-ImageClassifier.ImageClassifierOptions.Builder - -
-setBaseOptions(BaseOptions baseOptions) - -
Sets the general options to configure Task APIs, such as accelerators.
-
-
-ImageClassifier.ImageClassifierOptions.Builder - -
-setDisplayNamesLocale(String displayNamesLocale) - -
Sets the locale to use for display names specified through the TFLite Model Metadata, if - any.
-
-
-ImageClassifier.ImageClassifierOptions.Builder - -
-setLabelAllowList(List<String> labelAllowList) - -
Sets the optional allowlist of labels.
-
-
-ImageClassifier.ImageClassifierOptions.Builder - -
-setLabelDenyList(List<String> labelDenyList) - -
Sets the optional denylist of labels.
-
-
-ImageClassifier.ImageClassifierOptions.Builder - -
-setMaxResults(int maxResults) - -
Sets the maximum number of top scored results to return.
-
-
-ImageClassifier.ImageClassifierOptions.Builder - -
-setNumThreads(int numThreads) - -
- This method is deprecated. use BaseOptions to configure number of threads instead. This method - will override the number of threads configured from BaseOptions. -
-
-
-ImageClassifier.ImageClassifierOptions.Builder - -
-setScoreThreshold(float scoreThreshold) - -
Sets the score threshold.
-
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - - - - -
-

Public Methods

- -
-

- - public - - - - - ImageClassifier.ImageClassifierOptions - -build -() -

-
-
-
-
-

-
-
- -
-

- - public - - - - - ImageClassifier.ImageClassifierOptions.Builder - -setBaseOptions -(BaseOptions baseOptions) -

-
-
-
-
-

Sets the general options to configure Task APIs, such as accelerators.

-
-
Parameters
- - - - - -
baseOptions
-
-
-
- -
-

- - public - - - - - ImageClassifier.ImageClassifierOptions.Builder - -setDisplayNamesLocale -(String displayNamesLocale) -

-
-
-
-
-

Sets the locale to use for display names specified through the TFLite Model Metadata, if - any. - -

Defaults to English("en"). See the TFLite - Metadata schema file. for the accepted pattern of locale. -

-
-
Parameters
- - - - - -
displayNamesLocale
-
-
-
- -
-

- - public - - - - - ImageClassifier.ImageClassifierOptions.Builder - -setLabelAllowList -(List<String> labelAllowList) -

-
-
-
-
-

Sets the optional allowlist of labels. - -

If non-empty, classifications whose label is not in this set will be filtered out. - Duplicate or unknown labels are ignored. Mutually exclusive with labelDenyList. -

-
-
Parameters
- - - - - -
labelAllowList
-
-
-
- -
-

- - public - - - - - ImageClassifier.ImageClassifierOptions.Builder - -setLabelDenyList -(List<String> labelDenyList) -

-
-
-
-
-

Sets the optional denylist of labels. - -

If non-empty, classifications whose label is in this set will be filtered out. Duplicate - or unknown labels are ignored. Mutually exclusive with labelAllowList. -

-
-
Parameters
- - - - - -
labelDenyList
-
-
-
- -
-

- - public - - - - - ImageClassifier.ImageClassifierOptions.Builder - -setMaxResults -(int maxResults) -

-
-
-
-
-

Sets the maximum number of top scored results to return. - -

If < 0, all results will be returned. If 0, an invalid argument error is returned. - Defaults to -1.

-
-
Parameters
- - - - - -
maxResults
-
-
-
Throws
- - - - - -
IllegalArgumentExceptionif maxResults is 0. -
-
-
-
- -
-

- - public - - - - - ImageClassifier.ImageClassifierOptions.Builder - -setNumThreads -(int numThreads) -

-
-
-
-
-

-

- - This method is deprecated.
use BaseOptions to configure number of threads instead. This method - will override the number of threads configured from BaseOptions. - -

-

Sets the number of threads to be used for TFLite ops that support multi-threading when - running inference with CPU. Defaults to -1. - -

numThreads should be greater than 0 or equal to -1. Setting numThreads to -1 has the - effect to let TFLite runtime set the value.

-
-
Parameters
- - - - - -
numThreads
-
-

-
- -
-

- - public - - - - - ImageClassifier.ImageClassifierOptions.Builder - -setScoreThreshold -(float scoreThreshold) -

-
-
-
-
-

Sets the score threshold. - -

It overrides the one provided in the model metadata (if any). Results below this value - are rejected. -

-
-
Parameters
- - - - - -
scoreThreshold
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/classifier/ImageClassifier.ImageClassifierOptions.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/classifier/ImageClassifier.ImageClassifierOptions.html deleted file mode 100644 index b3b4111861..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/classifier/ImageClassifier.ImageClassifierOptions.html +++ /dev/null @@ -1,545 +0,0 @@ - - - - - - - - - -ImageClassifier.ImageClassifierOptions - - - -
-
-
-
-
- -
- public static class - ImageClassifier.ImageClassifierOptions -
-
-
-
-

Options for setting up an ImageClassifier.

-
-
-
- -
-

Nested Classes

- - - - - - -
- - - - - classImageClassifier.ImageClassifierOptions.BuilderA builder that helps to configure an instance of ImageClassifierOptions. 
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - static - - ImageClassifier.ImageClassifierOptions.Builder - -
-builder() - -
-
-BaseOptions - - -
-String - - -
- - - - - - boolean - - -
-List<String> - - -
-List<String> - - -
- - - - - - int - -
-getMaxResults() - -
-
- - - - - - int - -
-getNumThreads() - -
-
- - - - - - float - - -
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - - - - -
-

Public Methods

- -
-

- - public - static - - - - ImageClassifier.ImageClassifierOptions.Builder - -builder -() -

-
-
-
-
-

-
-
- -
-

- - public - - - - - BaseOptions - -getBaseOptions -() -

-
-
-
-
-

-
-
- -
-

- - public - - - - - String - -getDisplayNamesLocale -() -

-
-
-
-
-

-
-
- -
-

- - public - - - - - boolean - -getIsScoreThresholdSet -() -

-
-
-
-
-

-
-
- -
-

- - public - - - - - List<String> - -getLabelAllowList -() -

-
-
-
-
-

-
-
- -
-

- - public - - - - - List<String> - -getLabelDenyList -() -

-
-
-
-
-

-
-
- -
-

- - public - - - - - int - -getMaxResults -() -

-
-
-
-
-

-
-
- -
-

- - public - - - - - int - -getNumThreads -() -

-
-
-
-
-

-
-
- -
-

- - public - - - - - float - -getScoreThreshold -() -

-
-
-
-
-

-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/classifier/ImageClassifier.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/classifier/ImageClassifier.html deleted file mode 100644 index 62b55c5283..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/classifier/ImageClassifier.html +++ /dev/null @@ -1,1064 +0,0 @@ - - - - - - - - - -ImageClassifier - - - -
-
-
-
-
- -
- public final class - ImageClassifier -
-
-
-
-

Performs classification on images. - -

The API expects a TFLite model with optional, but strongly recommended, TFLite Model Metadata.. - -

The API supports models with one image input tensor and one classification output tensor. To - be more specific, here are the requirements. - -

    -
  • Input image tensor (kTfLiteUInt8/kTfLiteFloat32) -
      -
    • image input of size [batch x height x width x channels]. -
    • batch inference is not supported (batch is required to be 1). -
    • only RGB inputs are supported (channels is required to be 3). -
    • if type is kTfLiteFloat32, NormalizationOptions are required to be attached - to the metadata for input normalization. -
    -
  • Output score tensor (kTfLiteUInt8/kTfLiteFloat32) -
      -
    • with N classes of either 2 or 4 dimensions, such as [1 x N] or [1 x 1 x 1 x N] -
    • the label file is required to be packed to the metadata. See the example of - creating metadata for an image classifier. If no label files are packed, it will - use index as label in the result. -
    -
-

An example of such model can be found on TensorFlow - Hub.. -

-

-
-
- -
-

Nested Classes

- - - - - - -
- - - - - classImageClassifier.ImageClassifierOptionsOptions for setting up an ImageClassifier. 
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-List<Classifications> - -
-classify(TensorImage image) - -
Performs actual classification on the provided TensorImage.
-
-
-List<Classifications> - -
-classify(TensorImage image, ImageProcessingOptions options) - -
Performs actual classification on the provided TensorImage with ImageProcessingOptions.
-
-
-List<Classifications> - -
-classify(MlImage image) - -
Performs actual classification on the provided MlImage.
-
-
-List<Classifications> - -
-classify(MlImage image, ImageProcessingOptions options) - -
Performs actual classification on the provided MlImage with ImageProcessingOptions.
-
-
- - - - static - - ImageClassifier - -
-createFromBuffer(ByteBuffer modelBuffer) - -
Creates an ImageClassifier instance with a model buffer and the default ImageClassifier.ImageClassifierOptions.
-
-
- - - - static - - ImageClassifier - - -
- - - - static - - ImageClassifier - -
-createFromFile(Context context, String modelPath) - -
Creates an ImageClassifier instance from the default ImageClassifier.ImageClassifierOptions.
-
-
- - - - static - - ImageClassifier - -
-createFromFile(File modelFile) - -
Creates an ImageClassifier instance from the default ImageClassifier.ImageClassifierOptions.
-
-
- - - - static - - ImageClassifier - - -
- - - - static - - ImageClassifier - - -
-
- -
-

Inherited Methods

- - - - -
-
- -
- - - - - - - - - - -
-

Public Methods

- -
-

- - public - - - - - List<Classifications> - -classify -(TensorImage image) -

-
-
-
-
-

Performs actual classification on the provided TensorImage. - -

ImageClassifier supports the following TensorImage color space types: - -

-
-
Parameters
- - - - - -
imagea UINT8 TensorImage object that represents an RGB or YUV image
-
-
-
Throws
- - - - - -
IllegalArgumentExceptionif the color space type of image is unsupported -
-
-
-
- -
-

- - public - - - - - List<Classifications> - -classify -(TensorImage image, ImageProcessingOptions options) -

-
-
-
-
-

Performs actual classification on the provided TensorImage with ImageProcessingOptions. - -

ImageClassifier supports the following options: - -

-

ImageClassifier supports the following TensorImage color space types: - -

-
-
Parameters
- - - - - - - - - -
imagea UINT8 TensorImage object that represents an RGB or YUV image
options
-
-
-
Throws
- - - - - -
IllegalArgumentExceptionif the color space type of image is unsupported -
-
-
-
- -
-

- - public - - - - - List<Classifications> - -classify -(MlImage image) -

-
-
-
-
-

Performs actual classification on the provided MlImage.

-
-
Parameters
- - - - - -
imagean MlImage object that represents an image
-
-
-
Throws
- - - - - -
IllegalArgumentExceptionif the storage type or format of the image is unsupported -
-
-
-
- -
-

- - public - - - - - List<Classifications> - -classify -(MlImage image, ImageProcessingOptions options) -

-
-
-
-
-

Performs actual classification on the provided MlImage with ImageProcessingOptions. - -

ImageClassifier supports the following options: - -

-
-
Parameters
- - - - - - - - - -
imagea MlImage object that represents an image
optionsconfigures options including ROI and rotation
-
-
-
Throws
- - - - - -
IllegalArgumentExceptionif the storage type or format of the image is unsupported -
-
-
-
- -
-

- - public - static - - - - ImageClassifier - -createFromBuffer -(ByteBuffer modelBuffer) -

-
-
-
-
-

Creates an ImageClassifier instance with a model buffer and the default ImageClassifier.ImageClassifierOptions.

-
-
Parameters
- - - - - -
modelBuffera direct ByteBuffer or a MappedByteBuffer of the - classification model
-
-
-
Throws
- - - - - - - - - - - - - -
IllegalArgumentExceptionif the model buffer is not a direct ByteBuffer or a - MappedByteBuffer
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error -
-
-
-
- -
-

- - public - static - - - - ImageClassifier - -createFromBufferAndOptions -(ByteBuffer modelBuffer, ImageClassifier.ImageClassifierOptions options) -

-
-
-
-
-

Creates an ImageClassifier instance with a model buffer and ImageClassifier.ImageClassifierOptions.

-
-
Parameters
- - - - - - - - - -
modelBuffera direct ByteBuffer or a MappedByteBuffer of the - classification model
options
-
-
-
Throws
- - - - - - - - - - - - - -
IllegalArgumentExceptionif the model buffer is not a direct ByteBuffer or a - MappedByteBuffer
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error -
-
-
-
- -
-

- - public - static - - - - ImageClassifier - -createFromFile -(Context context, String modelPath) -

-
-
-
-
-

Creates an ImageClassifier instance from the default ImageClassifier.ImageClassifierOptions.

-
-
Parameters
- - - - - - - - - -
context
modelPathpath of the classification model with metadata in the assets
-
-
-
Throws
- - - - - - - - - - - - - - - - - -
IOExceptionif an I/O error occurs when loading the tflite model
IllegalArgumentExceptionif an argument is invalid
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error -
-
-
-
- -
-

- - public - static - - - - ImageClassifier - -createFromFile -(File modelFile) -

-
-
-
-
-

Creates an ImageClassifier instance from the default ImageClassifier.ImageClassifierOptions.

-
-
Parameters
- - - - - -
modelFilethe classification model File instance
-
-
-
Throws
- - - - - - - - - - - - - - - - - -
IOExceptionif an I/O error occurs when loading the tflite model
IllegalArgumentExceptionif an argument is invalid
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error -
-
-
-
- -
-

- - public - static - - - - ImageClassifier - -createFromFileAndOptions -(Context context, String modelPath, ImageClassifier.ImageClassifierOptions options) -

-
-
-
-
- -
-
Parameters
- - - - - - - - - - - - - -
context
modelPathpath of the classification model with metadata in the assets
options
-
-
-
Throws
- - - - - - - - - - - - - - - - - -
IOExceptionif an I/O error occurs when loading the tflite model
IllegalArgumentExceptionif an argument is invalid
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error -
-
-
-
- -
-

- - public - static - - - - ImageClassifier - -createFromFileAndOptions -(File modelFile, ImageClassifier.ImageClassifierOptions options) -

-
-
-
-
-

Creates an ImageClassifier instance.

-
-
Parameters
- - - - - - - - - -
modelFilethe classification model File instance
options
-
-
-
Throws
- - - - - - - - - - - - - - - - - -
IOExceptionif an I/O error occurs when loading the tflite model
IllegalArgumentExceptionif an argument is invalid
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error -
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/classifier/package-summary.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/classifier/package-summary.html deleted file mode 100644 index 9ada64f52b..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/classifier/package-summary.html +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - -org.tensorflow.lite.task.vision.classifier - - - -
-
-
-
-
-
-
- -
-
-
-

Classes

-
- - - - - - - - - - - - - - - - - -
ClassificationsThe classification results of one head in a multihead (a.k.a. 
ImageClassifierPerforms classification on images. 
ImageClassifier.ImageClassifierOptionsOptions for setting up an ImageClassifier. 
ImageClassifier.ImageClassifierOptions.BuilderA builder that helps to configure an instance of ImageClassifierOptions. 
-
-
-
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/core/BaseVisionTaskApi.InferenceProvider.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/core/BaseVisionTaskApi.InferenceProvider.html deleted file mode 100644 index 037a4e7762..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/core/BaseVisionTaskApi.InferenceProvider.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - - - - -BaseVisionTaskApi.InferenceProvider - - - -
-
-
-
-
- -
- public static interface - BaseVisionTaskApi.InferenceProvider -
-
-
-
-

Syntax sugar to run vision tasks with FrameBuffer and image processing options.

-
-
-
- -
-

Public Methods

- - - - - -
- abstract - - - - - T - -
-run(long frameBufferHandle, int width, int height, ImageProcessingOptions options) - -
-
-
-
- -
- - - - - - - - - - -
-

Public Methods

- -
-

- - public - - - abstract - - T - -run -(long frameBufferHandle, int width, int height, ImageProcessingOptions options) -

-
-
-
-
-

-
-
Parameters
- - - - - - - - - - - - - - - - - -
frameBufferHandle
width
height
options
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/core/BaseVisionTaskApi.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/core/BaseVisionTaskApi.html deleted file mode 100644 index 077231eca1..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/core/BaseVisionTaskApi.html +++ /dev/null @@ -1,381 +0,0 @@ - - - - - - - - - -BaseVisionTaskApi - - - -
-
-
-
-
- -
- public abstract class - BaseVisionTaskApi -
-
-
-
- Known Direct Subclasses - -
- - -
-
-
-

Base class for Task Vision APIs.

-
-
-
- -
-

Nested Classes

- - - - - - -
- - - - - interfaceBaseVisionTaskApi.InferenceProvider<T>Syntax sugar to run vision tasks with FrameBuffer and image processing options. 
-
- -
-

Inherited Methods

- - - - -
-
- -
- - - - - - - - - - - - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/core/package-summary.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/core/package-summary.html deleted file mode 100644 index ef7cf5d382..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/core/package-summary.html +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - -org.tensorflow.lite.task.vision.core - - - -
-
-
-
-
-
-
- -
-
-
-

Interfaces

-
- - - - - -
BaseVisionTaskApi.InferenceProvider<T>Syntax sugar to run vision tasks with FrameBuffer and image processing options. 
-
-

Classes

-
- - - - - -
BaseVisionTaskApiBase class for Task Vision APIs. 
-
-
-
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/detector/Detection.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/detector/Detection.html deleted file mode 100644 index 3186625ba9..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/detector/Detection.html +++ /dev/null @@ -1,381 +0,0 @@ - - - - - - - - - -Detection - - - -
-
-
-
-
- -
- public abstract class - Detection -
-
-
-
-

Represents one detected object in the results of a ObjectDetector.

-
-
-
- -
-

Public Constructors

- - - - - -
- -
-Detection() - -
-
-
- -
-

Public Methods

- - - - - - - - - - - - - -
- - - - static - - Detection - -
-create(RectF boundingBox, List<Category> categories) - -
-
- abstract - - - - - RectF - - -
- abstract - - - - - List<Category> - -
-getCategories() - -
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -Detection -() -

-
-
-
-
-

-
-
-
- - - - -
-

Public Methods

- -
-

- - public - static - - - - Detection - -create -(RectF boundingBox, List<Category> categories) -

-
-
-
-
-

-
-
Parameters
- - - - - - - - - -
boundingBox
categories
-
-
-
- -
-

- - public - - - abstract - - RectF - -getBoundingBox -() -

-
-
-
-
-

-
-
- -
-

- - public - - - abstract - - List<Category> - -getCategories -() -

-
-
-
-
-

-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/detector/ObjectDetector.ObjectDetectorOptions.Builder.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/detector/ObjectDetector.ObjectDetectorOptions.Builder.html deleted file mode 100644 index 0040bafde2..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/detector/ObjectDetector.ObjectDetectorOptions.Builder.html +++ /dev/null @@ -1,591 +0,0 @@ - - - - - - - - - -ObjectDetector.ObjectDetectorOptions.Builder - - - -
-
-
-
-
- -
- public static class - ObjectDetector.ObjectDetectorOptions.Builder -
-
-
-
-

A builder that helps to configure an instance of ObjectDetectorOptions.

-
-
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-ObjectDetector.ObjectDetectorOptions - -
-build() - -
-
-ObjectDetector.ObjectDetectorOptions.Builder - -
-setBaseOptions(BaseOptions baseOptions) - -
Sets the general options to configure Task APIs, such as accelerators.
-
-
-ObjectDetector.ObjectDetectorOptions.Builder - -
-setDisplayNamesLocale(String displayNamesLocale) - -
Sets the locale to use for display names specified through the TFLite Model Metadata, if - any.
-
-
-ObjectDetector.ObjectDetectorOptions.Builder - -
-setLabelAllowList(List<String> labelAllowList) - -
Sets the optional allow list of labels.
-
-
-ObjectDetector.ObjectDetectorOptions.Builder - -
-setLabelDenyList(List<String> labelDenyList) - -
Sets the optional deny list of labels.
-
-
-ObjectDetector.ObjectDetectorOptions.Builder - -
-setMaxResults(int maxResults) - -
Sets the maximum number of top-scored detection results to return.
-
-
-ObjectDetector.ObjectDetectorOptions.Builder - -
-setNumThreads(int numThreads) - -
- This method is deprecated. use BaseOptions to configure number of threads instead. This method - will override the number of threads configured from BaseOptions. -
-
-
-ObjectDetector.ObjectDetectorOptions.Builder - -
-setScoreThreshold(float scoreThreshold) - -
Sets the score threshold that overrides the one provided in the model metadata (if any).
-
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - - - - -
-

Public Methods

- -
-

- - public - - - - - ObjectDetector.ObjectDetectorOptions - -build -() -

-
-
-
-
-

-
-
- -
-

- - public - - - - - ObjectDetector.ObjectDetectorOptions.Builder - -setBaseOptions -(BaseOptions baseOptions) -

-
-
-
-
-

Sets the general options to configure Task APIs, such as accelerators.

-
-
Parameters
- - - - - -
baseOptions
-
-
-
- -
-

- - public - - - - - ObjectDetector.ObjectDetectorOptions.Builder - -setDisplayNamesLocale -(String displayNamesLocale) -

-
-
-
-
-

Sets the locale to use for display names specified through the TFLite Model Metadata, if - any. - -

Defaults to English("en"). See the TFLite - Metadata schema file. for the accepted pattern of locale. -

-
-
Parameters
- - - - - -
displayNamesLocale
-
-
-
- -
-

- - public - - - - - ObjectDetector.ObjectDetectorOptions.Builder - -setLabelAllowList -(List<String> labelAllowList) -

-
-
-
-
-

Sets the optional allow list of labels. - -

If non-empty, detection results whose label is not in this set will be filtered out. - Duplicate or unknown labels are ignored. Mutually exclusive with labelDenyList. It - will cause IllegalStateException when calling ObjectDetector.createFromFileAndOptions(Context, String, ObjectDetector.ObjectDetectorOptions), if - both labelDenyList and labelAllowList are set. -

-
-
Parameters
- - - - - -
labelAllowList
-
-
-
- -
-

- - public - - - - - ObjectDetector.ObjectDetectorOptions.Builder - -setLabelDenyList -(List<String> labelDenyList) -

-
-
-
-
-

Sets the optional deny list of labels. - -

If non-empty, detection results whose label is in this set will be filtered out. - Duplicate or unknown labels are ignored. Mutually exclusive with labelAllowList. It - will cause IllegalStateException when calling ObjectDetector.createFromFileAndOptions(Context, String, ObjectDetector.ObjectDetectorOptions), if - both labelDenyList and labelAllowList are set. -

-
-
Parameters
- - - - - -
labelDenyList
-
-
-
- -
-

- - public - - - - - ObjectDetector.ObjectDetectorOptions.Builder - -setMaxResults -(int maxResults) -

-
-
-
-
-

Sets the maximum number of top-scored detection results to return. - -

If < 0, all available results will be returned. If 0, an invalid argument error is - returned. Note that models may intrinsically be limited to returning a maximum number of - results N: if the provided value here is above N, only N results will be returned. Defaults - to -1.

-
-
Parameters
- - - - - -
maxResults
-
-
-
Throws
- - - - - -
IllegalArgumentExceptionif maxResults is 0. -
-
-
-
- -
-

- - public - - - - - ObjectDetector.ObjectDetectorOptions.Builder - -setNumThreads -(int numThreads) -

-
-
-
-
-

-

- - This method is deprecated.
use BaseOptions to configure number of threads instead. This method - will override the number of threads configured from BaseOptions. - -

-

Sets the number of threads to be used for TFLite ops that support multi-threading when - running inference with CPU. Defaults to -1. - -

numThreads should be greater than 0 or equal to -1. Setting numThreads to -1 has the - effect to let TFLite runtime set the value.

-
-
Parameters
- - - - - -
numThreads
-
-

-
- -
-

- - public - - - - - ObjectDetector.ObjectDetectorOptions.Builder - -setScoreThreshold -(float scoreThreshold) -

-
-
-
-
-

Sets the score threshold that overrides the one provided in the model metadata (if any). - Results below this value are rejected. -

-
-
Parameters
- - - - - -
scoreThreshold
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/detector/ObjectDetector.ObjectDetectorOptions.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/detector/ObjectDetector.ObjectDetectorOptions.html deleted file mode 100644 index 3eaf769b37..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/detector/ObjectDetector.ObjectDetectorOptions.html +++ /dev/null @@ -1,545 +0,0 @@ - - - - - - - - - -ObjectDetector.ObjectDetectorOptions - - - -
-
-
-
-
- -
- public static class - ObjectDetector.ObjectDetectorOptions -
-
-
-
-

Options for setting up an ObjectDetector.

-
-
-
- -
-

Nested Classes

- - - - - - -
- - - - - classObjectDetector.ObjectDetectorOptions.BuilderA builder that helps to configure an instance of ObjectDetectorOptions. 
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - static - - ObjectDetector.ObjectDetectorOptions.Builder - -
-builder() - -
-
-BaseOptions - - -
-String - - -
- - - - - - boolean - - -
-List<String> - - -
-List<String> - - -
- - - - - - int - -
-getMaxResults() - -
-
- - - - - - int - -
-getNumThreads() - -
-
- - - - - - float - - -
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - - - - -
-

Public Methods

- -
-

- - public - static - - - - ObjectDetector.ObjectDetectorOptions.Builder - -builder -() -

-
-
-
-
-

-
-
- -
-

- - public - - - - - BaseOptions - -getBaseOptions -() -

-
-
-
-
-

-
-
- -
-

- - public - - - - - String - -getDisplayNamesLocale -() -

-
-
-
-
-

-
-
- -
-

- - public - - - - - boolean - -getIsScoreThresholdSet -() -

-
-
-
-
-

-
-
- -
-

- - public - - - - - List<String> - -getLabelAllowList -() -

-
-
-
-
-

-
-
- -
-

- - public - - - - - List<String> - -getLabelDenyList -() -

-
-
-
-
-

-
-
- -
-

- - public - - - - - int - -getMaxResults -() -

-
-
-
-
-

-
-
- -
-

- - public - - - - - int - -getNumThreads -() -

-
-
-
-
-

-
-
- -
-

- - public - - - - - float - -getScoreThreshold -() -

-
-
-
-
-

-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/detector/ObjectDetector.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/detector/ObjectDetector.html deleted file mode 100644 index 26ca22795b..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/detector/ObjectDetector.html +++ /dev/null @@ -1,1107 +0,0 @@ - - - - - - - - - -ObjectDetector - - - -
-
-
-
-
- -
- public final class - ObjectDetector -
-
-
-
-

Performs object detection on images. - -

The API expects a TFLite model with TFLite Model Metadata.. - -

The API supports models with one image input tensor and four output tensors. To be more - specific, here are the requirements. - -

    -
  • Input image tensor (kTfLiteUInt8/kTfLiteFloat32) -
      -
    • image input of size [batch x height x width x channels]. -
    • batch inference is not supported (batch is required to be 1). -
    • only RGB inputs are supported (channels is required to be 3). -
    • if type is kTfLiteFloat32, NormalizationOptions are required to be attached - to the metadata for input normalization. -
    -
  • Output tensors must be the 4 outputs of a DetectionPostProcess op, i.e: -
      -
    • Location tensor (kTfLiteFloat32): -
        -
      • tensor of size [1 x num_results x 4], the inner array representing - bounding boxes in the form [top, left, right, bottom]. -
      • BoundingBoxProperties are required to be attached to the metadata and - must specify type=BOUNDARIES and coordinate_type=RATIO. -
      -
    • Classes tensor (kTfLiteFloat32): -
        -
      • tensor of size [1 x num_results], each value representing the integer - index of a class. -
      • if label maps are attached to the metadata as TENSOR_VALUE_LABELS - associated files, they are used to convert the tensor values into labels. -
      -
    • scores tensor (kTfLiteFloat32): -
        -
      • tensor of size [1 x num_results], each value representing the score of - the detected object. -
      -
    • Number of detection tensor (kTfLiteFloat32): -
        -
      • integer num_results as a tensor of size [1]. -
      -
    -
-

An example of such model can be found on TensorFlow - Hub.. -

-

-
-
- -
-

Nested Classes

- - - - - - -
- - - - - classObjectDetector.ObjectDetectorOptionsOptions for setting up an ObjectDetector. 
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - static - - ObjectDetector - -
-createFromBuffer(ByteBuffer modelBuffer) - -
Creates an ObjectDetector instance with a model buffer and the default ObjectDetector.ObjectDetectorOptions.
-
-
- - - - static - - ObjectDetector - - -
- - - - static - - ObjectDetector - -
-createFromFile(Context context, String modelPath) - -
Creates an ObjectDetector instance from the default ObjectDetector.ObjectDetectorOptions.
-
-
- - - - static - - ObjectDetector - -
-createFromFile(File modelFile) - -
Creates an ObjectDetector instance from the default ObjectDetector.ObjectDetectorOptions.
-
-
- - - - static - - ObjectDetector - - -
- - - - static - - ObjectDetector - - -
-List<Detection> - -
-detect(MlImage image) - -
Performs actual detection on the provided MlImage.
-
-
-List<Detection> - -
-detect(TensorImage image, ImageProcessingOptions options) - -
Performs actual detection on the provided image.
-
-
-List<Detection> - -
-detect(MlImage image, ImageProcessingOptions options) - -
Performs actual detection on the provided MlImage with ImageProcessingOptions.
-
-
-List<Detection> - -
-detect(TensorImage image) - -
Performs actual detection on the provided image.
-
-
-
- -
-

Inherited Methods

- - - - -
-
- -
- - - - - - - - - - -
-

Public Methods

- -
-

- - public - static - - - - ObjectDetector - -createFromBuffer -(ByteBuffer modelBuffer) -

-
-
-
-
-

Creates an ObjectDetector instance with a model buffer and the default ObjectDetector.ObjectDetectorOptions.

-
-
Parameters
- - - - - -
modelBuffera direct ByteBuffer or a MappedByteBuffer of the detection - model
-
-
-
Throws
- - - - - - - - - -
IllegalArgumentExceptionif the model buffer is not a direct ByteBuffer or a - MappedByteBuffer * @throws IllegalStateException if there is an internal error
RuntimeExceptionif there is an otherwise unspecified error -
-
-
-
- -
-

- - public - static - - - - ObjectDetector - -createFromBufferAndOptions -(ByteBuffer modelBuffer, ObjectDetector.ObjectDetectorOptions options) -

-
-
-
-
-

Creates an ObjectDetector instance with a model buffer and ObjectDetector.ObjectDetectorOptions.

-
-
Parameters
- - - - - - - - - -
modelBuffera direct ByteBuffer or a MappedByteBuffer of the detection - model
options
-
-
-
Throws
- - - - - - - - - - - - - -
IllegalArgumentExceptionif the model buffer is not a direct ByteBuffer or a - MappedByteBuffer
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error -
-
-
-
- -
-

- - public - static - - - - ObjectDetector - -createFromFile -(Context context, String modelPath) -

-
-
-
-
-

Creates an ObjectDetector instance from the default ObjectDetector.ObjectDetectorOptions.

-
-
Parameters
- - - - - - - - - -
context
modelPathpath to the detection model with metadata in the assets
-
-
-
Throws
- - - - - - - - - - - - - - - - - -
IOExceptionif an I/O error occurs when loading the tflite model
IllegalArgumentExceptionif an argument is invalid
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error -
-
-
-
- -
-

- - public - static - - - - ObjectDetector - -createFromFile -(File modelFile) -

-
-
-
-
-

Creates an ObjectDetector instance from the default ObjectDetector.ObjectDetectorOptions.

-
-
Parameters
- - - - - -
modelFilethe detection model File instance
-
-
-
Throws
- - - - - - - - - - - - - - - - - -
IOExceptionif an I/O error occurs when loading the tflite model
IllegalArgumentExceptionif an argument is invalid
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error -
-
-
-
- -
-

- - public - static - - - - ObjectDetector - -createFromFileAndOptions -(Context context, String modelPath, ObjectDetector.ObjectDetectorOptions options) -

-
-
-
-
- -
-
Parameters
- - - - - - - - - - - - - -
context
modelPathpath to the detection model with metadata in the assets
options
-
-
-
Throws
- - - - - - - - - - - - - - - - - -
IOExceptionif an I/O error occurs when loading the tflite model
IllegalArgumentExceptionif an argument is invalid
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error -
-
-
-
- -
-

- - public - static - - - - ObjectDetector - -createFromFileAndOptions -(File modelFile, ObjectDetector.ObjectDetectorOptions options) -

-
-
-
-
- -
-
Parameters
- - - - - - - - - -
modelFilethe detection model File instance
options
-
-
-
Throws
- - - - - - - - - - - - - - - - - -
IOExceptionif an I/O error occurs when loading the tflite model
IllegalArgumentExceptionif an argument is invalid
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error -
-
-
-
- -
-

- - public - - - - - List<Detection> - -detect -(MlImage image) -

-
-
-
-
-

Performs actual detection on the provided MlImage.

-
-
Parameters
- - - - - -
imagean MlImage object that represents an image
-
-
-
Throws
- - - - - - - - - - - - - -
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error
IllegalArgumentExceptionif the storage type or format of the image is unsupported -
-
-
-
- -
-

- - public - - - - - List<Detection> - -detect -(TensorImage image, ImageProcessingOptions options) -

-
-
-
-
-

Performs actual detection on the provided image. - -

ObjectDetector supports the following TensorImage color space types: - -

-

ObjectDetector supports the following options: - -

-
-
Parameters
- - - - - - - - - -
imagea UINT8 TensorImage object that represents an RGB or YUV image
optionsthe options to configure how to preprocess the image
-
-
-
Throws
- - - - - - - - - - - - - -
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error
IllegalArgumentExceptionif the color space type of image is unsupported -
-
-
-
- -
-

- - public - - - - - List<Detection> - -detect -(MlImage image, ImageProcessingOptions options) -

-
-
-
-
-

Performs actual detection on the provided MlImage with ImageProcessingOptions. - -

ObjectDetector supports the following options: - -

-
-
Parameters
- - - - - - - - - -
imagean MlImage object that represents an image
optionsthe options to configure how to preprocess the image
-
-
-
Throws
- - - - - - - - - - - - - -
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error
IllegalArgumentExceptionif the storage type or format of the image is unsupported -
-
-
-
- -
-

- - public - - - - - List<Detection> - -detect -(TensorImage image) -

-
-
-
-
-

Performs actual detection on the provided image. - -

ObjectDetector supports the following TensorImage color space types: - -

-
-
Parameters
- - - - - -
imagea UINT8 TensorImage object that represents an RGB or YUV image
-
-
-
Throws
- - - - - - - - - - - - - -
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error
IllegalArgumentExceptionif the color space type of image is unsupported -
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/detector/package-summary.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/detector/package-summary.html deleted file mode 100644 index f739fd8124..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/detector/package-summary.html +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - -org.tensorflow.lite.task.vision.detector - - - -
-
-
-
-
-
-
- -
-
-
-

Classes

-
- - - - - - - - - - - - - - - - - -
DetectionRepresents one detected object in the results of a ObjectDetector
ObjectDetectorPerforms object detection on images. 
ObjectDetector.ObjectDetectorOptionsOptions for setting up an ObjectDetector. 
ObjectDetector.ObjectDetectorOptions.BuilderA builder that helps to configure an instance of ObjectDetectorOptions. 
-
-
-
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/searcher/ImageSearcher.ImageSearcherOptions.Builder.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/searcher/ImageSearcher.ImageSearcherOptions.Builder.html deleted file mode 100644 index 8a65bcb5f7..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/searcher/ImageSearcher.ImageSearcherOptions.Builder.html +++ /dev/null @@ -1,388 +0,0 @@ - - - - - - - - - -ImageSearcher.ImageSearcherOptions.Builder - - - -
-
-
-
-
- -
- public static abstract class - ImageSearcher.ImageSearcherOptions.Builder -
-
-
- -
-
- -
-

Public Constructors

- - - - - -
- -
-Builder() - -
-
-
- -
-

Public Methods

- - - - - - - - - - - - - -
- abstract - - - - - ImageSearcher.ImageSearcherOptions - -
-build() - -
-
- abstract - - - - - ImageSearcher.ImageSearcherOptions.Builder - -
-setBaseOptions(BaseOptions baseOptions) - -
Sets the general options to configure Task APIs, such as accelerators.
-
-
- abstract - - - - - ImageSearcher.ImageSearcherOptions.Builder - -
-setSearcherOptions(SearcherOptions searcherOptions) - -
Sets the options to configure Searcher API.
-
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -Builder -() -

-
-
-
-
-

-
-
-
- - - - -
-

Public Methods

- -
-

- - public - - - abstract - - ImageSearcher.ImageSearcherOptions - -build -() -

-
-
-
-
-

-
-
- -
-

- - public - - - abstract - - ImageSearcher.ImageSearcherOptions.Builder - -setBaseOptions -(BaseOptions baseOptions) -

-
-
-
-
-

Sets the general options to configure Task APIs, such as accelerators.

-
-
Parameters
- - - - - -
baseOptions
-
-
-
- -
-

- - public - - - abstract - - ImageSearcher.ImageSearcherOptions.Builder - -setSearcherOptions -(SearcherOptions searcherOptions) -

-
-
-
-
-

Sets the options to configure Searcher API.

-
-
Parameters
- - - - - -
searcherOptions
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/searcher/ImageSearcher.ImageSearcherOptions.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/searcher/ImageSearcher.ImageSearcherOptions.html deleted file mode 100644 index a677143a7b..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/searcher/ImageSearcher.ImageSearcherOptions.html +++ /dev/null @@ -1,310 +0,0 @@ - - - - - - - - - -ImageSearcher.ImageSearcherOptions - - - -
-
-
-
-
- -
- public static abstract class - ImageSearcher.ImageSearcherOptions -
-
-
-
-

Options for setting up an ImageSearcher.

-
-
-
- -
-

Nested Classes

- - - - - - -
- - - - - classImageSearcher.ImageSearcherOptions.BuilderBuilder for ImageSearcher.ImageSearcherOptions
-
- -
-

Public Constructors

- - - - - -
- - -
-
- -
-

Public Methods

- - - - - -
- - - - static - - ImageSearcher.ImageSearcherOptions.Builder - -
-builder() - -
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -ImageSearcherOptions -() -

-
-
-
-
-

-
-
-
- - - - -
-

Public Methods

- -
-

- - public - static - - - - ImageSearcher.ImageSearcherOptions.Builder - -builder -() -

-
-
-
-
-

-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/searcher/ImageSearcher.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/searcher/ImageSearcher.html deleted file mode 100644 index 235c7239f1..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/searcher/ImageSearcher.html +++ /dev/null @@ -1,915 +0,0 @@ - - - - - - - - - -ImageSearcher - - - -
-
-
-
-
- -
- public final class - ImageSearcher -
-
-
-
-

Performs similarity search on images. - -

The API expects a TFLite model with optional, but strongly recommended, TFLite Model Metadata.. - -

    -
  • Input image tensor (kTfLiteUInt8/kTfLiteFloat32) -
      -
    • image input of size [batch x height x width x channels]. -
    • batch inference is not supported (batch is required to be 1). -
    • only RGB inputs are supported (channels is required to be 3). -
    • if type is kTfLiteFloat32, NormalizationOptions are required to be attached - to the metadata for input normalization. -
    -
  • Output tensor (kTfLiteUInt8/kTfLiteFloat32) -
      -
    • N components corresponding to the N dimensions of the returned - feature vector for this output layer. -
    • Either 2 or 4 dimensions, i.e. [1 x N] or [1 x 1 x 1 x N]. -
    -
-

TODO(b/180502532): add pointer to example model. - -

TODO(b/222671076): add factory create methods without options, such as `createFromFile`, once - the single file format (index file packed in the model) is supported. -

-

-
-
- -
-

Nested Classes

- - - - - - -
- - - - - classImageSearcher.ImageSearcherOptionsOptions for setting up an ImageSearcher. 
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - static - - ImageSearcher - -
-createFromBufferAndOptions(ByteBuffer modelBuffer, ImageSearcher.ImageSearcherOptions options) - -
Creates an ImageSearcher instance with a model buffer and ImageSearcher.ImageSearcherOptions.
-
-
- - - - static - - ImageSearcher - - -
- - - - static - - ImageSearcher - -
-createFromFileAndOptions(Context context, String modelPath, ImageSearcher.ImageSearcherOptions options) - - -
-
- - - - static - - ImageSearcher - -
-createFromFileAndOptions(File modelFile, ImageSearcher.ImageSearcherOptions options) - -
Creates an ImageSearcher instance.
-
-
-List<NearestNeighbor> - -
-search(TensorImage image, ImageProcessingOptions options) - -
Performs embedding extraction on the provided TensorImage with ImageProcessingOptions, followed by nearest-neighbor search in the index.
-
-
-List<NearestNeighbor> - -
-search(MlImage image) - -
Performs embedding extraction on the provided MlImage, followed by nearest-neighbor - search in the index.
-
-
-List<NearestNeighbor> - -
-search(MlImage image, ImageProcessingOptions options) - -
Performs embedding extraction on the provided MlImage with ImageProcessingOptions, followed by nearest-neighbor search in the index.
-
-
-List<NearestNeighbor> - -
-search(TensorImage image) - -
Performs embedding extraction on the provided TensorImage, followed by nearest-neighbor - search in the index.
-
-
-
- -
-

Inherited Methods

- - - - -
-
- -
- - - - - - - - - - -
-

Public Methods

- -
-

- - public - static - - - - ImageSearcher - -createFromBufferAndOptions -(ByteBuffer modelBuffer, ImageSearcher.ImageSearcherOptions options) -

-
-
-
-
-

Creates an ImageSearcher instance with a model buffer and ImageSearcher.ImageSearcherOptions.

-
-
Parameters
- - - - - - - - - -
modelBuffera direct ByteBuffer or a MappedByteBuffer of the search - model
options
-
-
-
Throws
- - - - - - - - - - - - - - - - - -
IllegalArgumentExceptionif the model buffer is not a direct ByteBuffer or a - MappedByteBuffer
IOExceptionif an I/O error occurs when loading the index file
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error -
-
-
-
- -
-

- - public - static - - - - ImageSearcher - -createFromBufferAndOptionsImpl -(ByteBuffer modelBuffer, ImageSearcher.ImageSearcherOptions options, int indexFd) -

-
-
-
-
-

-
-
Parameters
- - - - - - - - - - - - - -
modelBuffer
options
indexFd
-
-
-
- -
-

- - public - static - - - - ImageSearcher - -createFromFileAndOptions -(Context context, String modelPath, ImageSearcher.ImageSearcherOptions options) -

-
-
-
-
- -
-
Parameters
- - - - - - - - - - - - - -
context
modelPathpath of the search model with metadata in the assets
options
-
-
-
Throws
- - - - - - - - - - - - - - - - - -
IOExceptionif an I/O error occurs when loading the tflite model or the index file
IllegalArgumentExceptionif an argument is invalid
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error -
-
-
-
- -
-

- - public - static - - - - ImageSearcher - -createFromFileAndOptions -(File modelFile, ImageSearcher.ImageSearcherOptions options) -

-
-
-
-
-

Creates an ImageSearcher instance.

-
-
Parameters
- - - - - - - - - -
modelFilethe search model File instance
options
-
-
-
Throws
- - - - - - - - - - - - - - - - - -
IOExceptionif an I/O error occurs when loading the tflite model or the index file
IllegalArgumentExceptionif an argument is invalid
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error -
-
-
-
- -
-

- - public - - - - - List<NearestNeighbor> - -search -(TensorImage image, ImageProcessingOptions options) -

-
-
-
-
-

Performs embedding extraction on the provided TensorImage with ImageProcessingOptions, followed by nearest-neighbor search in the index. - -

ImageSearcher supports the following options: - -

-

ImageSearcher supports the following TensorImage color space types: - -

-
-
Parameters
- - - - - - - - - -
imagea UINT8 TensorImage object that represents an RGB or YUV image
options
-
-
-
Throws
- - - - - -
IllegalArgumentExceptionif the color space type of image is unsupported -
-
-
-
- -
-

- - public - - - - - List<NearestNeighbor> - -search -(MlImage image) -

-
-
-
-
-

Performs embedding extraction on the provided MlImage, followed by nearest-neighbor - search in the index.

-
-
Parameters
- - - - - -
imagean MlImage object that represents an image
-
-
-
Throws
- - - - - -
IllegalArgumentExceptionif the storage type or format of the image is unsupported -
-
-
-
- -
-

- - public - - - - - List<NearestNeighbor> - -search -(MlImage image, ImageProcessingOptions options) -

-
-
-
-
-

Performs embedding extraction on the provided MlImage with ImageProcessingOptions, followed by nearest-neighbor search in the index. - -

ImageSearcher supports the following options: - -

-
-
Parameters
- - - - - - - - - -
imagea MlImage object that represents an image
optionsconfigures options including ROI and rotation
-
-
-
Throws
- - - - - -
IllegalArgumentExceptionif the storage type or format of the image is unsupported -
-
-
-
- -
-

- - public - - - - - List<NearestNeighbor> - -search -(TensorImage image) -

-
-
-
-
-

Performs embedding extraction on the provided TensorImage, followed by nearest-neighbor - search in the index. - -

ImageSearcher supports the following TensorImage color space types: - -

-
-
Parameters
- - - - - -
imagea UINT8 TensorImage object that represents an RGB or YUV image
-
-
-
Throws
- - - - - -
IllegalArgumentExceptionif the color space type of image is unsupported -
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/searcher/package-summary.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/searcher/package-summary.html deleted file mode 100644 index 4653e8ce7f..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/searcher/package-summary.html +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - -org.tensorflow.lite.task.vision.searcher - - - -
-
-
-
-
-
-
- -
-
-
-

Classes

-
- - - - - - - - - - - - - -
ImageSearcherPerforms similarity search on images. 
ImageSearcher.ImageSearcherOptionsOptions for setting up an ImageSearcher. 
ImageSearcher.ImageSearcherOptions.BuilderBuilder for ImageSearcher.ImageSearcherOptions
-
-
-
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/segmenter/ColoredLabel.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/segmenter/ColoredLabel.html deleted file mode 100644 index 82042f1b96..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/segmenter/ColoredLabel.html +++ /dev/null @@ -1,533 +0,0 @@ - - - - - - - - - -ColoredLabel - - - -
-
-
-
-
- -
- public abstract class - ColoredLabel -
-
-
-
-

Represents a label associated with a color for display purposes.

-
-
-
- -
-

Public Constructors

- - - - - -
- -
-ColoredLabel() - -
-
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - static - - ColoredLabel - -
-create(String label, String displayName, Color color) - -
Creates a ColoredLabel object with a Color instance.
-
-
- - - - static - - ColoredLabel - -
-create(String label, String displayName, int argb) - -
Creates a ColoredLabel object with an ARGB color int.
-
-
- abstract - - - - - int - -
-getArgb() - -
Gets the ARGB int that represents the color.
-
-
- - - - - - Color - -
-getColor() - -
Gets the Color instance of the underlying color.
-
-
- abstract - - - - - String - - -
- abstract - - - - - String - -
-getlabel() - -
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -ColoredLabel -() -

-
-
-
-
-

-
-
-
- - - - -
-

Public Methods

- -
-

- - public - static - - - - ColoredLabel - -create -(String label, String displayName, Color color) -

-
-
-
-
-

Creates a ColoredLabel object with a Color instance.

-
-
Parameters
- - - - - - - - - - - - - -
labelthe label string, as provided in the label map packed in the TFLite Model - Metadata.
displayNamethe display name of label, as configured through ImageSegmenter.ImageSegmenterOptions.Builder.setDisplayNamesLocale(String)
colorthe color components for the label. The Color instatnce is supported on Android - API level 26 and above. For API level lower than 26, use create(String, String, int). See Android - Color instances. for more details. -
-
-
-
- -
-

- - public - static - - - - ColoredLabel - -create -(String label, String displayName, int argb) -

-
-
-
-
-

Creates a ColoredLabel object with an ARGB color int.

-
-
Parameters
- - - - - - - - - - - - - -
labelthe label string, as provided in the label map packed in the TFLite Model - Metadata.
displayNamethe display name of label, as configured through ImageSegmenter.ImageSegmenterOptions.Builder.setDisplayNamesLocale(String)
argbthe color components for the label in ARGB. See Android - Color ints. for more details. -
-
-
-
- -
-

- - public - - - abstract - - int - -getArgb -() -

-
-
-
-
-

Gets the ARGB int that represents the color. - -

See Android Color - ints. for more details. -

-
-
- -
-

- - public - - - - - Color - -getColor -() -

-
-
-
-
-

Gets the Color instance of the underlying color. - -

The Color instatnce is supported on Android API level 26 and above. For API level lower than - 26, use getArgb(). See Android - Color instances. for more details. -

-
-
- -
-

- - public - - - abstract - - String - -getDisplayName -() -

-
-
-
-
-

-
-
- -
-

- - public - - - abstract - - String - -getlabel -() -

-
-
-
-
-

-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/segmenter/ImageSegmenter.ImageSegmenterOptions.Builder.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/segmenter/ImageSegmenter.ImageSegmenterOptions.Builder.html deleted file mode 100644 index 96d99a427c..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/segmenter/ImageSegmenter.ImageSegmenterOptions.Builder.html +++ /dev/null @@ -1,501 +0,0 @@ - - - - - - - - - -ImageSegmenter.ImageSegmenterOptions.Builder - - - -
-
-
-
-
- -
- public static abstract class - ImageSegmenter.ImageSegmenterOptions.Builder -
-
-
- -
-
- -
-

Public Constructors

- - - - - -
- -
-Builder() - -
-
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - - - - - -
- abstract - - - - - ImageSegmenter.ImageSegmenterOptions - -
-build() - -
-
- abstract - - - - - ImageSegmenter.ImageSegmenterOptions.Builder - -
-setBaseOptions(BaseOptions baseOptions) - -
Sets the general options to configure Task APIs, such as accelerators.
-
-
- abstract - - - - - ImageSegmenter.ImageSegmenterOptions.Builder - -
-setDisplayNamesLocale(String displayNamesLocale) - -
Sets the locale to use for display names specified through the TFLite Model Metadata, if - any.
-
-
- abstract - - - - - ImageSegmenter.ImageSegmenterOptions.Builder - -
-setNumThreads(int numThreads) - -
- This method is deprecated. use BaseOptions to configure number of threads instead. This method - will override the number of threads configured from BaseOptions. -
-
-
- abstract - - - - - ImageSegmenter.ImageSegmenterOptions.Builder - -
-setOutputType(OutputType outputType) - -
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -Builder -() -

-
-
-
-
-

-
-
-
- - - - -
-

Public Methods

- -
-

- - public - - - abstract - - ImageSegmenter.ImageSegmenterOptions - -build -() -

-
-
-
-
-

-
-
- -
-

- - public - - - abstract - - ImageSegmenter.ImageSegmenterOptions.Builder - -setBaseOptions -(BaseOptions baseOptions) -

-
-
-
-
-

Sets the general options to configure Task APIs, such as accelerators.

-
-
Parameters
- - - - - -
baseOptions
-
-
-
- -
-

- - public - - - abstract - - ImageSegmenter.ImageSegmenterOptions.Builder - -setDisplayNamesLocale -(String displayNamesLocale) -

-
-
-
-
-

Sets the locale to use for display names specified through the TFLite Model Metadata, if - any. - -

Defaults to English("en"). See the TFLite - Metadata schema file. for the accepted pattern of locale. -

-
-
Parameters
- - - - - -
displayNamesLocale
-
-
-
- -
-

- - public - - - abstract - - ImageSegmenter.ImageSegmenterOptions.Builder - -setNumThreads -(int numThreads) -

-
-
-
-
-

-

- - This method is deprecated.
use BaseOptions to configure number of threads instead. This method - will override the number of threads configured from BaseOptions. - -

-

Sets the number of threads to be used for TFLite ops that support multi-threading when - running inference with CPU. Defaults to -1. - -

numThreads should be greater than 0 or equal to -1. Setting numThreads to -1 has the - effect to let TFLite runtime set the value.

-
-
Parameters
- - - - - -
numThreads
-
-

-
- -
-

- - public - - - abstract - - ImageSegmenter.ImageSegmenterOptions.Builder - -setOutputType -(OutputType outputType) -

-
-
-
-
-

-
-
Parameters
- - - - - -
outputType
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/segmenter/ImageSegmenter.ImageSegmenterOptions.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/segmenter/ImageSegmenter.ImageSegmenterOptions.html deleted file mode 100644 index aeddf2f5b7..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/segmenter/ImageSegmenter.ImageSegmenterOptions.html +++ /dev/null @@ -1,458 +0,0 @@ - - - - - - - - - -ImageSegmenter.ImageSegmenterOptions - - - -
-
-
-
-
- -
- public static abstract class - ImageSegmenter.ImageSegmenterOptions -
-
-
-
-

Options for setting up an ImageSegmenter.

-
-
-
- -
-

Nested Classes

- - - - - - -
- - - - - classImageSegmenter.ImageSegmenterOptions.BuilderBuilder for ImageSegmenter.ImageSegmenterOptions
-
- -
-

Public Constructors

- - - - - -
- - -
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - - - - - -
- - - - static - - ImageSegmenter.ImageSegmenterOptions.Builder - -
-builder() - -
-
- abstract - - - - - BaseOptions - - -
- abstract - - - - - String - - -
- abstract - - - - - int - -
-getNumThreads() - -
-
- abstract - - - - - OutputType - -
-getOutputType() - -
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -ImageSegmenterOptions -() -

-
-
-
-
-

-
-
-
- - - - -
-

Public Methods

- -
-

- - public - static - - - - ImageSegmenter.ImageSegmenterOptions.Builder - -builder -() -

-
-
-
-
-

-
-
- -
-

- - public - - - abstract - - BaseOptions - -getBaseOptions -() -

-
-
-
-
-

-
-
- -
-

- - public - - - abstract - - String - -getDisplayNamesLocale -() -

-
-
-
-
-

-
-
- -
-

- - public - - - abstract - - int - -getNumThreads -() -

-
-
-
-
-

-
-
- -
-

- - public - - - abstract - - OutputType - -getOutputType -() -

-
-
-
-
-

-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/segmenter/ImageSegmenter.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/segmenter/ImageSegmenter.html deleted file mode 100644 index 227ba85a83..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/segmenter/ImageSegmenter.html +++ /dev/null @@ -1,1166 +0,0 @@ - - - - - - - - - -ImageSegmenter - - - -
-
-
-
-
- -
- public final class - ImageSegmenter -
-
-
-
-

Performs segmentation on images. - -

The API expects a TFLite model with TFLite Model Metadata.. - -

The API supports models with one image input tensor and one output tensor. To be more - specific, here are the requirements. - -

    -
  • Input image tensor (kTfLiteUInt8/kTfLiteFloat32) -
      -
    • image input of size [batch x height x width x channels]. -
    • batch inference is not supported (batch is required to be 1). -
    • only RGB inputs are supported (channels is required to be 3). -
    • if type is kTfLiteFloat32, NormalizationOptions are required to be attached - to the metadata for input normalization. -
    -
  • Output image tensor (kTfLiteUInt8/kTfLiteFloat32) -
      -
    • tensor of size [batch x mask_height x mask_width x num_classes], where batch is required to be 1, mask_width and mask_height are the - dimensions of the segmentation masks produced by the model, and num_classes - is the number of classes supported by the model. -
    • optional (but recommended) label map(s) can be attached as AssociatedFile-s with type - TENSOR_AXIS_LABELS, containing one label per line. The first such AssociatedFile (if - any) is used to fill the class name, i.e. ColoredLabel.getlabel() of the - results. The display name, i.e. ColoredLabel.getDisplayName(), is filled from - the AssociatedFile (if any) whose locale matches the `display_names_locale` field of - the `ImageSegmenterOptions` used at creation time ("en" by default, i.e. English). If - none of these are available, only the `index` field of the results will be filled. -
    -
-

An example of such model can be found on TensorFlow Hub.. -

-

-
-
- -
-

Nested Classes

- - - - - - -
- - - - - classImageSegmenter.ImageSegmenterOptionsOptions for setting up an ImageSegmenter
-
- -
-

Public Methods

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - static - - ImageSegmenter - -
-createFromBuffer(ByteBuffer modelBuffer) - -
Creates an ImageSegmenter instance with a model buffer and the default ImageSegmenter.ImageSegmenterOptions.
-
-
- - - - static - - ImageSegmenter - - -
- - - - static - - ImageSegmenter - -
-createFromFile(Context context, String modelPath) - -
Creates an ImageSegmenter instance from the default ImageSegmenter.ImageSegmenterOptions.
-
-
- - - - static - - ImageSegmenter - -
-createFromFile(File modelFile) - -
Creates an ImageSegmenter instance from the default ImageSegmenter.ImageSegmenterOptions.
-
-
- - - - static - - ImageSegmenter - - -
- - - - static - - ImageSegmenter - - -
-List<Segmentation> - -
-segment(long frameBufferHandle, ImageProcessingOptions options) - -
-
-List<Segmentation> - -
-segment(TensorImage image) - -
Performs actual segmentation on the provided image.
-
-
-List<Segmentation> - -
-segment(MlImage image) - -
Performs actual segmentation on the provided MlImage.
-
-
-List<Segmentation> - -
-segment(TensorImage image, ImageProcessingOptions options) - -
Performs actual segmentation on the provided image with ImageProcessingOptions.
-
-
-List<Segmentation> - -
-segment(MlImage image, ImageProcessingOptions options) - -
Performs actual segmentation on the provided MlImage with ImageProcessingOptions.
-
-
-
- -
-

Inherited Methods

- - - - -
-
- -
- - - - - - - - - - -
-

Public Methods

- -
-

- - public - static - - - - ImageSegmenter - -createFromBuffer -(ByteBuffer modelBuffer) -

-
-
-
-
-

Creates an ImageSegmenter instance with a model buffer and the default ImageSegmenter.ImageSegmenterOptions.

-
-
Parameters
- - - - - -
modelBuffera direct ByteBuffer or a MappedByteBuffer of the - segmentation model
-
-
-
Throws
- - - - - - - - - - - - - -
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error
IllegalArgumentExceptionif the model buffer is not a direct ByteBuffer or a - MappedByteBuffer -
-
-
-
- -
-

- - public - static - - - - ImageSegmenter - -createFromBufferAndOptions -(ByteBuffer modelBuffer, ImageSegmenter.ImageSegmenterOptions options) -

-
-
-
-
-

Creates an ImageSegmenter instance with a model buffer and ImageSegmenter.ImageSegmenterOptions.

-
-
Parameters
- - - - - - - - - -
modelBuffera direct ByteBuffer or a MappedByteBuffer of the - segmentation model
options
-
-
-
Throws
- - - - - - - - - - - - - -
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error
IllegalArgumentExceptionif the model buffer is not a direct ByteBuffer or a - MappedByteBuffer -
-
-
-
- -
-

- - public - static - - - - ImageSegmenter - -createFromFile -(Context context, String modelPath) -

-
-
-
-
-

Creates an ImageSegmenter instance from the default ImageSegmenter.ImageSegmenterOptions.

-
-
Parameters
- - - - - - - - - -
context
modelPathpath of the segmentation model with metadata in the assets
-
-
-
Throws
- - - - - - - - - - - - - - - - - -
IOExceptionif an I/O error occurs when loading the tflite model
IllegalArgumentExceptionif an argument is invalid
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error -
-
-
-
- -
-

- - public - static - - - - ImageSegmenter - -createFromFile -(File modelFile) -

-
-
-
-
-

Creates an ImageSegmenter instance from the default ImageSegmenter.ImageSegmenterOptions.

-
-
Parameters
- - - - - -
modelFilethe segmentation model File instance
-
-
-
Throws
- - - - - - - - - - - - - - - - - -
IOExceptionif an I/O error occurs when loading the tflite model
IllegalArgumentExceptionif an argument is invalid
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error -
-
-
-
- -
-

- - public - static - - - - ImageSegmenter - -createFromFileAndOptions -(File modelFile, ImageSegmenter.ImageSegmenterOptions options) -

-
-
-
-
- -
-
Parameters
- - - - - - - - - -
modelFilethe segmentation model File instance
options
-
-
-
Throws
- - - - - - - - - - - - - - - - - -
IOExceptionif an I/O error occurs when loading the tflite model
IllegalArgumentExceptionif an argument is invalid
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error -
-
-
-
- -
-

- - public - static - - - - ImageSegmenter - -createFromFileAndOptions -(Context context, String modelPath, ImageSegmenter.ImageSegmenterOptions options) -

-
-
-
-
- -
-
Parameters
- - - - - - - - - - - - - -
context
modelPathpath of the segmentation model with metadata in the assets
options
-
-
-
Throws
- - - - - - - - - - - - - - - - - -
IOExceptionif an I/O error occurs when loading the tflite model
IllegalArgumentExceptionif an argument is invalid
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error -
-
-
-
- -
-

- - public - - - - - List<Segmentation> - -segment -(long frameBufferHandle, ImageProcessingOptions options) -

-
-
-
-
-

-
-
Parameters
- - - - - - - - - -
frameBufferHandle
options
-
-
-
- -
-

- - public - - - - - List<Segmentation> - -segment -(TensorImage image) -

-
-
-
-
-

Performs actual segmentation on the provided image. - -

ImageSegmenter supports the following TensorImage color space types: - -

-
-
Parameters
- - - - - -
imagea UINT8 TensorImage object that represents an RGB or YUV image
-
-
-
Returns
-
  • results of performing image segmentation. Note that at the time, a single Segmentation element is expected to be returned. The result is stored in a List - for later extension to e.g. instance segmentation models, which may return one segmentation - per object.
-
-
-
Throws
- - - - - - - - - - - - - -
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error
IllegalArgumentExceptionif the color space type of image is unsupported -
-
-
-
- -
-

- - public - - - - - List<Segmentation> - -segment -(MlImage image) -

-
-
-
-
-

Performs actual segmentation on the provided MlImage.

-
-
Parameters
- - - - - -
imagean MlImage to segment.
-
-
-
Returns
-
  • results of performing image segmentation. Note that at the time, a single Segmentation element is expected to be returned. The result is stored in a List - for later extension to e.g. instance segmentation models, which may return one segmentation - per object.
-
-
-
Throws
- - - - - - - - - - - - - -
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error
IllegalArgumentExceptionif the storage type or format of the image is unsupported -
-
-
-
- -
-

- - public - - - - - List<Segmentation> - -segment -(TensorImage image, ImageProcessingOptions options) -

-
-
-
-
-

Performs actual segmentation on the provided image with ImageProcessingOptions. - -

ImageSegmenter supports the following TensorImage color space types: - -

-

ImageSegmenter supports the following options: - -

-
-
Parameters
- - - - - - - - - -
imagea UINT8 TensorImage object that represents an RGB or YUV image
optionsthe options configure how to preprocess the image
-
-
-
Returns
-
  • results of performing image segmentation. Note that at the time, a single Segmentation element is expected to be returned. The result is stored in a List - for later extension to e.g. instance segmentation models, which may return one segmentation - per object.
-
-
-
Throws
- - - - - - - - - - - - - -
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error
IllegalArgumentExceptionif the color space type of image is unsupported -
-
-
-
- -
-

- - public - - - - - List<Segmentation> - -segment -(MlImage image, ImageProcessingOptions options) -

-
-
-
-
-

Performs actual segmentation on the provided MlImage with ImageProcessingOptions. - -

ImageSegmenter supports the following options: - -

-
-
Parameters
- - - - - - - - - -
imagean MlImage to segment.
optionsthe options configure how to preprocess the image.
-
-
-
Returns
-
  • results of performing image segmentation. Note that at the time, a single Segmentation element is expected to be returned. The result is stored in a List - for later extension to e.g. instance segmentation models, which may return one segmentation - per object.
-
-
-
Throws
- - - - - - - - - - - - - -
IllegalStateExceptionif there is an internal error
RuntimeExceptionif there is an otherwise unspecified error
IllegalArgumentExceptionif the color space type of image is unsupported -
-
-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/segmenter/OutputType.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/segmenter/OutputType.html deleted file mode 100644 index 2f82414a97..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/segmenter/OutputType.html +++ /dev/null @@ -1,440 +0,0 @@ - - - - - - - - - -OutputType - - - -
-
-
-
-
- -
- public enum - OutputType -
-
-
-
-

Output mask type. This allows specifying the type of post-processing to perform on the raw model - results. -

-
-
-
- -
-

Inherited Methods

- - - -
-
- -
- - - - -
-

Enum Values

- -
-

- - public - static - final - - - OutputType - - -CATEGORY_MASK -

-
-
-
-

Gives a single output mask where each pixel represents the class which the pixel in the - original image was predicted to belong to. -

-
-
- -
-

- - public - static - final - - - OutputType - - -CONFIDENCE_MASK -

-
-
-
-

Gives a list of output masks where, for each mask, each pixel represents the prediction - confidence, usually in the [0, 1] range. -

-
-
-
- - - - - - - - - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/segmenter/Segmentation.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/segmenter/Segmentation.html deleted file mode 100644 index 590110baf4..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/segmenter/Segmentation.html +++ /dev/null @@ -1,368 +0,0 @@ - - - - - - - - - -Segmentation - - - -
-
-
-
-
- -
- public abstract class - Segmentation -
-
-
-
-

Represents the segmentation result of an ImageSegmenter.

-
-
-
- -
-

Public Constructors

- - - - - -
- -
-Segmentation() - -
-
-
- -
-

Public Methods

- - - - - - - - - - - - - -
- abstract - - - - - List<ColoredLabel> - - -
- abstract - - - - - List<TensorImage> - -
-getMasks() - -
-
- abstract - - - - - OutputType - -
-getOutputType() - -
-
-
- -
-

Inherited Methods

- -
-
- -
- - - - - - - -
-

Public Constructors

- -
-

- - public - - - - - - -Segmentation -() -

-
-
-
-
-

-
-
-
- - - - -
-

Public Methods

- -
-

- - public - - - abstract - - List<ColoredLabel> - -getColoredLabels -() -

-
-
-
-
-

-
-
- -
-

- - public - - - abstract - - List<TensorImage> - -getMasks -() -

-
-
-
-
-

-
-
- -
-

- - public - - - abstract - - OutputType - -getOutputType -() -

-
-
-
-
-

-
-
-
- - - -
-
- - diff --git a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/segmenter/package-summary.html b/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/segmenter/package-summary.html deleted file mode 100644 index 694c7631b1..0000000000 --- a/site/en/lite/api_docs/java/org/tensorflow/lite/task/vision/segmenter/package-summary.html +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - - - -org.tensorflow.lite.task.vision.segmenter - - - -
-
-
-
-
-
-
- -
-
-
-

Classes

-
- - - - - - - - - - - - - - - - - - - - - -
ColoredLabelRepresents a label associated with a color for display purposes. 
ImageSegmenterPerforms segmentation on images. 
ImageSegmenter.ImageSegmenterOptionsOptions for setting up an ImageSegmenter
ImageSegmenter.ImageSegmenterOptions.BuilderBuilder for ImageSegmenter.ImageSegmenterOptions
SegmentationRepresents the segmentation result of an ImageSegmenter
-
-

Enums

-
- - - - - -
OutputTypeOutput mask type. 
-
-
-
-
- - diff --git a/site/en/lite/api_docs/java/package-list b/site/en/lite/api_docs/java/package-list deleted file mode 100644 index 683835fe42..0000000000 --- a/site/en/lite/api_docs/java/package-list +++ /dev/null @@ -1,31 +0,0 @@ -com.google.android.odml.image -com.google.android.odml.image.annotation -org.tensorflow.lite -org.tensorflow.lite.acceleration -org.tensorflow.lite.gpu -org.tensorflow.lite.support.audio -org.tensorflow.lite.support.common -org.tensorflow.lite.support.common.ops -org.tensorflow.lite.support.image -org.tensorflow.lite.support.image.ops -org.tensorflow.lite.support.label -org.tensorflow.lite.support.label.ops -org.tensorflow.lite.support.metadata -org.tensorflow.lite.support.model -org.tensorflow.lite.support.tensorbuffer -org.tensorflow.lite.task.audio.classifier -org.tensorflow.lite.task.core -org.tensorflow.lite.task.core.vision -org.tensorflow.lite.task.gms.audio -org.tensorflow.lite.task.gms.text -org.tensorflow.lite.task.processor -org.tensorflow.lite.task.text.bertclu -org.tensorflow.lite.task.text.nlclassifier -org.tensorflow.lite.task.text.qa -org.tensorflow.lite.task.text.searcher -org.tensorflow.lite.task.vision.classifier -org.tensorflow.lite.task.vision.core -org.tensorflow.lite.task.vision.detector -org.tensorflow.lite.task.vision.searcher -org.tensorflow.lite.task.vision.segmenter - diff --git a/site/en/lite/api_docs/java/packages.html b/site/en/lite/api_docs/java/packages.html deleted file mode 100644 index 0e2d82c3ce..0000000000 --- a/site/en/lite/api_docs/java/packages.html +++ /dev/null @@ -1,170 +0,0 @@ - - - - - - - - - -Package Index - - - -
-

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-com.google.android.odml.image
-com.google.android.odml.image.annotation
-org.tensorflow.liteDefines classes to load and execute TensorFlowLite models.
-org.tensorflow.lite.acceleration
-org.tensorflow.lite.gpu
-org.tensorflow.lite.support.audio
-org.tensorflow.lite.support.common
-org.tensorflow.lite.support.common.ops
-org.tensorflow.lite.support.image
-org.tensorflow.lite.support.image.ops
-org.tensorflow.lite.support.label
-org.tensorflow.lite.support.label.ops
-org.tensorflow.lite.support.metadata
-org.tensorflow.lite.support.model
-org.tensorflow.lite.support.tensorbuffer
-org.tensorflow.lite.task.audio.classifier
-org.tensorflow.lite.task.core
-org.tensorflow.lite.task.core.vision
-org.tensorflow.lite.task.gms.audio
-org.tensorflow.lite.task.gms.text
-org.tensorflow.lite.task.processor
-org.tensorflow.lite.task.text.bertclu
-org.tensorflow.lite.task.text.nlclassifier
-org.tensorflow.lite.task.text.qa
-org.tensorflow.lite.task.text.searcher
-org.tensorflow.lite.task.vision.classifier
-org.tensorflow.lite.task.vision.core
-org.tensorflow.lite.task.vision.detector
-org.tensorflow.lite.task.vision.searcher
-org.tensorflow.lite.task.vision.segmenter
- - diff --git a/site/en/lite/api_docs/java/screen.css b/site/en/lite/api_docs/java/screen.css deleted file mode 100644 index d6b07a41c6..0000000000 --- a/site/en/lite/api_docs/java/screen.css +++ /dev/null @@ -1,38 +0,0 @@ -/** Heading for "Parameters", "See Also", etc., in details sections */ -body.docs h4.jd-details-title { - font-size: 1.15em; - margin: 1.5em 0 0.6em -0.5em; - padding: 0.2em 8em 0.4em 2.5em; - text-indent: -2em; - background-color: #E9E9E9; /** #DEEAFA */ -} - -#jd-header { - margin-bottom: 1em; -} - -/* Hide empty first cell of constructors */ -#pubctors td.jd-typecol { - display: none; -} - -p { - margin-bottom: 0.7em; -} - -body.docs table th { - border: 1px solid #ddd; -} - -.main tr th { - color: #222; - background-color: #fff; -} - -body.docs h2 { - margin-left: -0.3em; -} - -td.jd-typecol { - min-width: 100px; -} diff --git a/site/en/lite/api_docs/python/tf/lite.md b/site/en/lite/api_docs/python/tf/lite.md deleted file mode 100644 index 75b8fe7ee7..0000000000 --- a/site/en/lite/api_docs/python/tf/lite.md +++ /dev/null @@ -1,44 +0,0 @@ -page_type: reference -description: Public API for tf.lite namespace. - - - - - - -
- - -
- -# Module: tf.lite - - - - - - - - - -Public API for tf.lite namespace. - - - -## Modules - -[`experimental`](../tf/lite/experimental) module: Public API for tf.lite.experimental namespace. - -## Classes - -[`class Interpreter`](../tf/lite/Interpreter): Interpreter interface for running TensorFlow Lite models. - -[`class OpsSet`](../tf/lite/OpsSet): Enum class defining the sets of ops available to generate TFLite models. - -[`class Optimize`](../tf/lite/Optimize): Enum defining the optimizations to apply when generating a tflite model. - -[`class RepresentativeDataset`](../tf/lite/RepresentativeDataset): Representative dataset used to optimize the model. - -[`class TFLiteConverter`](../tf/lite/TFLiteConverter): Converts a TensorFlow model into TensorFlow Lite model. - -[`class TargetSpec`](../tf/lite/TargetSpec): Specification of target device used to optimize the model. diff --git a/site/en/lite/api_docs/python/tf/lite/Interpreter.md b/site/en/lite/api_docs/python/tf/lite/Interpreter.md deleted file mode 100644 index 671ec34e5a..0000000000 --- a/site/en/lite/api_docs/python/tf/lite/Interpreter.md +++ /dev/null @@ -1,778 +0,0 @@ -page_type: reference -description: Interpreter interface for running TensorFlow Lite models. - - - - - - -
- - - - - - - - - - - - - - - -
- -# tf.lite.Interpreter - - - - - - - - - -Interpreter interface for running TensorFlow Lite models. - - - - - - -

Used in the notebooks

- - - - - - - - - - - - - -
Used in the guideUsed in the tutorials
- - - -
- - -Models obtained from `TfLiteConverter` can be run in Python with -`Interpreter`. - -As an example, lets generate a simple Keras model and convert it to TFLite -(`TfLiteConverter` also supports other input formats with `from_saved_model` -and `from_concrete_function`) - -
-x = np.array([[1.], [2.]])
-y = np.array([[2.], [4.]])
-model = tf.keras.models.Sequential([
-          tf.keras.layers.Dropout(0.2),
-          tf.keras.layers.Dense(units=1, input_shape=[1])
-        ])
-model.compile(optimizer='sgd', loss='mean_squared_error')
-model.fit(x, y, epochs=1)
-converter = tf.lite.TFLiteConverter.from_keras_model(model)
-tflite_model = converter.convert()
-
- - -`tflite_model` can be saved to a file and loaded later, or directly into the -`Interpreter`. Since TensorFlow Lite pre-plans tensor allocations to optimize -inference, the user needs to call `allocate_tensors()` before any inference. - -
-interpreter = tf.lite.Interpreter(model_content=tflite_model)
-interpreter.allocate_tensors()  # Needed before execution!
-
- - -#### Sample execution: - -
-output = interpreter.get_output_details()[0]  # Model has single output.
-input = interpreter.get_input_details()[0]  # Model has single input.
-input_data = tf.constant(1., shape=[1, 1])
-interpreter.set_tensor(input['index'], input_data)
-interpreter.invoke()
-interpreter.get_tensor(output['index']).shape
-(1, 1)
-
- - -Use `get_signature_runner()` for a more user-friendly inference API. - - - - - - - - - - - - - - - - - - - - - - - - - -
-`model_path` - -Path to TF-Lite Flatbuffer file. -
-`model_content` - -Content of model. -
-`experimental_delegates` - -Experimental. Subject to change. List of -[TfLiteDelegate](https://www.tensorflow.org/lite/performance/delegates) - objects returned by lite.load_delegate(). -
-`num_threads` - -Sets the number of threads used by the interpreter and -available to CPU kernels. If not set, the interpreter will use an -implementation-dependent default number of threads. Currently, only a -subset of kernels, such as conv, support multi-threading. num_threads -should be >= -1. Setting num_threads to 0 has the effect to disable -multithreading, which is equivalent to setting num_threads to 1. If set -to the value -1, the number of threads used will be -implementation-defined and platform-dependent. -
-`experimental_op_resolver_type` - -The op resolver used by the interpreter. It -must be an instance of OpResolverType. By default, we use the built-in -op resolver which corresponds to tflite::ops::builtin::BuiltinOpResolver -in C++. -
-`experimental_preserve_all_tensors` - -If true, then intermediate tensors used -during computation are preserved for inspection, and if the passed op -resolver type is AUTO or BUILTIN, the type will be changed to -BUILTIN_WITHOUT_DEFAULT_DELEGATES so that no Tensorflow Lite default -delegates are applied. If false, getting intermediate tensors could -result in undefined values or None, especially when the graph is -successfully modified by the Tensorflow Lite default delegate. -
- - - - - - - - - - - - -
-`ValueError` - -If the interpreter was unable to create. -
- - - -## Methods - -

allocate_tensors

- -View source - - - - - - -

get_input_details

- -View source - - - -Gets model input tensor details. - - - - - - - - - - -
Returns
-A list in which each item is a dictionary with details about -an input tensor. Each dictionary contains the following fields -that describe the tensor: - -+ `name`: The tensor name. -+ `index`: The tensor index in the interpreter. -+ `shape`: The shape of the tensor. -+ `shape_signature`: Same as `shape` for models with known/fixed shapes. - If any dimension sizes are unknown, they are indicated with `-1`. - -+ `dtype`: The numpy data type (such as `np.int32` or `np.uint8`). -+ `quantization`: Deprecated, use `quantization_parameters`. This field - only works for per-tensor quantization, whereas - `quantization_parameters` works in all cases. -+ `quantization_parameters`: A dictionary of parameters used to quantize - the tensor: - ~ `scales`: List of scales (one if per-tensor quantization). - ~ `zero_points`: List of zero_points (one if per-tensor quantization). - ~ `quantized_dimension`: Specifies the dimension of per-axis - quantization, in the case of multiple scales/zero_points. -+ `sparsity_parameters`: A dictionary of parameters used to encode a - sparse tensor. This is empty if the tensor is dense. -
- - - -

get_output_details

- -View source - - - -Gets model output tensor details. - - - - - - - - - - -
Returns
-A list in which each item is a dictionary with details about -an output tensor. The dictionary contains the same fields as -described for `get_input_details()`. -
- - - -

get_signature_list

- -View source - - - -Gets list of SignatureDefs in the model. - -Example, - -``` -signatures = interpreter.get_signature_list() -print(signatures) - -# { -# 'add': {'inputs': ['x', 'y'], 'outputs': ['output_0']} -# } - -Then using the names in the signature list you can get a callable from -get_signature_runner(). -``` - - - - - - - - - -
Returns
-A list of SignatureDef details in a dictionary structure. -It is keyed on the SignatureDef method name, and the value holds -dictionary of inputs and outputs. -
- - - -

get_signature_runner

- -View source - - - -Gets callable for inference of specific SignatureDef. - -Example usage, - -``` -interpreter = tf.lite.Interpreter(model_content=tflite_model) -interpreter.allocate_tensors() -fn = interpreter.get_signature_runner('div_with_remainder') -output = fn(x=np.array([3]), y=np.array([2])) -print(output) -# { -# 'quotient': array([1.], dtype=float32) -# 'remainder': array([1.], dtype=float32) -# } -``` - -None can be passed for signature_key if the model has a single Signature -only. - -All names used are this specific SignatureDef names. - - - - - - - - - - - -
Args
-`signature_key` - -Signature key for the SignatureDef, it can be None if and -only if the model has a single SignatureDef. Default value is None. -
- - - - - - - - - - - -
Returns
-This returns a callable that can run inference for SignatureDef defined -by argument 'signature_key'. -The callable will take key arguments corresponding to the arguments of the -SignatureDef, that should have numpy values. -The callable will returns dictionary that maps from output names to numpy -values of the computed results. -
- - - - - - - - - - - - -
Raises
-`ValueError` - -If passed signature_key is invalid. -
- - - -

get_tensor

- -View source - - - -Gets the value of the output tensor (get a copy). - -If you wish to avoid the copy, use `tensor()`. This function cannot be used -to read intermediate results. - - - - - - - - - - - - - -
Args
-`tensor_index` - -Tensor index of tensor to get. This value can be gotten from -the 'index' field in get_output_details. -
-`subgraph_index` - -Index of the subgraph to fetch the tensor. Default value -is 0, which means to fetch from the primary subgraph. -
- - - - - - - - - - - -
Returns
-a numpy array. -
- - - -

get_tensor_details

- -View source - - - -Gets tensor details for every tensor with valid tensor details. - -Tensors where required information about the tensor is not found are not -added to the list. This includes temporary tensors without a name. - - - - - - - - - -
Returns
-A list of dictionaries containing tensor information. -
- - - -

invoke

- -View source - - - -Invoke the interpreter. - -Be sure to set the input sizes, allocate tensors and fill values before -calling this. Also, note that this function releases the GIL so heavy -computation can be done in the background while the Python interpreter -continues. No other function on this object should be called while the -invoke() call has not finished. - - - - - - - - - - -
Raises
-`ValueError` - -When the underlying interpreter fails raise ValueError. -
- - - -

reset_all_variables

- -View source - - - - - - -

resize_tensor_input

- -View source - - - -Resizes an input tensor. - - - - - - - - - - - - - - - - - -
Args
-`input_index` - -Tensor index of input to set. This value can be gotten from -the 'index' field in get_input_details. -
-`tensor_size` - -The tensor_shape to resize the input to. -
-`strict` - -Only unknown dimensions can be resized when `strict` is True. -Unknown dimensions are indicated as `-1` in the `shape_signature` -attribute of a given tensor. (default False) -
- - - - - - - - - - - - -
Raises
-`ValueError` - -If the interpreter could not resize the input tensor. -
- - - -#### Usage: - - -``` -interpreter = Interpreter(model_content=tflite_model) -interpreter.resize_tensor_input(0, [num_test_images, 224, 224, 3]) -interpreter.allocate_tensors() -interpreter.set_tensor(0, test_images) -interpreter.invoke() -``` - -

set_tensor

- -View source - - - -Sets the value of the input tensor. - -Note this copies data in `value`. - -If you want to avoid copying, you can use the `tensor()` function to get a -numpy buffer pointing to the input buffer in the tflite interpreter. - - - - - - - - - - - - - -
Args
-`tensor_index` - -Tensor index of tensor to set. This value can be gotten from -the 'index' field in get_input_details. -
-`value` - -Value of tensor to set. -
- - - - - - - - - - - - -
Raises
-`ValueError` - -If the interpreter could not set the tensor. -
- - - -

tensor

- -View source - - - -Returns function that gives a numpy view of the current tensor buffer. - -This allows reading and writing to this tensors w/o copies. This more -closely mirrors the C++ Interpreter class interface's tensor() member, hence -the name. Be careful to not hold these output references through calls -to `allocate_tensors()` and `invoke()`. This function cannot be used to read -intermediate results. - -#### Usage: - - - -``` -interpreter.allocate_tensors() -input = interpreter.tensor(interpreter.get_input_details()[0]["index"]) -output = interpreter.tensor(interpreter.get_output_details()[0]["index"]) -for i in range(10): - input().fill(3.) - interpreter.invoke() - print("inference %s" % output()) -``` - -Notice how this function avoids making a numpy array directly. This is -because it is important to not hold actual numpy views to the data longer -than necessary. If you do, then the interpreter can no longer be invoked, -because it is possible the interpreter would resize and invalidate the -referenced tensors. The NumPy API doesn't allow any mutability of the -the underlying buffers. - -#### WRONG: - - - -``` -input = interpreter.tensor(interpreter.get_input_details()[0]["index"])() -output = interpreter.tensor(interpreter.get_output_details()[0]["index"])() -interpreter.allocate_tensors() # This will throw RuntimeError -for i in range(10): - input.fill(3.) - interpreter.invoke() # this will throw RuntimeError since input,output -``` - - - - - - - - - - -
Args
-`tensor_index` - -Tensor index of tensor to get. This value can be gotten from -the 'index' field in get_output_details. -
- - - - - - - - - - - -
Returns
-A function that can return a new numpy array pointing to the internal -TFLite tensor state at any point. It is safe to hold the function forever, -but it is not safe to hold the numpy array forever. -
diff --git a/site/en/lite/api_docs/python/tf/lite/OpsSet.md b/site/en/lite/api_docs/python/tf/lite/OpsSet.md deleted file mode 100644 index fd0a22dca4..0000000000 --- a/site/en/lite/api_docs/python/tf/lite/OpsSet.md +++ /dev/null @@ -1,75 +0,0 @@ -page_type: reference -description: Enum class defining the sets of ops available to generate TFLite models. - - - - - - -
- - - - - - -
- -# tf.lite.OpsSet - - - - - - - - - -Enum class defining the sets of ops available to generate TFLite models. - - - -Warning: Experimental interface, subject to change. - - - - - - - - - - - - - - - - - - - - - -
-EXPERIMENTAL_TFLITE_BUILTINS_ACTIVATIONS_INT16_WEIGHTS_INT8 - -`` -
-SELECT_TF_OPS - -`` -
-TFLITE_BUILTINS - -`` -
-TFLITE_BUILTINS_INT8 - -`` -
diff --git a/site/en/lite/api_docs/python/tf/lite/Optimize.md b/site/en/lite/api_docs/python/tf/lite/Optimize.md deleted file mode 100644 index 47ca0e34bc..0000000000 --- a/site/en/lite/api_docs/python/tf/lite/Optimize.md +++ /dev/null @@ -1,98 +0,0 @@ -page_type: reference -description: Enum defining the optimizations to apply when generating a tflite model. - - - - - - -
- - - - - - -
- -# tf.lite.Optimize - - - - - - - - - -Enum defining the optimizations to apply when generating a tflite model. - - - -DEFAULT - The default optimization strategy that enables post-training quantization. - The type of post-training quantization that will be used is dependent on - the other converter options supplied. Refer to the - [documentation](/lite/performance/post_training_quantization) for further - information on the types available and how to use them. - -OPTIMIZE_FOR_SIZE - Deprecated. Does the same as DEFAULT. - -OPTIMIZE_FOR_LATENCY - Deprecated. Does the same as DEFAULT. - -EXPERIMENTAL_SPARSITY - Experimental flag, subject to change. - - Enable optimization by taking advantage of the sparse model weights - trained with pruning. - - The converter will inspect the sparsity pattern of the model weights and - do its best to improve size and latency. - The flag can be used alone to optimize float32 models with sparse weights. - It can also be used together with the DEFAULT optimization mode to - optimize quantized models with sparse weights. - - - - - - - - - - - - - - - - - - - - - -
-DEFAULT - -`` -
-EXPERIMENTAL_SPARSITY - -`` -
-OPTIMIZE_FOR_LATENCY - -`` -
-OPTIMIZE_FOR_SIZE - -`` -
diff --git a/site/en/lite/api_docs/python/tf/lite/RepresentativeDataset.md b/site/en/lite/api_docs/python/tf/lite/RepresentativeDataset.md deleted file mode 100644 index d6b693e2a5..0000000000 --- a/site/en/lite/api_docs/python/tf/lite/RepresentativeDataset.md +++ /dev/null @@ -1,65 +0,0 @@ -page_type: reference -description: Representative dataset used to optimize the model. - - - - - - -
- - - -
- -# tf.lite.RepresentativeDataset - - - - - - - - - -Representative dataset used to optimize the model. - - - - - - - -This is a generator function that provides a small dataset to calibrate or -estimate the range, i.e, (min, max) of all floating-point arrays in the model -(such as model input, activation outputs of intermediate layers, and model -output) for quantization. Usually, this is a small subset of a few hundred -samples randomly chosen, in no particular order, from the training or -evaluation dataset. - - - - - - - - - - -
-`input_gen` - -A generator function that generates input samples for the -model and has the same order, type and shape as the inputs to the model. -Usually, this is a small subset of a few hundred samples randomly -chosen, in no particular order, from the training or evaluation dataset. -
diff --git a/site/en/lite/api_docs/python/tf/lite/TFLiteConverter.md b/site/en/lite/api_docs/python/tf/lite/TFLiteConverter.md deleted file mode 100644 index 337210ecf0..0000000000 --- a/site/en/lite/api_docs/python/tf/lite/TFLiteConverter.md +++ /dev/null @@ -1,535 +0,0 @@ -page_type: reference -description: Converts a TensorFlow model into TensorFlow Lite model. - - - - - - -
- - - - - - - - -
- -# tf.lite.TFLiteConverter - - - - - - - - - -Converts a TensorFlow model into TensorFlow Lite model. - - - - - - -

Used in the notebooks

- - - - - - - - - - - - - -
Used in the guideUsed in the tutorials
- - - -
- - - -#### Example usage: - - - -```python -# Converting a SavedModel to a TensorFlow Lite model. - converter = tf.lite.TFLiteConverter.from_saved_model(saved_model_dir) - tflite_model = converter.convert() - -# Converting a tf.Keras model to a TensorFlow Lite model. -converter = tf.lite.TFLiteConverter.from_keras_model(model) -tflite_model = converter.convert() - -# Converting ConcreteFunctions to a TensorFlow Lite model. -converter = tf.lite.TFLiteConverter.from_concrete_functions([func], model) -tflite_model = converter.convert() - -# Converting a Jax model to a TensorFlow Lite model. -converter = tf.lite.TFLiteConverter.experimental_from_jax([func], [[ - ('input1', input1), ('input2', input2)]]) -tflite_model = converter.convert() -``` - - - - - - - - - - - - - -
-`funcs` - -List of TensorFlow ConcreteFunctions. The list should not contain -duplicate elements. -
-`trackable_obj` - -tf.AutoTrackable object associated with `funcs`. A -reference to this object needs to be maintained so that Variables do not -get garbage collected since functions have a weak reference to -Variables. This is only required when the tf.AutoTrackable object is not -maintained by the user (e.g. `from_saved_model`). -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`optimizations` - -Experimental flag, subject to change. Set of optimizations to -apply. e.g {tf.lite.Optimize.DEFAULT}. (default None, must be None or a -set of values of type tf.lite.Optimize) -
-`representative_dataset` - -A generator function used for integer quantization -where each generated sample has the same order, type and shape as the -inputs to the model. Usually, this is a small subset of a few hundred -samples randomly chosen, in no particular order, from the training or -evaluation dataset. This is an optional attribute, but required for full -integer quantization, i.e, if tf.int8 is the only supported type in -`target_spec.supported_types`. Refer to tf.lite.RepresentativeDataset. -(default None) -
-`target_spec` - -Experimental flag, subject to change. Specifications of target -device, including supported ops set, supported types and a set of user's -defined TensorFlow operators required in the TensorFlow Lite runtime. -Refer to tf.lite.TargetSpec. -
-`inference_input_type` - -Data type of the input layer. Note that integer types -(tf.int8 and tf.uint8) are currently only supported for post training -integer quantization and quantization aware training. (default tf.float32, -must be in {tf.float32, tf.int8, tf.uint8}) -
-`inference_output_type` - -Data type of the output layer. Note that integer -types (tf.int8 and tf.uint8) are currently only supported for post -training integer quantization and quantization aware training. (default -tf.float32, must be in {tf.float32, tf.int8, tf.uint8}) -
-`allow_custom_ops` - -Boolean indicating whether to allow custom operations. -When False, any unknown operation is an error. When True, custom ops are -created for any op that is unknown. The developer needs to provide these -to the TensorFlow Lite runtime with a custom resolver. (default False) -
-`exclude_conversion_metadata` - -Whether not to embed the conversion metadata -into the converted model. (default False) -
-`experimental_new_converter` - -Experimental flag, subject to change. Enables -MLIR-based conversion. (default True) -
-`experimental_new_quantizer` - -Experimental flag, subject to change. Enables -MLIR-based quantization conversion instead of Flatbuffer-based conversion. -(default True) -
-`experimental_enable_resource_variables` - -Experimental flag, subject to -change. Enables -[resource variables](https://tensorflow.org/guide/migrate/tf1_vs_tf2#resourcevariables_instead_of_referencevariables) -to be converted by this converter. This is only allowed if the -from_saved_model interface is used. (default True) -
- - - -## Methods - -

convert

- -View source - - - -Converts a TensorFlow GraphDef based on instance variables. - - - - - - - - - - -
Returns
-The converted data in serialized format. -
- - - - - - - - - - - - -
Raises
-`ValueError` - - No concrete functions is specified. -Multiple concrete functions are specified. -Input shape is not specified. -Invalid quantization parameters. -
- - - -

experimental_from_jax

- -View source - - - -Creates a TFLiteConverter object from a Jax model with its inputs. - - - - - - - - - - - - - - -
Args
-`serving_funcs` - -A array of Jax functions with all the weights applied -already. -
-`inputs` - -A array of Jax input placeholders tuples list, e.g., -jnp.zeros(INPUT_SHAPE). Each tuple list should correspond with the -serving function. -
- - - - - - - - - - - -
Returns
-TFLiteConverter object. -
- - - -

from_concrete_functions

- -View source - - - -Creates a TFLiteConverter object from ConcreteFunctions. - - - - - - - - - - - - - - -
Args
-`funcs` - -List of TensorFlow ConcreteFunctions. The list should not contain -duplicate elements. Currently converter can only convert a single -ConcreteFunction. Converting multiple functions is under development. -
-`trackable_obj` - - An `AutoTrackable` object (typically `tf.module`) -associated with `funcs`. A reference to this object needs to be -maintained so that Variables do not get garbage collected since -functions have a weak reference to Variables. -
- - - - - - - - - - - -
Returns
-TFLiteConverter object. -
- - - - - - - - - - - -
Raises
-Invalid input type. -
- - - -

from_keras_model

- -View source - - - -Creates a TFLiteConverter object from a Keras model. - - - - - - - - - - - -
Args
-`model` - -tf.Keras.Model -
- - - - - - - - - - - -
Returns
-TFLiteConverter object. -
- - - -

from_saved_model

- -View source - - - -Creates a TFLiteConverter object from a SavedModel directory. - - - - - - - - - - - - - - - - - -
Args
-`saved_model_dir` - -SavedModel directory to convert. -
-`signature_keys` - -List of keys identifying SignatureDef containing inputs -and outputs. Elements should not be duplicated. By default the -`signatures` attribute of the MetaGraphdef is used. (default -saved_model.signatures) -
-`tags` - -Set of tags identifying the MetaGraphDef within the SavedModel to -analyze. All tags in the tag set must be present. (default -{tf.saved_model.SERVING} or {'serve'}) -
- - - - - - - - - - - -
Returns
-TFLiteConverter object. -
- - - - - - - - - - - -
Raises
-Invalid signature keys. -
diff --git a/site/en/lite/api_docs/python/tf/lite/TargetSpec.md b/site/en/lite/api_docs/python/tf/lite/TargetSpec.md deleted file mode 100644 index e7798cedb2..0000000000 --- a/site/en/lite/api_docs/python/tf/lite/TargetSpec.md +++ /dev/null @@ -1,113 +0,0 @@ -page_type: reference -description: Specification of target device used to optimize the model. - - - - - - -
- - - -
- -# tf.lite.TargetSpec - - - - - - - - - -Specification of target device used to optimize the model. - - - - - - -

Used in the notebooks

- - - - - - - - - - - -
Used in the guide
- -
- - - - - - - - - - - - - - - - - - - - - - - -
-`supported_ops` - -Experimental flag, subject to change. Set of tf.lite.OpsSet -options, where each option represents a set of operators supported by the -target device. (default {tf.lite.OpsSet.TFLITE_BUILTINS})) -
-`supported_types` - -Set of tf.dtypes.DType data types supported on the target -device. If initialized, optimization might be driven by the smallest type -in this set. (default set()) -
-`experimental_select_user_tf_ops` - -Experimental flag, subject to change. Set -of user's TensorFlow operators' names that are required in the TensorFlow -Lite runtime. These ops will be exported as select TensorFlow ops in the -model (in conjunction with the tf.lite.OpsSet.SELECT_TF_OPS flag). This is -an advanced feature that should only be used if the client is using TF ops -that may not be linked in by default with the TF ops that are provided -when using the SELECT_TF_OPS path. The client is responsible for linking -these ops into the target runtime. -
-`experimental_supported_backends` - -Experimental flag, subject to change. -Set containing names of supported backends. Currently only "GPU" is -supported, more options will be available later. -
diff --git a/site/en/lite/api_docs/python/tf/lite/_toc.yaml b/site/en/lite/api_docs/python/tf/lite/_toc.yaml deleted file mode 100644 index 77f60392da..0000000000 --- a/site/en/lite/api_docs/python/tf/lite/_toc.yaml +++ /dev/null @@ -1,38 +0,0 @@ -toc: -- title: tf.lite - section: - - title: Overview - path: /lite/api_docs/python/tf/lite - - title: Interpreter - path: /lite/api_docs/python/tf/lite/Interpreter - - title: OpsSet - path: /lite/api_docs/python/tf/lite/OpsSet - - title: Optimize - path: /lite/api_docs/python/tf/lite/Optimize - - title: RepresentativeDataset - path: /lite/api_docs/python/tf/lite/RepresentativeDataset - - title: TFLiteConverter - path: /lite/api_docs/python/tf/lite/TFLiteConverter - - title: TargetSpec - path: /lite/api_docs/python/tf/lite/TargetSpec - - title: experimental - status: experimental - section: - - title: Overview - path: /lite/api_docs/python/tf/lite/experimental - - title: Analyzer - path: /lite/api_docs/python/tf/lite/experimental/Analyzer - - title: OpResolverType - path: /lite/api_docs/python/tf/lite/experimental/OpResolverType - - title: QuantizationDebugOptions - path: /lite/api_docs/python/tf/lite/experimental/QuantizationDebugOptions - - title: QuantizationDebugger - path: /lite/api_docs/python/tf/lite/experimental/QuantizationDebugger - - title: load_delegate - path: /lite/api_docs/python/tf/lite/experimental/load_delegate - - title: authoring - section: - - title: Overview - path: /lite/api_docs/python/tf/lite/experimental/authoring - - title: compatible - path: /lite/api_docs/python/tf/lite/experimental/authoring/compatible diff --git a/site/en/lite/api_docs/python/tf/lite/all_symbols.md b/site/en/lite/api_docs/python/tf/lite/all_symbols.md deleted file mode 100644 index eb36a01004..0000000000 --- a/site/en/lite/api_docs/python/tf/lite/all_symbols.md +++ /dev/null @@ -1,27 +0,0 @@ -page_type: reference - - - - - -# All symbols in TensorFlow Lite - - - -## Primary symbols - -* tf.lite -* tf.lite.Interpreter -* tf.lite.OpsSet -* tf.lite.Optimize -* tf.lite.RepresentativeDataset -* tf.lite.TFLiteConverter -* tf.lite.TargetSpec -* tf.lite.experimental -* tf.lite.experimental.Analyzer -* tf.lite.experimental.OpResolverType -* tf.lite.experimental.QuantizationDebugOptions -* tf.lite.experimental.QuantizationDebugger -* tf.lite.experimental.authoring -* tf.lite.experimental.authoring.compatible -* tf.lite.experimental.load_delegate diff --git a/site/en/lite/api_docs/python/tf/lite/experimental.md b/site/en/lite/api_docs/python/tf/lite/experimental.md deleted file mode 100644 index eb05b917c3..0000000000 --- a/site/en/lite/api_docs/python/tf/lite/experimental.md +++ /dev/null @@ -1,44 +0,0 @@ -page_type: reference -description: Public API for tf.lite.experimental namespace. - - - - - - -
- - -
- -# Module: tf.lite.experimental - - - - - - - - - -Public API for tf.lite.experimental namespace. - - - -## Modules - -[`authoring`](../../tf/lite/experimental/authoring) module: Public API for tf.lite.experimental.authoring namespace. - -## Classes - -[`class Analyzer`](../../tf/lite/experimental/Analyzer): Provides a collection of TFLite model analyzer tools. - -[`class OpResolverType`](../../tf/lite/experimental/OpResolverType): Different types of op resolvers for Tensorflow Lite. - -[`class QuantizationDebugOptions`](../../tf/lite/experimental/QuantizationDebugOptions): Debug options to set up a given QuantizationDebugger. - -[`class QuantizationDebugger`](../../tf/lite/experimental/QuantizationDebugger): Debugger for Quantized TensorFlow Lite debug mode models. - -## Functions - -[`load_delegate(...)`](../../tf/lite/experimental/load_delegate): Returns loaded Delegate object. diff --git a/site/en/lite/api_docs/python/tf/lite/experimental/Analyzer.md b/site/en/lite/api_docs/python/tf/lite/experimental/Analyzer.md deleted file mode 100644 index 328ad057cd..0000000000 --- a/site/en/lite/api_docs/python/tf/lite/experimental/Analyzer.md +++ /dev/null @@ -1,149 +0,0 @@ -page_type: reference -description: Provides a collection of TFLite model analyzer tools. - - - - - - -
- - - -
- -# tf.lite.experimental.Analyzer - - - - - - - - - -Provides a collection of TFLite model analyzer tools. - - -

Used in the notebooks

- - - - - - - - - - - -
Used in the guide
- -
- - - -#### Example: - - - -```python -model = tf.keras.applications.MobileNetV3Large() -fb_model = tf.lite.TFLiteConverterV2.from_keras_model(model).convert() -tf.lite.experimental.Analyzer.analyze(model_content=fb_model) -# === TFLite ModelAnalyzer === -# -# Your TFLite model has ‘1’ subgraph(s). In the subgraph description below, -# T# represents the Tensor numbers. For example, in Subgraph#0, the MUL op -# takes tensor #0 and tensor #19 as input and produces tensor #136 as output. -# -# Subgraph#0 main(T#0) -> [T#263] -# Op#0 MUL(T#0, T#19) -> [T#136] -# Op#1 ADD(T#136, T#18) -> [T#137] -# Op#2 CONV_2D(T#137, T#44, T#93) -> [T#138] -# Op#3 HARD_SWISH(T#138) -> [T#139] -# Op#4 DEPTHWISE_CONV_2D(T#139, T#94, T#24) -> [T#140] -# ... -``` - -Warning: Experimental interface, subject to change. - -## Methods - -

analyze

- -View source - - - -Analyzes the given tflite_model with dumping model structure. - -This tool provides a way to understand users' TFLite flatbuffer model by -dumping internal graph structure. It also provides additional features -like checking GPU delegate compatibility. - -Warning: Experimental interface, subject to change. - The output format is not guaranteed to stay stable, so don't - write scripts to this. - - - - - - - - - - - - - - - - - - - -
Args
-`model_path` - -TFLite flatbuffer model path. -
-`model_content` - -TFLite flatbuffer model object. -
-`gpu_compatibility` - -Whether to check GPU delegate compatibility. -
-`**kwargs` - -Experimental keyword arguments to analyze API. -
- - - - - - - - - - - -
Returns
-Print analyzed report via console output. -
diff --git a/site/en/lite/api_docs/python/tf/lite/experimental/OpResolverType.md b/site/en/lite/api_docs/python/tf/lite/experimental/OpResolverType.md deleted file mode 100644 index 03f8bae159..0000000000 --- a/site/en/lite/api_docs/python/tf/lite/experimental/OpResolverType.md +++ /dev/null @@ -1,85 +0,0 @@ -page_type: reference -description: Different types of op resolvers for Tensorflow Lite. - - - - - - -
- - - - - - -
- -# tf.lite.experimental.OpResolverType - - - - - - - - - -Different types of op resolvers for Tensorflow Lite. - - - -* `AUTO`: Indicates the op resolver that is chosen by default in TfLite - Python, which is the "BUILTIN" as described below. -* `BUILTIN`: Indicates the op resolver for built-in ops with optimized kernel - implementation. -* `BUILTIN_REF`: Indicates the op resolver for built-in ops with reference - kernel implementation. It's generally used for testing and debugging. -* `BUILTIN_WITHOUT_DEFAULT_DELEGATES`: Indicates the op resolver for - built-in ops with optimized kernel implementation, but it will disable - the application of default TfLite delegates (like the XNNPACK delegate) to - the model graph. Generally this should not be used unless there are issues - with the default configuration. - - - - - - - - - - - - - - - - - - - - - -
-AUTO - -`` -
-BUILTIN - -`` -
-BUILTIN_REF - -`` -
-BUILTIN_WITHOUT_DEFAULT_DELEGATES - -`` -
diff --git a/site/en/lite/api_docs/python/tf/lite/experimental/QuantizationDebugOptions.md b/site/en/lite/api_docs/python/tf/lite/experimental/QuantizationDebugOptions.md deleted file mode 100644 index 5743c638c1..0000000000 --- a/site/en/lite/api_docs/python/tf/lite/experimental/QuantizationDebugOptions.md +++ /dev/null @@ -1,149 +0,0 @@ -page_type: reference -description: Debug options to set up a given QuantizationDebugger. - - - - - - -
- - - -
- -# tf.lite.experimental.QuantizationDebugOptions - - - - - - - - - -Debug options to set up a given QuantizationDebugger. - - - - - - -

Used in the notebooks

- - - - - - - - - - - -
Used in the tutorials
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`layer_debug_metrics` - -a dict to specify layer debug functions -{function_name_str: function} where the function accepts result of - NumericVerify Op, which is value difference between float and - dequantized op results. The function returns single scalar value. -
-`model_debug_metrics` - -a dict to specify model debug functions -{function_name_str: function} where the function accepts outputs from - two models, and returns single scalar value for a metric. (e.g. - accuracy, IoU) -
-`layer_direct_compare_metrics` - -a dict to specify layer debug functions -{function_name_str: function}. The signature is different from that of - `layer_debug_metrics`, and this one gets passed (original float value, - original quantized value, scale, zero point). The function's - implementation is responsible for correctly dequantize the quantized - value to compare. Use this one when comparing diff is not enough. - (Note) quantized value is passed as int8, so cast to int32 is needed. -
-`denylisted_ops` - -a list of op names which is expected to be removed from -quantization. -
-`denylisted_nodes` - -a list of op's output tensor names to be removed from -quantization. -
-`fully_quantize` - -Bool indicating whether to fully quantize the model. -Besides model body, the input/output will be quantized as well. -Corresponding to mlir_quantize's fully_quantize parameter. -
- - - - - - - - - - - - -
-`ValueError` - -when there are duplicate keys -
diff --git a/site/en/lite/api_docs/python/tf/lite/experimental/QuantizationDebugger.md b/site/en/lite/api_docs/python/tf/lite/experimental/QuantizationDebugger.md deleted file mode 100644 index a64c7d59ee..0000000000 --- a/site/en/lite/api_docs/python/tf/lite/experimental/QuantizationDebugger.md +++ /dev/null @@ -1,302 +0,0 @@ -page_type: reference -description: Debugger for Quantized TensorFlow Lite debug mode models. - - - - - - -
- - - - - - - -
- -# tf.lite.experimental.QuantizationDebugger - - - - - - - - - -Debugger for Quantized TensorFlow Lite debug mode models. - - - - - - -

Used in the notebooks

- - - - - - - - - - - -
Used in the tutorials
- -
- - -This can run the TensorFlow Lite converted models equipped with debug ops and -collect debug information. This debugger calculates statistics from -user-defined post-processing functions as well as default ones. - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`quant_debug_model_path` - -Path to the quantized debug TFLite model file. -
-`quant_debug_model_content` - -Content of the quantized debug TFLite model. -
-`float_model_path` - -Path to float TFLite model file. -
-`float_model_content` - -Content of the float TFLite model. -
-`debug_dataset` - -a factory function that returns dataset generator which is -used to generate input samples (list of np.ndarray) for the model. The -generated elements must have same types and shape as inputs to the -model. -
-`debug_options` - -Debug options to debug the given model. -
-`converter` - -Optional, use converter instead of quantized model. -
- - - - - - - - - - - - -
-`ValueError` - -If the debugger was unable to be created. -
- - - - - - - - - - - - - - -
-`options` - - -
- - - -## Methods - -

get_debug_quantized_model

- -View source - - - -Returns an instrumented quantized model. - -Convert the quantized model with the initialized converter and -return bytes for model. The model will be instrumented with numeric -verification operations and should only be used for debugging. - - - - - - - - - -
Returns
-Model bytes corresponding to the model. -
- - - - - - - - - - - - -
Raises
-`ValueError` - -if converter is not passed to the debugger. -
- - - -

get_nondebug_quantized_model

- -View source - - - -Returns a non-instrumented quantized model. - -Convert the quantized model with the initialized converter and -return bytes for nondebug model. The model will not be instrumented with -numeric verification operations. - - - - - - - - - -
Returns
-Model bytes corresponding to the model. -
- - - - - - - - - - - - -
Raises
-`ValueError` - -if converter is not passed to the debugger. -
- - - -

layer_statistics_dump

- -View source - - - -Dumps layer statistics into file, in csv format. - - - - - - - - - - - -
Args
-`file` - -file, or file-like object to write. -
- - - -

run

- -View source - - - -Runs models and gets metrics. diff --git a/site/en/lite/api_docs/python/tf/lite/experimental/authoring.md b/site/en/lite/api_docs/python/tf/lite/experimental/authoring.md deleted file mode 100644 index ee881cbad7..0000000000 --- a/site/en/lite/api_docs/python/tf/lite/experimental/authoring.md +++ /dev/null @@ -1,30 +0,0 @@ -page_type: reference -description: Public API for tf.lite.experimental.authoring namespace. - - - - - - -
- - -
- -# Module: tf.lite.experimental.authoring - - - - - - - - - -Public API for tf.lite.experimental.authoring namespace. - - - -## Functions - -[`compatible(...)`](../../../tf/lite/experimental/authoring/compatible): Wraps tf.function into a callable function with TFLite compatibility checking. diff --git a/site/en/lite/api_docs/python/tf/lite/experimental/authoring/compatible.md b/site/en/lite/api_docs/python/tf/lite/experimental/authoring/compatible.md deleted file mode 100644 index 48a641571c..0000000000 --- a/site/en/lite/api_docs/python/tf/lite/experimental/authoring/compatible.md +++ /dev/null @@ -1,125 +0,0 @@ -page_type: reference -description: Wraps tf.function into a callable function with TFLite compatibility checking. - - - - - - -
- - -
- -# tf.lite.experimental.authoring.compatible - - - - - - - - - -Wraps tf.function into a callable function with TFLite compatibility checking. - - - - - - - -

Used in the notebooks

- - - - - - - - - - - -
Used in the guide
- -
- - - -#### Example: - - - -```python -@tf.lite.experimental.authoring.compatible -@tf.function(input_signature=[ - tf.TensorSpec(shape=[None], dtype=tf.float32) -]) -def f(x): - return tf.cosh(x) - -result = f(tf.constant([0.0])) -# COMPATIBILITY WARNING: op 'tf.Cosh' require(s) "Select TF Ops" for model -# conversion for TensorFlow Lite. -# Op: tf.Cosh -# - tensorflow/python/framework/op_def_library.py:748 -# - tensorflow/python/ops/gen_math_ops.py:2458 -# - :6 -``` - -Warning: Experimental interface, subject to change. - - - - - - - - - - - - - - - - -
-`target` - -A tf.function to decorate. -
-`converter_target_spec` - -target_spec of TFLite converter parameter. -
-`**kwargs` - -The keyword arguments of the decorator class _Compatible. -
- - - - - - - - - - - -
-A callable object of `tf.lite.experimental.authoring._Compatible`. -
diff --git a/site/en/lite/api_docs/python/tf/lite/experimental/load_delegate.md b/site/en/lite/api_docs/python/tf/lite/experimental/load_delegate.md deleted file mode 100644 index 041b79c3c1..0000000000 --- a/site/en/lite/api_docs/python/tf/lite/experimental/load_delegate.md +++ /dev/null @@ -1,128 +0,0 @@ -page_type: reference -description: Returns loaded Delegate object. - - - - - - -
- - -
- -# tf.lite.experimental.load_delegate - - - - - - - - - -Returns loaded Delegate object. - - - - - - - - - -#### Example usage: - - - -``` -import tensorflow as tf - -try: - delegate = tf.lite.experimental.load_delegate('delegate.so') -except ValueError: - // Fallback to CPU - -if delegate: - interpreter = tf.lite.Interpreter( - model_path='model.tflite', - experimental_delegates=[delegate]) -else: - interpreter = tf.lite.Interpreter(model_path='model.tflite') -``` - -This is typically used to leverage EdgeTPU for running TensorFlow Lite models. -For more information see: https://coral.ai/docs/edgetpu/tflite-python/ - - - - - - - - - - - - - -
-`library` - -Name of shared library containing the -[TfLiteDelegate](https://www.tensorflow.org/lite/performance/delegates). -
-`options` - -Dictionary of options that are required to load the delegate. All -keys and values in the dictionary should be convertible to str. Consult -the documentation of the specific delegate for required and legal options. -(default None) -
- - - - - - - - - - - -
-Delegate object. -
- - - - - - - - - - - - - - - -
-`ValueError` - -Delegate failed to load. -
-`RuntimeError` - -If delegate loading is used on unsupported platform. -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker.md b/site/en/lite/api_docs/python/tflite_model_maker.md deleted file mode 100644 index 38c8da298a..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker.md +++ /dev/null @@ -1,94 +0,0 @@ -page_type: reference -description: Public APIs for TFLite Model Maker, a transfer learning library to train custom TFLite models. - - - - - - -
- - - -
- -# Module: tflite_model_maker - - - - - - - - - -Public APIs for TFLite Model Maker, a transfer learning library to train custom TFLite models. - - -You can install the package with - -```bash -pip install tflite-model-maker -``` - -Typical usage of Model Maker is to create a model in a few lines of code, e.g.: - -```python -# Load input data specific to an on-device ML app. -data = DataLoader.from_folder('flower_photos/') -train_data, test_data = data.split(0.9) - -# Customize the TensorFlow model. -model = image_classifier.create(train_data) - -# Evaluate the model. -accuracy = model.evaluate(test_data) - -# Export to Tensorflow Lite model and label file in `export_dir`. -model.export(export_dir='/tmp/') -``` - -For more details, please refer to our guide: -https://www.tensorflow.org/lite/guide/model_maker - -## Modules - -[`audio_classifier`](./tflite_model_maker/audio_classifier) module: APIs to train an audio classification model. - -[`config`](./tflite_model_maker/config) module: APIs for the config of TFLite Model Maker. - -[`image_classifier`](./tflite_model_maker/image_classifier) module: APIs to train an image classification model. - -[`model_spec`](./tflite_model_maker/model_spec) module: APIs for the model spec of TFLite Model Maker. - -[`object_detector`](./tflite_model_maker/object_detector) module: APIs to train an object detection model. - -[`question_answer`](./tflite_model_maker/question_answer) module: APIs to train a model that can answer questions based on a predefined text. - -[`recommendation`](./tflite_model_maker/recommendation) module: APIs to train an on-device recommendation model. - -[`searcher`](./tflite_model_maker/searcher) module: APIs to create the searcher model. - -[`text_classifier`](./tflite_model_maker/text_classifier) module: APIs to train a text classification model. - - - - - - - - - - - - -
-__version__ - -`'0.4.2'` -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker/_toc.yaml b/site/en/lite/api_docs/python/tflite_model_maker/_toc.yaml deleted file mode 100644 index 21dfe368c5..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/_toc.yaml +++ /dev/null @@ -1,162 +0,0 @@ -toc: -- title: tflite_model_maker - section: - - title: Overview - path: /lite/api_docs/python/tflite_model_maker - - title: audio_classifier - section: - - title: Overview - path: /lite/api_docs/python/tflite_model_maker/audio_classifier - - title: AudioClassifier - path: /lite/api_docs/python/tflite_model_maker/audio_classifier/AudioClassifier - - title: BrowserFftSpec - path: /lite/api_docs/python/tflite_model_maker/audio_classifier/BrowserFftSpec - - title: DataLoader - path: /lite/api_docs/python/tflite_model_maker/audio_classifier/DataLoader - - title: YamNetSpec - path: /lite/api_docs/python/tflite_model_maker/audio_classifier/YamNetSpec - - title: create - path: /lite/api_docs/python/tflite_model_maker/audio_classifier/create - - title: config - section: - - title: Overview - path: /lite/api_docs/python/tflite_model_maker/config - - title: ExportFormat - path: /lite/api_docs/python/tflite_model_maker/config/ExportFormat - - title: QuantizationConfig - path: /lite/api_docs/python/tflite_model_maker/config/QuantizationConfig - - title: image_classifier - section: - - title: Overview - path: /lite/api_docs/python/tflite_model_maker/image_classifier - - title: DataLoader - path: /lite/api_docs/python/tflite_model_maker/image_classifier/DataLoader - - title: EfficientNetLite0Spec - path: /lite/api_docs/python/tflite_model_maker/image_classifier/EfficientNetLite0Spec - - title: EfficientNetLite1Spec - path: /lite/api_docs/python/tflite_model_maker/image_classifier/EfficientNetLite1Spec - - title: EfficientNetLite2Spec - path: /lite/api_docs/python/tflite_model_maker/image_classifier/EfficientNetLite2Spec - - title: EfficientNetLite3Spec - path: /lite/api_docs/python/tflite_model_maker/image_classifier/EfficientNetLite3Spec - - title: EfficientNetLite4Spec - path: /lite/api_docs/python/tflite_model_maker/image_classifier/EfficientNetLite4Spec - - title: ImageClassifier - path: /lite/api_docs/python/tflite_model_maker/image_classifier/ImageClassifier - - title: MobileNetV2Spec - path: /lite/api_docs/python/tflite_model_maker/image_classifier/MobileNetV2Spec - - title: ModelSpec - path: /lite/api_docs/python/tflite_model_maker/image_classifier/ModelSpec - - title: Resnet50Spec - path: /lite/api_docs/python/tflite_model_maker/image_classifier/Resnet50Spec - - title: create - path: /lite/api_docs/python/tflite_model_maker/image_classifier/create - - title: model_spec - section: - - title: Overview - path: /lite/api_docs/python/tflite_model_maker/model_spec - - title: get - path: /lite/api_docs/python/tflite_model_maker/model_spec/get - - title: object_detector - section: - - title: Overview - path: /lite/api_docs/python/tflite_model_maker/object_detector - - title: DataLoader - path: /lite/api_docs/python/tflite_model_maker/object_detector/DataLoader - - title: EfficientDetLite0Spec - path: /lite/api_docs/python/tflite_model_maker/object_detector/EfficientDetLite0Spec - - title: EfficientDetLite1Spec - path: /lite/api_docs/python/tflite_model_maker/object_detector/EfficientDetLite1Spec - - title: EfficientDetLite2Spec - path: /lite/api_docs/python/tflite_model_maker/object_detector/EfficientDetLite2Spec - - title: EfficientDetLite3Spec - path: /lite/api_docs/python/tflite_model_maker/object_detector/EfficientDetLite3Spec - - title: EfficientDetLite4Spec - path: /lite/api_docs/python/tflite_model_maker/object_detector/EfficientDetLite4Spec - - title: EfficientDetSpec - path: /lite/api_docs/python/tflite_model_maker/object_detector/EfficientDetSpec - - title: ObjectDetector - path: /lite/api_docs/python/tflite_model_maker/object_detector/ObjectDetector - - title: create - path: /lite/api_docs/python/tflite_model_maker/object_detector/create - - title: question_answer - section: - - title: Overview - path: /lite/api_docs/python/tflite_model_maker/question_answer - - title: BertQaSpec - path: /lite/api_docs/python/tflite_model_maker/question_answer/BertQaSpec - - title: DataLoader - path: /lite/api_docs/python/tflite_model_maker/question_answer/DataLoader - - title: MobileBertQaSpec - path: /lite/api_docs/python/tflite_model_maker/question_answer/MobileBertQaSpec - - title: MobileBertQaSquadSpec - path: /lite/api_docs/python/tflite_model_maker/question_answer/MobileBertQaSquadSpec - - title: QuestionAnswer - path: /lite/api_docs/python/tflite_model_maker/question_answer/QuestionAnswer - - title: create - path: /lite/api_docs/python/tflite_model_maker/question_answer/create - - title: recommendation - section: - - title: Overview - path: /lite/api_docs/python/tflite_model_maker/recommendation - - title: DataLoader - path: /lite/api_docs/python/tflite_model_maker/recommendation/DataLoader - - title: ModelSpec - path: /lite/api_docs/python/tflite_model_maker/recommendation/ModelSpec - - title: Recommendation - path: /lite/api_docs/python/tflite_model_maker/recommendation/Recommendation - - title: create - path: /lite/api_docs/python/tflite_model_maker/recommendation/create - - title: spec - section: - - title: Overview - path: /lite/api_docs/python/tflite_model_maker/recommendation/spec - - title: Feature - path: /lite/api_docs/python/tflite_model_maker/recommendation/spec/Feature - - title: FeatureGroup - path: /lite/api_docs/python/tflite_model_maker/recommendation/spec/FeatureGroup - - title: InputSpec - path: /lite/api_docs/python/tflite_model_maker/recommendation/spec/InputSpec - - title: ModelHParams - path: /lite/api_docs/python/tflite_model_maker/recommendation/spec/ModelHParams - - title: searcher - section: - - title: Overview - path: /lite/api_docs/python/tflite_model_maker/searcher - - title: DataLoader - path: /lite/api_docs/python/tflite_model_maker/searcher/DataLoader - - title: ExportFormat - path: /lite/api_docs/python/tflite_model_maker/searcher/ExportFormat - - title: ImageDataLoader - path: /lite/api_docs/python/tflite_model_maker/searcher/ImageDataLoader - - title: MetadataType - path: /lite/api_docs/python/tflite_model_maker/searcher/MetadataType - - title: ScaNNOptions - path: /lite/api_docs/python/tflite_model_maker/searcher/ScaNNOptions - - title: ScoreAH - path: /lite/api_docs/python/tflite_model_maker/searcher/ScoreAH - - title: ScoreBruteForce - path: /lite/api_docs/python/tflite_model_maker/searcher/ScoreBruteForce - - title: Searcher - path: /lite/api_docs/python/tflite_model_maker/searcher/Searcher - - title: TextDataLoader - path: /lite/api_docs/python/tflite_model_maker/searcher/TextDataLoader - - title: Tree - path: /lite/api_docs/python/tflite_model_maker/searcher/Tree - - title: text_classifier - section: - - title: Overview - path: /lite/api_docs/python/tflite_model_maker/text_classifier - - title: AverageWordVecSpec - path: /lite/api_docs/python/tflite_model_maker/text_classifier/AverageWordVecSpec - - title: BertClassifierSpec - path: /lite/api_docs/python/tflite_model_maker/text_classifier/BertClassifierSpec - - title: DataLoader - path: /lite/api_docs/python/tflite_model_maker/text_classifier/DataLoader - - title: MobileBertClassifierSpec - path: /lite/api_docs/python/tflite_model_maker/text_classifier/MobileBertClassifierSpec - - title: TextClassifier - path: /lite/api_docs/python/tflite_model_maker/text_classifier/TextClassifier - - title: create - path: /lite/api_docs/python/tflite_model_maker/text_classifier/create - status: experimental diff --git a/site/en/lite/api_docs/python/tflite_model_maker/all_symbols.md b/site/en/lite/api_docs/python/tflite_model_maker/all_symbols.md deleted file mode 100644 index 139bb4e17f..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/all_symbols.md +++ /dev/null @@ -1,81 +0,0 @@ -page_type: reference - - - - - -# All symbols in TensorFlow Lite Model Maker - - - -## Primary symbols - -* tflite_model_maker -* tflite_model_maker.audio_classifier -* tflite_model_maker.audio_classifier.AudioClassifier -* tflite_model_maker.audio_classifier.BrowserFftSpec -* tflite_model_maker.audio_classifier.DataLoader -* tflite_model_maker.audio_classifier.YamNetSpec -* tflite_model_maker.audio_classifier.create -* tflite_model_maker.config -* tflite_model_maker.config.ExportFormat -* tflite_model_maker.config.QuantizationConfig -* tflite_model_maker.image_classifier -* tflite_model_maker.image_classifier.DataLoader -* tflite_model_maker.image_classifier.EfficientNetLite0Spec -* tflite_model_maker.image_classifier.EfficientNetLite1Spec -* tflite_model_maker.image_classifier.EfficientNetLite2Spec -* tflite_model_maker.image_classifier.EfficientNetLite3Spec -* tflite_model_maker.image_classifier.EfficientNetLite4Spec -* tflite_model_maker.image_classifier.ImageClassifier -* tflite_model_maker.image_classifier.MobileNetV2Spec -* tflite_model_maker.image_classifier.ModelSpec -* tflite_model_maker.image_classifier.Resnet50Spec -* tflite_model_maker.image_classifier.create -* tflite_model_maker.model_spec -* tflite_model_maker.model_spec.get -* tflite_model_maker.object_detector -* tflite_model_maker.object_detector.DataLoader -* tflite_model_maker.object_detector.EfficientDetLite0Spec -* tflite_model_maker.object_detector.EfficientDetLite1Spec -* tflite_model_maker.object_detector.EfficientDetLite2Spec -* tflite_model_maker.object_detector.EfficientDetLite3Spec -* tflite_model_maker.object_detector.EfficientDetLite4Spec -* tflite_model_maker.object_detector.EfficientDetSpec -* tflite_model_maker.object_detector.ObjectDetector -* tflite_model_maker.object_detector.create -* tflite_model_maker.question_answer -* tflite_model_maker.question_answer.BertQaSpec -* tflite_model_maker.question_answer.DataLoader -* tflite_model_maker.question_answer.MobileBertQaSpec -* tflite_model_maker.question_answer.MobileBertQaSquadSpec -* tflite_model_maker.question_answer.QuestionAnswer -* tflite_model_maker.question_answer.create -* tflite_model_maker.recommendation -* tflite_model_maker.recommendation.DataLoader -* tflite_model_maker.recommendation.ModelSpec -* tflite_model_maker.recommendation.Recommendation -* tflite_model_maker.recommendation.create -* tflite_model_maker.recommendation.spec -* tflite_model_maker.recommendation.spec.Feature -* tflite_model_maker.recommendation.spec.FeatureGroup -* tflite_model_maker.recommendation.spec.InputSpec -* tflite_model_maker.recommendation.spec.ModelHParams -* tflite_model_maker.searcher -* tflite_model_maker.searcher.DataLoader -* tflite_model_maker.searcher.ExportFormat -* tflite_model_maker.searcher.ImageDataLoader -* tflite_model_maker.searcher.MetadataType -* tflite_model_maker.searcher.ScaNNOptions -* tflite_model_maker.searcher.ScoreAH -* tflite_model_maker.searcher.ScoreBruteForce -* tflite_model_maker.searcher.Searcher -* tflite_model_maker.searcher.TextDataLoader -* tflite_model_maker.searcher.Tree -* tflite_model_maker.text_classifier -* tflite_model_maker.text_classifier.AverageWordVecSpec -* tflite_model_maker.text_classifier.BertClassifierSpec -* tflite_model_maker.text_classifier.DataLoader -* tflite_model_maker.text_classifier.MobileBertClassifierSpec -* tflite_model_maker.text_classifier.TextClassifier -* tflite_model_maker.text_classifier.create diff --git a/site/en/lite/api_docs/python/tflite_model_maker/audio_classifier.md b/site/en/lite/api_docs/python/tflite_model_maker/audio_classifier.md deleted file mode 100644 index d797f3ed63..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/audio_classifier.md +++ /dev/null @@ -1,55 +0,0 @@ -page_type: reference -description: APIs to train an audio classification model. - - - - - - -
- - -
- -# Module: tflite_model_maker.audio_classifier - - - - - - - - - -APIs to train an audio classification model. - - - -#### Tutorial: - - -https://colab.research.google.com/github/googlecodelabs/odml-pathways/blob/main/audio_classification/colab/model_maker_audio_colab.ipynb - -#### Demo code: - - -https://github.com/tensorflow/examples/blob/master/tensorflow_examples/lite/model_maker/demo/audio_classification_demo.py - -## Classes - -[`class AudioClassifier`](../tflite_model_maker/audio_classifier/AudioClassifier): Audio classifier for training/inference and exporing. - -[`class BrowserFftSpec`](../tflite_model_maker/audio_classifier/BrowserFftSpec): Model good at detecting speech commands, using Browser FFT spectrum. - -[`class DataLoader`](../tflite_model_maker/audio_classifier/DataLoader): DataLoader for audio tasks. - -[`class YamNetSpec`](../tflite_model_maker/audio_classifier/YamNetSpec): Model good at detecting environmental sounds, using YAMNet embedding. - -## Functions - -[`create(...)`](../tflite_model_maker/audio_classifier/create): Loads data and retrains the model. diff --git a/site/en/lite/api_docs/python/tflite_model_maker/audio_classifier/AudioClassifier.md b/site/en/lite/api_docs/python/tflite_model_maker/audio_classifier/AudioClassifier.md deleted file mode 100644 index 6b197b9b46..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/audio_classifier/AudioClassifier.md +++ /dev/null @@ -1,550 +0,0 @@ -page_type: reference -description: Audio classifier for training/inference and exporing. - - - - - - -
- - - - - - - - - - - - - - - -
- -# tflite_model_maker.audio_classifier.AudioClassifier - - - - - - - - - -Audio classifier for training/inference and exporing. - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`model_spec` - -Specification for the model. -
-`index_to_label` - -A list that map from index to label class name. -
-`shuffle` - -Whether the data should be shuffled. -
-`train_whole_model` - -If true, the Hub module is trained together with the -classification layer on top. Otherwise, only train the top -classification layer. -
- - - -## Methods - -

confusion_matrix

- -View source - - - - - - -

create

- -View source - - - -Loads data and retrains the model. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Args
-`train_data` - -A instance of audio_dataloader.DataLoader class. -
-`model_spec` - -Specification for the model. -
-`validation_data` - -Validation DataLoader. If None, skips validation process. -
-`batch_size` - -Number of samples per training step. If `use_hub_library` is -False, it represents the base learning rate when train batch size is 256 -and it's linear to the batch size. -
-`epochs` - -Number of epochs for training. -
-`model_dir` - -The location of the model checkpoint files. -
-`do_train` - -Whether to run training. -
-`train_whole_model` - -Boolean. By default, only the classification head is -trained. When True, the base model is also trained. -
- - - - - - - - - - - -
Returns
-An instance based on AudioClassifier. -
- - - -

create_model

- -View source - - - - - - -

create_serving_model

- -View source - - - -Returns the underlining Keras model for serving. - - -

evaluate

- -View source - - - -Evaluates the model. - - - - - - - - - - - - - - -
Args
-`data` - -Data to be evaluated. -
-`batch_size` - -Number of samples per evaluation step. -
- - - - - - - - - - - -
Returns
-The loss value and accuracy. -
- - - -

evaluate_tflite

- -View source - - - -Evaluates the tflite model. - - - - - - - - - - - - - - - - - -
Args
-`tflite_filepath` - -File path to the TFLite model. -
-`data` - -Data to be evaluated. -
-`postprocess_fn` - -Postprocessing function that will be applied to the output -of `lite_runner.run` before calculating the probabilities. -
- - - - - - - - - - - -
Returns
-The evaluation result of TFLite model - accuracy. -
- - - -

export

- -View source - - - -Converts the retrained model based on `export_format`. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Args
-`export_dir` - -The directory to save exported files. -
-`tflite_filename` - -File name to save tflite model. The full export path is -{export_dir}/{tflite_filename}. -
-`label_filename` - -File name to save labels. The full export path is -{export_dir}/{label_filename}. -
-`vocab_filename` - -File name to save vocabulary. The full export path is -{export_dir}/{vocab_filename}. -
-`saved_model_filename` - -Path to SavedModel or H5 file to save the model. The -full export path is -{export_dir}/{saved_model_filename}/{saved_model.pb|assets|variables}. -
-`tfjs_folder_name` - -Folder name to save tfjs model. The full export path is -{export_dir}/{tfjs_folder_name}. -
-`export_format` - -List of export format that could be saved_model, tflite, -label, vocab. -
-`**kwargs` - -Other parameters like `quantized_config` for TFLITE model. -
- - - -

predict_top_k

- -View source - - - -Predicts the top-k predictions. - - - - - - - - - - - - - - - - - -
Args
-`data` - -Data to be evaluated. Either an instance of DataLoader or just raw -data entries such TF tensor or numpy array. -
-`k` - -Number of top results to be predicted. -
-`batch_size` - -Number of samples per evaluation step. -
- - - - - - - - - - - -
Returns
-top k results. Each one is (label, probability). -
- - - -

summary

- -View source - - - - - - -

train

- -View source - - - - - - - - - - - - - - - - - - - - - - -
-ALLOWED_EXPORT_FORMAT - -`(, - , - )` -
-DEFAULT_EXPORT_FORMAT - -`` -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker/audio_classifier/BrowserFftSpec.md b/site/en/lite/api_docs/python/tflite_model_maker/audio_classifier/BrowserFftSpec.md deleted file mode 100644 index 48566fbb73..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/audio_classifier/BrowserFftSpec.md +++ /dev/null @@ -1,270 +0,0 @@ -page_type: reference -description: Model good at detecting speech commands, using Browser FFT spectrum. - - - - - - -
- - - - - - - - - - -
- -# tflite_model_maker.audio_classifier.BrowserFftSpec - - - - - - - - - -Model good at detecting speech commands, using Browser FFT spectrum. - - - - - - -

Used in the notebooks

- - - - - - - - - - - -
Used in the tutorials
- -
- - - - - - - - - - - - - - - -
-`model_dir` - -The location to save the model checkpoint files. -
-`strategy` - -An instance of TF distribute strategy. If none, it will use the -default strategy (either SingleDeviceStrategy or the current scoped -strategy. -
- - - - - - - - - - - - - - -
-`target_sample_rate` - - -
- - - -## Methods - -

create_model

- -View source - - - - - - -

create_serving_model

- -View source - - - -Create a model for serving. - - -

export_tflite

- -View source - - - -Converts the retrained model to tflite format and saves it. - -This method overrides the default `CustomModel._export_tflite` method, and -include the pre-processing in the exported TFLite library since support -library can't handle audio tasks yet. - - - - - - - - - - - - - - - - - - - - - - - - - -
Args
-`model` - -An instance of the keras classification model to be exported. -
-`tflite_filepath` - -File path to save tflite model. -
-`with_metadata` - -Whether the output tflite model contains metadata. -
-`export_metadata_json_file` - -Whether to export metadata in json file. If -True, export the metadata in the same directory as tflite model.Used -only if `with_metadata` is True. -
-`index_to_label` - -A list that map from index to label class name. -
-`quantization_config` - -Configuration for post-training quantization. -
- - - -

get_default_quantization_config

- -View source - - - -Gets the default quantization configuration. - - -

preprocess_ds

- -View source - - - -Returns a preprocessed dataset. - - -

run_classifier

- -View source - - - - - - - - - - - - - - - - - - - -
-EXPECTED_WAVEFORM_LENGTH - -`44032` -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker/audio_classifier/DataLoader.md b/site/en/lite/api_docs/python/tflite_model_maker/audio_classifier/DataLoader.md deleted file mode 100644 index 7486f448b4..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/audio_classifier/DataLoader.md +++ /dev/null @@ -1,465 +0,0 @@ -page_type: reference -description: DataLoader for audio tasks. - - - - - - - -
- - - - - - - - -
- -# tflite_model_maker.audio_classifier.DataLoader - - - - - - - - - -DataLoader for audio tasks. - - - - - - -

Used in the notebooks

- - - - - - - - - - - -
Used in the tutorials
- -
- - - - - - - - - - - - - - - -
-`dataset` - -A tf.data.Dataset object that contains a potentially large set of -elements, where each element is a pair of (input_data, target). The -`input_data` means the raw input data, like an image, a text etc., while -the `target` means some ground truth of the raw input data, such as the -classification label of the image etc. -
-`size` - -The size of the dataset. tf.data.Dataset donesn't support a function -to get the length directly since it's lazy-loaded and may be infinite. -
- - - - - - - - - - - - - - - - - -
-`num_classes` - - -
-`size` - -Returns the size of the dataset. - -Note that this function may return None becuase the exact size of the -dataset isn't a necessary parameter to create an instance of this class, -and tf.data.Dataset donesn't support a function to get the length directly -since it's lazy-loaded and may be infinite. -In most cases, however, when an instance of this class is created by helper -functions like 'from_folder', the size of the dataset will be preprocessed, -and this function can return an int representing the size of the dataset. -
- - - -## Methods - -

from_esc50

- -View source - - - -Load ESC50 style audio samples. - -ESC50 file structure is expalined in https://github.com/karolpiczak/ESC-50 -Audio files should be put in `${data_path}/audio` -Metadata file should be put in `${data_path}/meta/esc50.csv` - -Note that instead of relying on the `target` field in the CSV, a new -`index_to_label` mapping is created based on the alphabet order of the -available categories. - - - - - - - - - - - - - - - - - - - - - - - - - -
Args
-`spec` - -An instance of audio_spec.YAMNet -
-`data_path` - -A string, location of the ESC50 dataset. It should contain at -
-`folds` - -A integer list of selected folds. If empty, all folds will be -selected. -
-`categories` - -A string list of selected categories. If empty, all categories -will be selected. -
-`shuffle` - -boolean, if True, random shuffle data. -
-`cache` - -str or boolean. When set to True, intermediate results will be -cached in ram. When set to a file path in string, intermediate results -will be cached in this file. Please note that, once file based cache is -created, changes to the input data will have no effects until the cache -file is removed or the filename is changed. More details can be found at -https://www.tensorflow.org/api_docs/python/tf/data/Dataset#cache -
- - - - - - - - - - - -
Returns
-An instance of AudioDataLoader containing audio samples and labels. -
- - - -

from_folder

- -View source - - - -Load audio files from a data_path. - -- The root `data_path` folder contains a number of folders. The name for -each folder is the name of the audio class. - -- Within each folder, there are a number of .wav files. Each .wav file -corresponds to an example. Each .wav file is mono (single-channel) and has -the typical 16 bit pulse-code modulation (PCM) encoding. - -- .wav files will be resampled to `spec.target_sample_rate` then fed into -`spec.preprocess_ds` for split and other operations. Normally long wav files -will be framed into multiple clips. And wav files shorter than a certain -threshold will be ignored. - - - - - - - - - - - - - - - - - - - - - - -
Args
-`spec` - -instance of `audio_spec.BaseSpec`. -
-`data_path` - -string, location to the audio files. -
-`categories` - -A string list of selected categories. If empty, all categories -will be selected. -
-`shuffle` - -boolean, if True, random shuffle data. -
-`cache` - -str or boolean. When set to True, intermediate results will be -cached in ram. When set to a file path in string, intermediate results -will be cached in this file. Please note that, once file based cache is -created, changes to the input data will have no effects until the cache -file is removed or the filename is changed. More details can be found at -https://www.tensorflow.org/api_docs/python/tf/data/Dataset#cache -
- - - - - - - - - - - -
Returns
-`AudioDataLoader` containing audio spectrogram (or any data type generated -by `spec.preprocess_ds`) and labels. -
- - - -

gen_dataset

- -View source - - - -Generate a shared and batched tf.data.Dataset for training/evaluation. - - - - - - - - - - - - - - - - - - - - - - - - - - -
Args
-`batch_size` - -A integer, the returned dataset will be batched by this size. -
-`is_training` - -A boolean, when True, the returned dataset will be optionally -shuffled. Data augmentation, if exists, will also be applied to the -returned dataset. -
-`shuffle` - -A boolean, when True, the returned dataset will be shuffled to -create randomness during model training. Only applies when `is_training` -is set to True. -
-`input_pipeline_context` - -A InputContext instance, used to shared dataset -among multiple workers when distribution strategy is used. -
-`preprocess` - -Not in use. -
-`drop_remainder` - -boolean, whether the finaly batch drops remainder. -
- - - - - - - - - - - -
Returns
-A TF dataset ready to be consumed by Keras model. -
- - - -

split

- -View source - - - -Splits dataset into two sub-datasets with the given fraction. - -Primarily used for splitting the data set into training and testing sets. - - - - - - - - - - -
Args
-`fraction` - -float, demonstrates the fraction of the first returned -subdataset in the original data. -
- - - - - - - - - - - -
Returns
-The splitted two sub datasets. -
- - - -

__len__

- -View source - - - -Returns the number of audio files in the DataLoader. - -Note that one audio file could be framed (mostly via a sliding window of -fixed size) into None or multiple audio clips during training and -evaluation. diff --git a/site/en/lite/api_docs/python/tflite_model_maker/audio_classifier/YamNetSpec.md b/site/en/lite/api_docs/python/tflite_model_maker/audio_classifier/YamNetSpec.md deleted file mode 100644 index 61e4e699b4..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/audio_classifier/YamNetSpec.md +++ /dev/null @@ -1,317 +0,0 @@ -page_type: reference -description: Model good at detecting environmental sounds, using YAMNet embedding. - - - - - - -
- - - - - - - - - - - -
- -# tflite_model_maker.audio_classifier.YamNetSpec - - - - - - - - - -Model good at detecting environmental sounds, using YAMNet embedding. - - - - - - -

Used in the notebooks

- - - - - - - - - - - -
Used in the tutorials
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`model_dir` - -The location to save the model checkpoint files. -
-`strategy` - -An instance of TF distribute strategy. If none, it will use the -default strategy (either SingleDeviceStrategy or the current scoped -strategy. -
-`yamnet_model_handle` - -Path of the TFHub model for retrining. -
-`frame_length` - -The number of samples in each audio frame. If the audio file -is shorter than `frame_length`, then the audio file will be ignored. -
-`frame_step` - -The number of samples between two audio frames. This value -should be smaller than `frame_length`, otherwise some samples will be -ignored. -
-`keep_yamnet_and_custom_heads` - -Boolean, decides if the final TFLite model -contains both YAMNet and custom trained classification heads. When set -to False, only the trained custom head will be preserved. -
- - - - - - - - - - - - - - -
-`target_sample_rate` - - -
- - - -## Methods - -

create_model

- -View source - - - - - - -

create_serving_model

- -View source - - - -Create a model for serving. - - -

export_tflite

- -View source - - - -Converts the retrained model to tflite format and saves it. - -This method overrides the default `CustomModel._export_tflite` method, and -include the spectrom extraction in the model. - -The exported model has input shape (1, number of wav samples) - - - - - - - - - - - - - - - - - - - - - - - - - -
Args
-`model` - -An instance of the keras classification model to be exported. -
-`tflite_filepath` - -File path to save tflite model. -
-`with_metadata` - -Whether the output tflite model contains metadata. -
-`export_metadata_json_file` - -Whether to export metadata in json file. If -True, export the metadata in the same directory as tflite model. Used -only if `with_metadata` is True. -
-`index_to_label` - -A list that map from index to label class name. -
-`quantization_config` - -Configuration for post-training quantization. -
- - - -

get_default_quantization_config

- -View source - - - -Gets the default quantization configuration. - - -

preprocess_ds

- -View source - - - -Returns a preprocessed dataset. - - -

run_classifier

- -View source - - - - - - - - - - - - - - - - - - - - - - -
-EMBEDDING_SIZE - -`1024` -
-EXPECTED_WAVEFORM_LENGTH - -`15600` -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker/audio_classifier/create.md b/site/en/lite/api_docs/python/tflite_model_maker/audio_classifier/create.md deleted file mode 100644 index 6c7cd6702d..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/audio_classifier/create.md +++ /dev/null @@ -1,149 +0,0 @@ -page_type: reference -description: Loads data and retrains the model. - - - - - - -
- - -
- -# tflite_model_maker.audio_classifier.create - - - - - - - - - -Loads data and retrains the model. - - - - - - - -

Used in the notebooks

- - - - - - - - - - - -
Used in the tutorials
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`train_data` - -A instance of audio_dataloader.DataLoader class. -
-`model_spec` - -Specification for the model. -
-`validation_data` - -Validation DataLoader. If None, skips validation process. -
-`batch_size` - -Number of samples per training step. If `use_hub_library` is -False, it represents the base learning rate when train batch size is 256 -and it's linear to the batch size. -
-`epochs` - -Number of epochs for training. -
-`model_dir` - -The location of the model checkpoint files. -
-`do_train` - -Whether to run training. -
-`train_whole_model` - -Boolean. By default, only the classification head is -trained. When True, the base model is also trained. -
- - - - - - - - - - - -
-An instance based on AudioClassifier. -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker/config.md b/site/en/lite/api_docs/python/tflite_model_maker/config.md deleted file mode 100644 index a6edc8226f..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/config.md +++ /dev/null @@ -1,37 +0,0 @@ -page_type: reference -description: APIs for the config of TFLite Model Maker. - - - - - - -
- - -
- -# Module: tflite_model_maker.config - - - - - - - - - -APIs for the config of TFLite Model Maker. - - - -## Classes - -[`class ExportFormat`](../tflite_model_maker/config/ExportFormat): An enumeration. - -[`class QuantizationConfig`](../tflite_model_maker/config/QuantizationConfig): Configuration for post-training quantization. diff --git a/site/en/lite/api_docs/python/tflite_model_maker/config/ExportFormat.md b/site/en/lite/api_docs/python/tflite_model_maker/config/ExportFormat.md deleted file mode 100644 index 8134afa857..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/config/ExportFormat.md +++ /dev/null @@ -1,82 +0,0 @@ -page_type: reference -description: An enumeration. - - - - - - -
- - - - - - - -
- -# tflite_model_maker.config.ExportFormat - - - - - - - - - -An enumeration. - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-LABEL - -`` -
-SAVED_MODEL - -`` -
-TFJS - -`` -
-TFLITE - -`` -
-VOCAB - -`` -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker/config/QuantizationConfig.md b/site/en/lite/api_docs/python/tflite_model_maker/config/QuantizationConfig.md deleted file mode 100644 index 53877d03ea..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/config/QuantizationConfig.md +++ /dev/null @@ -1,270 +0,0 @@ -page_type: reference -description: Configuration for post-training quantization. - - - - - - -
- - - - - - - -
- -# tflite_model_maker.config.QuantizationConfig - - - - - - - - - -Configuration for post-training quantization. - - - - - - -

Used in the notebooks

- - - - - - - - - - - -
Used in the tutorials
- -
- - -Refer to -https://www.tensorflow.org/lite/performance/post_training_quantization -for different post-training quantization options. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`optimizations` - -A list of optimizations to apply when converting the model. -If not set, use `[Optimize.DEFAULT]` by default. -
-`representative_data` - -A DataLoader holding representative data for -post-training quantization. -
-`quantization_steps` - -Number of post-training quantization calibration steps -to run. -
-`inference_input_type` - -Target data type of real-number input arrays. Allows -for a different type for input arrays. Defaults to None. If set, must be -be `{tf.float32, tf.uint8, tf.int8}`. -
-`inference_output_type` - -Target data type of real-number output arrays. -Allows for a different type for output arrays. Defaults to None. If set, -must be `{tf.float32, tf.uint8, tf.int8}`. -
-`supported_ops` - -Set of OpsSet options supported by the device. Used to Set -converter.target_spec.supported_ops. -
-`supported_types` - -List of types for constant values on the target device. -Supported values are types exported by lite.constants. Frequently, an -optimization choice is driven by the most compact (i.e. smallest) type -in this list (default [constants.FLOAT]). -
-`experimental_new_quantizer` - -Whether to enable experimental new quantizer. -
- - - -## Methods - -

for_dynamic

- -View source - - - -Creates configuration for dynamic range quantization. - - -

for_float16

- -View source - - - -Creates configuration for float16 quantization. - - -

for_int8

- -View source - - - -Creates configuration for full integer quantization. - - - - - - - - - - - - - - - - - - - - - - - -
Args
-`representative_data` - -Representative data used for post-training -quantization. -
-`quantization_steps` - -Number of post-training quantization calibration steps -to run. -
-`inference_input_type` - -Target data type of real-number input arrays. Used -only when `is_integer_only` is True. Must be in `{tf.uint8, tf.int8}`. -
-`inference_output_type` - -Target data type of real-number output arrays. Used -only when `is_integer_only` is True. Must be in `{tf.uint8, tf.int8}`. -
-`supported_ops` - - Set of tf.lite.OpsSet options, where each option -represents a set of operators supported by the target device. -
- - - - - - - - - - - -
Returns
-QuantizationConfig. -
- - - -

get_converter_with_quantization

- -View source - - - -Gets TFLite converter with settings for quantization. diff --git a/site/en/lite/api_docs/python/tflite_model_maker/image_classifier.md b/site/en/lite/api_docs/python/tflite_model_maker/image_classifier.md deleted file mode 100644 index 55e5347228..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/image_classifier.md +++ /dev/null @@ -1,62 +0,0 @@ -page_type: reference -description: APIs to train an image classification model. - - - - - - -
- - -
- -# Module: tflite_model_maker.image_classifier - - - - - - - - - -APIs to train an image classification model. - - - -#### Task guide: - - -https://www.tensorflow.org/lite/tutorials/model_maker_image_classification - -## Classes - -[`class DataLoader`](../tflite_model_maker/image_classifier/DataLoader): DataLoader for image classifier. - -[`class ImageClassifier`](../tflite_model_maker/image_classifier/ImageClassifier): ImageClassifier class for inference and exporting to tflite. - -[`class ModelSpec`](../tflite_model_maker/image_classifier/ModelSpec): A specification of image model. - -## Functions - -[`EfficientNetLite0Spec(...)`](../tflite_model_maker/image_classifier/EfficientNetLite0Spec): Creates EfficientNet-Lite0 model spec. See also: tflite_model_maker.image_classifier.ModelSpec. - -[`EfficientNetLite1Spec(...)`](../tflite_model_maker/image_classifier/EfficientNetLite1Spec): Creates EfficientNet-Lite1 model spec. See also: tflite_model_maker.image_classifier.ModelSpec. - -[`EfficientNetLite2Spec(...)`](../tflite_model_maker/image_classifier/EfficientNetLite2Spec): Creates EfficientNet-Lite2 model spec. See also: tflite_model_maker.image_classifier.ModelSpec. - -[`EfficientNetLite3Spec(...)`](../tflite_model_maker/image_classifier/EfficientNetLite3Spec): Creates EfficientNet-Lite3 model spec. See also: tflite_model_maker.image_classifier.ModelSpec. - -[`EfficientNetLite4Spec(...)`](../tflite_model_maker/image_classifier/EfficientNetLite4Spec): Creates EfficientNet-Lite4 model spec. See also: tflite_model_maker.image_classifier.ModelSpec. - -[`MobileNetV2Spec(...)`](../tflite_model_maker/image_classifier/MobileNetV2Spec): Creates MobileNet v2 model spec. See also: tflite_model_maker.image_classifier.ModelSpec. - -[`Resnet50Spec(...)`](../tflite_model_maker/image_classifier/Resnet50Spec): Creates ResNet 50 model spec. See also: tflite_model_maker.image_classifier.ModelSpec. - -[`create(...)`](../tflite_model_maker/image_classifier/create): Loads data and retrains the model based on data for image classification. diff --git a/site/en/lite/api_docs/python/tflite_model_maker/image_classifier/DataLoader.md b/site/en/lite/api_docs/python/tflite_model_maker/image_classifier/DataLoader.md deleted file mode 100644 index 9d0fdf9a72..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/image_classifier/DataLoader.md +++ /dev/null @@ -1,338 +0,0 @@ -page_type: reference -description: DataLoader for image classifier. - - - - - - -
- - - - - - - - -
- -# tflite_model_maker.image_classifier.DataLoader - - - - - - - - - -DataLoader for image classifier. - - - - - - -

Used in the notebooks

- - - - - - - - - - - -
Used in the tutorials
- -
- - - - - - - - - - - - - - - -
-`dataset` - -A tf.data.Dataset object that contains a potentially large set of -elements, where each element is a pair of (input_data, target). The -`input_data` means the raw input data, like an image, a text etc., while -the `target` means some ground truth of the raw input data, such as the -classification label of the image etc. -
-`size` - -The size of the dataset. tf.data.Dataset donesn't support a function -to get the length directly since it's lazy-loaded and may be infinite. -
- - - - - - - - - - - - - - - - - -
-`num_classes` - - -
-`size` - -Returns the size of the dataset. - -Note that this function may return None becuase the exact size of the -dataset isn't a necessary parameter to create an instance of this class, -and tf.data.Dataset donesn't support a function to get the length directly -since it's lazy-loaded and may be infinite. -In most cases, however, when an instance of this class is created by helper -functions like 'from_folder', the size of the dataset will be preprocessed, -and this function can return an int representing the size of the dataset. -
- - - -## Methods - -

from_folder

- -View source - - - -Image analysis for image classification load images with labels. - -Assume the image data of the same label are in the same subdirectory. - - - - - - - - - - - - - -
Args
-`filename` - -Name of the file. -
-`shuffle` - -boolean, if shuffle, random shuffle data. -
- - - - - - - - - - - -
Returns
-ImageDataset containing images and labels and other related info. -
- - - -

from_tfds

- -View source - - - -Loads data from tensorflow_datasets. - - -

gen_dataset

- -View source - - - -Generate a shared and batched tf.data.Dataset for training/evaluation. - - - - - - - - - - - - - - - - - - - - - - - - - - -
Args
-`batch_size` - -A integer, the returned dataset will be batched by this size. -
-`is_training` - -A boolean, when True, the returned dataset will be optionally -shuffled and repeated as an endless dataset. -
-`shuffle` - -A boolean, when True, the returned dataset will be shuffled to -create randomness during model training. -
-`input_pipeline_context` - -A InputContext instance, used to shared dataset -among multiple workers when distribution strategy is used. -
-`preprocess` - -A function taking three arguments in order, feature, label and -boolean is_training. -
-`drop_remainder` - -boolean, whether the finaly batch drops remainder. -
- - - - - - - - - - - -
Returns
-A TF dataset ready to be consumed by Keras model. -
- - - -

split

- -View source - - - -Splits dataset into two sub-datasets with the given fraction. - -Primarily used for splitting the data set into training and testing sets. - - - - - - - - - - -
Args
-`fraction` - -float, demonstrates the fraction of the first returned -subdataset in the original data. -
- - - - - - - - - - - -
Returns
-The splitted two sub datasets. -
- - - -

__len__

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_model_maker/image_classifier/EfficientNetLite0Spec.md b/site/en/lite/api_docs/python/tflite_model_maker/image_classifier/EfficientNetLite0Spec.md deleted file mode 100644 index ebc1a3da55..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/image_classifier/EfficientNetLite0Spec.md +++ /dev/null @@ -1,76 +0,0 @@ -page_type: reference -description: Creates EfficientNet-Lite0 model spec. See also: tflite_model_maker.image_classifier.ModelSpec. - - - - - - -
- - -
- -# tflite_model_maker.image_classifier.EfficientNetLite0Spec - - - - - - - - - -Creates EfficientNet-Lite0 model spec. See also: tflite_model_maker.image_classifier.ModelSpec. - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`uri` - -str, URI to the pretrained model. -
-`compat_tf_versions` - -list of int, compatible TF versions. -
-`input_image_shape` - -list of int, input image shape. Default: [224, 224]. -
-`name` - -str, model spec name. -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker/image_classifier/EfficientNetLite1Spec.md b/site/en/lite/api_docs/python/tflite_model_maker/image_classifier/EfficientNetLite1Spec.md deleted file mode 100644 index c78b632e9d..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/image_classifier/EfficientNetLite1Spec.md +++ /dev/null @@ -1,76 +0,0 @@ -page_type: reference -description: Creates EfficientNet-Lite1 model spec. See also: tflite_model_maker.image_classifier.ModelSpec. - - - - - - -
- - -
- -# tflite_model_maker.image_classifier.EfficientNetLite1Spec - - - - - - - - - -Creates EfficientNet-Lite1 model spec. See also: tflite_model_maker.image_classifier.ModelSpec. - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`uri` - -str, URI to the pretrained model. -
-`compat_tf_versions` - -list of int, compatible TF versions. -
-`input_image_shape` - -list of int, input image shape. Default: [224, 224]. -
-`name` - -str, model spec name. -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker/image_classifier/EfficientNetLite2Spec.md b/site/en/lite/api_docs/python/tflite_model_maker/image_classifier/EfficientNetLite2Spec.md deleted file mode 100644 index f895dc9b60..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/image_classifier/EfficientNetLite2Spec.md +++ /dev/null @@ -1,76 +0,0 @@ -page_type: reference -description: Creates EfficientNet-Lite2 model spec. See also: tflite_model_maker.image_classifier.ModelSpec. - - - - - - -
- - -
- -# tflite_model_maker.image_classifier.EfficientNetLite2Spec - - - - - - - - - -Creates EfficientNet-Lite2 model spec. See also: tflite_model_maker.image_classifier.ModelSpec. - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`uri` - -str, URI to the pretrained model. -
-`compat_tf_versions` - -list of int, compatible TF versions. -
-`input_image_shape` - -list of int, input image shape. Default: [224, 224]. -
-`name` - -str, model spec name. -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker/image_classifier/EfficientNetLite3Spec.md b/site/en/lite/api_docs/python/tflite_model_maker/image_classifier/EfficientNetLite3Spec.md deleted file mode 100644 index c67cf17245..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/image_classifier/EfficientNetLite3Spec.md +++ /dev/null @@ -1,76 +0,0 @@ -page_type: reference -description: Creates EfficientNet-Lite3 model spec. See also: tflite_model_maker.image_classifier.ModelSpec. - - - - - - -
- - -
- -# tflite_model_maker.image_classifier.EfficientNetLite3Spec - - - - - - - - - -Creates EfficientNet-Lite3 model spec. See also: tflite_model_maker.image_classifier.ModelSpec. - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`uri` - -str, URI to the pretrained model. -
-`compat_tf_versions` - -list of int, compatible TF versions. -
-`input_image_shape` - -list of int, input image shape. Default: [224, 224]. -
-`name` - -str, model spec name. -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker/image_classifier/EfficientNetLite4Spec.md b/site/en/lite/api_docs/python/tflite_model_maker/image_classifier/EfficientNetLite4Spec.md deleted file mode 100644 index 329a91b404..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/image_classifier/EfficientNetLite4Spec.md +++ /dev/null @@ -1,76 +0,0 @@ -page_type: reference -description: Creates EfficientNet-Lite4 model spec. See also: tflite_model_maker.image_classifier.ModelSpec. - - - - - - -
- - -
- -# tflite_model_maker.image_classifier.EfficientNetLite4Spec - - - - - - - - - -Creates EfficientNet-Lite4 model spec. See also: tflite_model_maker.image_classifier.ModelSpec. - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`uri` - -str, URI to the pretrained model. -
-`compat_tf_versions` - -list of int, compatible TF versions. -
-`input_image_shape` - -list of int, input image shape. Default: [224, 224]. -
-`name` - -str, model spec name. -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker/image_classifier/ImageClassifier.md b/site/en/lite/api_docs/python/tflite_model_maker/image_classifier/ImageClassifier.md deleted file mode 100644 index 8261f4d9f1..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/image_classifier/ImageClassifier.md +++ /dev/null @@ -1,690 +0,0 @@ -page_type: reference -description: ImageClassifier class for inference and exporting to tflite. - - - - - - -
- - - - - - - - - - - - - - -
- -# tflite_model_maker.image_classifier.ImageClassifier - - - - - - - - - -ImageClassifier class for inference and exporting to tflite. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`model_spec` - -Specification for the model. -
-`index_to_label` - -A list that map from index to label class name. -
-`shuffle` - -Whether the data should be shuffled. -
-`hparams` - -A namedtuple of hyperparameters. This function expects -.dropout_rate: The fraction of the input units to drop, used in dropout - layer. -.do_fine_tuning: If true, the Hub module is trained together with the - classification layer on top. -
-`use_augmentation` - -Use data augmentation for preprocessing. -
-`representative_data` - - Representative dataset for full integer -quantization. Used when converting the keras model to the TFLite model -with full integer quantization. -
- - - -## Methods - -

create

- -View source - - - -Loads data and retrains the model based on data for image classification. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Args
-`train_data` - -Training data. -
-`model_spec` - -Specification for the model. -
-`validation_data` - -Validation data. If None, skips validation process. -
-`batch_size` - -Number of samples per training step. If `use_hub_library` is -False, it represents the base learning rate when train batch size is 256 -and it's linear to the batch size. -
-`epochs` - -Number of epochs for training. -
-`steps_per_epoch` - -Integer or None. Total number of steps (batches of -samples) before declaring one epoch finished and starting the next -epoch. If `steps_per_epoch` is None, the epoch will run until the input -dataset is exhausted. -
-`train_whole_model` - -If true, the Hub module is trained together with the -classification layer on top. Otherwise, only train the top -classification layer. -
-`dropout_rate` - -The rate for dropout. -
-`learning_rate` - -Base learning rate when train batch size is 256. Linear to -the batch size. -
-`momentum` - -a Python float forwarded to the optimizer. Only used when -`use_hub_library` is True. -
-`shuffle` - -Whether the data should be shuffled. -
-`use_augmentation` - -Use data augmentation for preprocessing. -
-`use_hub_library` - -Use `make_image_classifier_lib` from tensorflow hub to -retrain the model. -
-`warmup_steps` - -Number of warmup steps for warmup schedule on learning rate. -If None, the default warmup_steps is used which is the total training -steps in two epochs. Only used when `use_hub_library` is False. -
-`model_dir` - -The location of the model checkpoint files. Only used when -`use_hub_library` is False. -
-`do_train` - -Whether to run training. -
- - - - - - - - - - - -
Returns
-An instance based on ImageClassifier. -
- - - -

create_model

- -View source - - - -Creates the classifier model for retraining. - - -

create_serving_model

- -View source - - - -Returns the underlining Keras model for serving. - - -

evaluate

- -View source - - - -Evaluates the model. - - - - - - - - - - - - - - -
Args
-`data` - -Data to be evaluated. -
-`batch_size` - -Number of samples per evaluation step. -
- - - - - - - - - - - -
Returns
-The loss value and accuracy. -
- - - -

evaluate_tflite

- -View source - - - -Evaluates the tflite model. - - - - - - - - - - - - - - - - - -
Args
-`tflite_filepath` - -File path to the TFLite model. -
-`data` - -Data to be evaluated. -
-`postprocess_fn` - -Postprocessing function that will be applied to the output -of `lite_runner.run` before calculating the probabilities. -
- - - - - - - - - - - -
Returns
-The evaluation result of TFLite model - accuracy. -
- - - -

export

- -View source - - - -Converts the retrained model based on `export_format`. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Args
-`export_dir` - -The directory to save exported files. -
-`tflite_filename` - -File name to save tflite model. The full export path is -{export_dir}/{tflite_filename}. -
-`label_filename` - -File name to save labels. The full export path is -{export_dir}/{label_filename}. -
-`vocab_filename` - -File name to save vocabulary. The full export path is -{export_dir}/{vocab_filename}. -
-`saved_model_filename` - -Path to SavedModel or H5 file to save the model. The -full export path is -{export_dir}/{saved_model_filename}/{saved_model.pb|assets|variables}. -
-`tfjs_folder_name` - -Folder name to save tfjs model. The full export path is -{export_dir}/{tfjs_folder_name}. -
-`export_format` - -List of export format that could be saved_model, tflite, -label, vocab. -
-`**kwargs` - -Other parameters like `quantized_config` for TFLITE model. -
- - - -

predict_top_k

- -View source - - - -Predicts the top-k predictions. - - - - - - - - - - - - - - - - - -
Args
-`data` - -Data to be evaluated. Either an instance of DataLoader or just raw -data entries such TF tensor or numpy array. -
-`k` - -Number of top results to be predicted. -
-`batch_size` - -Number of samples per evaluation step. -
- - - - - - - - - - - -
Returns
-top k results. Each one is (label, probability). -
- - - -

summary

- -View source - - - - - - -

train

- -View source - - - -Feeds the training data for training. - - - - - - - - - - - - - - - - - - - - -
Args
-`train_data` - -Training data. -
-`validation_data` - -Validation data. If None, skips validation process. -
-`hparams` - -An instance of hub_lib.HParams or -train_image_classifier_lib.HParams. Anamedtuple of hyperparameters. -
-`steps_per_epoch` - -Integer or None. Total number of steps (batches of -samples) before declaring one epoch finished and starting the next -epoch. If 'steps_per_epoch' is None, the epoch will run until the input -dataset is exhausted. -
- - - - - - - - - - - -
Returns
-The tf.keras.callbacks.History object returned by tf.keras.Model.fit*(). -
- - - - - - - - - - - - - - - - - - - -
-ALLOWED_EXPORT_FORMAT - -`(, - , - , - )` -
-DEFAULT_EXPORT_FORMAT - -`(, )` -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker/image_classifier/MobileNetV2Spec.md b/site/en/lite/api_docs/python/tflite_model_maker/image_classifier/MobileNetV2Spec.md deleted file mode 100644 index cecedecaf7..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/image_classifier/MobileNetV2Spec.md +++ /dev/null @@ -1,76 +0,0 @@ -page_type: reference -description: Creates MobileNet v2 model spec. See also: tflite_model_maker.image_classifier.ModelSpec. - - - - - - -
- - -
- -# tflite_model_maker.image_classifier.MobileNetV2Spec - - - - - - - - - -Creates MobileNet v2 model spec. See also: tflite_model_maker.image_classifier.ModelSpec. - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`uri` - -str, URI to the pretrained model. -
-`compat_tf_versions` - -list of int, compatible TF versions. -
-`input_image_shape` - -list of int, input image shape. Default: [224, 224]. -
-`name` - -str, model spec name. -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker/image_classifier/ModelSpec.md b/site/en/lite/api_docs/python/tflite_model_maker/image_classifier/ModelSpec.md deleted file mode 100644 index 9bfadbe94d..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/image_classifier/ModelSpec.md +++ /dev/null @@ -1,142 +0,0 @@ -page_type: reference -description: A specification of image model. - - - - - - -
- - - - - - -
- -# tflite_model_maker.image_classifier.ModelSpec - - - - - - - - - -A specification of image model. - - - - - - -

Used in the notebooks

- - - - - - - - - - - -
Used in the tutorials
- -
- - - - - - - - - - - - - - - - - - - - - -
-`uri` - -str, URI to the pretrained model. -
-`compat_tf_versions` - -list of int, compatible TF versions. -
-`input_image_shape` - -list of int, input image shape. Default: [224, 224]. -
-`name` - -str, model spec name. -
- - - -## Methods - -

get_default_quantization_config

- -View source - - - -Gets the default quantization configuration. - - - - - - - - - - - - - - - - - - -
-mean_rgb - -`[0.0]` -
-stddev_rgb - -`[255.0]` -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker/image_classifier/Resnet50Spec.md b/site/en/lite/api_docs/python/tflite_model_maker/image_classifier/Resnet50Spec.md deleted file mode 100644 index 33031813b2..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/image_classifier/Resnet50Spec.md +++ /dev/null @@ -1,76 +0,0 @@ -page_type: reference -description: Creates ResNet 50 model spec. See also: tflite_model_maker.image_classifier.ModelSpec. - - - - - - -
- - -
- -# tflite_model_maker.image_classifier.Resnet50Spec - - - - - - - - - -Creates ResNet 50 model spec. See also: tflite_model_maker.image_classifier.ModelSpec. - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`uri` - -str, URI to the pretrained model. -
-`compat_tf_versions` - -list of int, compatible TF versions. -
-`input_image_shape` - -list of int, input image shape. Default: [224, 224]. -
-`name` - -str, model spec name. -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker/image_classifier/create.md b/site/en/lite/api_docs/python/tflite_model_maker/image_classifier/create.md deleted file mode 100644 index b4440fc9f5..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/image_classifier/create.md +++ /dev/null @@ -1,223 +0,0 @@ -page_type: reference -description: Loads data and retrains the model based on data for image classification. - - - - - - -
- - -
- -# tflite_model_maker.image_classifier.create - - - - - - - - - -Loads data and retrains the model based on data for image classification. - - - - - - - -

Used in the notebooks

- - - - - - - - - - - -
Used in the tutorials
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`train_data` - -Training data. -
-`model_spec` - -Specification for the model. -
-`validation_data` - -Validation data. If None, skips validation process. -
-`batch_size` - -Number of samples per training step. If `use_hub_library` is -False, it represents the base learning rate when train batch size is 256 -and it's linear to the batch size. -
-`epochs` - -Number of epochs for training. -
-`steps_per_epoch` - -Integer or None. Total number of steps (batches of -samples) before declaring one epoch finished and starting the next -epoch. If `steps_per_epoch` is None, the epoch will run until the input -dataset is exhausted. -
-`train_whole_model` - -If true, the Hub module is trained together with the -classification layer on top. Otherwise, only train the top -classification layer. -
-`dropout_rate` - -The rate for dropout. -
-`learning_rate` - -Base learning rate when train batch size is 256. Linear to -the batch size. -
-`momentum` - -a Python float forwarded to the optimizer. Only used when -`use_hub_library` is True. -
-`shuffle` - -Whether the data should be shuffled. -
-`use_augmentation` - -Use data augmentation for preprocessing. -
-`use_hub_library` - -Use `make_image_classifier_lib` from tensorflow hub to -retrain the model. -
-`warmup_steps` - -Number of warmup steps for warmup schedule on learning rate. -If None, the default warmup_steps is used which is the total training -steps in two epochs. Only used when `use_hub_library` is False. -
-`model_dir` - -The location of the model checkpoint files. Only used when -`use_hub_library` is False. -
-`do_train` - -Whether to run training. -
- - - - - - - - - - - -
-An instance based on ImageClassifier. -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker/model_spec.md b/site/en/lite/api_docs/python/tflite_model_maker/model_spec.md deleted file mode 100644 index c1a46677d2..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/model_spec.md +++ /dev/null @@ -1,103 +0,0 @@ -page_type: reference -description: APIs for the model spec of TFLite Model Maker. - - - - - - -
- - - - - - - - -
- -# Module: tflite_model_maker.model_spec - - - - - - - - - -APIs for the model spec of TFLite Model Maker. - - - -## Functions - -[`get(...)`](../tflite_model_maker/model_spec/get): Gets model spec by name or instance, and init with args and kwarges. - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-AUDIO_CLASSIFICATION_MODELS - -`['audio_browser_fft', 'audio_teachable_machine', 'audio_yamnet']` -
-IMAGE_CLASSIFICATION_MODELS - -`['efficientnet_lite0', - 'efficientnet_lite1', - 'efficientnet_lite2', - 'efficientnet_lite3', - 'efficientnet_lite4', - 'mobilenet_v2', - 'resnet_50']` -
-OBJECT_DETECTION_MODELS - -`['efficientdet_lite0', - 'efficientdet_lite1', - 'efficientdet_lite2', - 'efficientdet_lite3', - 'efficientdet_lite4']` -
-QUESTION_ANSWER_MODELS - -`['bert_qa', 'mobilebert_qa', 'mobilebert_qa_squad']` -
-RECOMMENDATION_MODELS - -`['recommendation']` -
-TEXT_CLASSIFICATION_MODELS - -`['bert_classifier', 'average_word_vec', 'mobilebert_classifier']` -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker/model_spec/get.md b/site/en/lite/api_docs/python/tflite_model_maker/model_spec/get.md deleted file mode 100644 index a517d63b25..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/model_spec/get.md +++ /dev/null @@ -1,61 +0,0 @@ -page_type: reference -description: Gets model spec by name or instance, and init with args and kwarges. - - - - - - -
- - -
- -# tflite_model_maker.model_spec.get - - - - - - - - - -Gets model spec by name or instance, and init with args and kwarges. - - - - - - - -

Used in the notebooks

- - - - - - - - - - - -
Used in the tutorials
- -
- diff --git a/site/en/lite/api_docs/python/tflite_model_maker/object_detector.md b/site/en/lite/api_docs/python/tflite_model_maker/object_detector.md deleted file mode 100644 index b84cf05f0a..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/object_detector.md +++ /dev/null @@ -1,53 +0,0 @@ -page_type: reference -description: APIs to train an object detection model. - - - - - - -
- - -
- -# Module: tflite_model_maker.object_detector - - - - - - - - - -APIs to train an object detection model. - - - -## Classes - -[`class DataLoader`](../tflite_model_maker/object_detector/DataLoader): DataLoader for object detector. - -[`class EfficientDetSpec`](../tflite_model_maker/object_detector/EfficientDetSpec): A specification of the EfficientDet model. - -[`class ObjectDetector`](../tflite_model_maker/object_detector/ObjectDetector): ObjectDetector class for inference and exporting to tflite. - -## Functions - -[`EfficientDetLite0Spec(...)`](../tflite_model_maker/object_detector/EfficientDetLite0Spec): Creates EfficientDet-Lite0 model spec. See also: tflite_model_maker.object_detector.EfficientDetSpec. - -[`EfficientDetLite1Spec(...)`](../tflite_model_maker/object_detector/EfficientDetLite1Spec): Creates EfficientDet-Lite1 model spec. See also: tflite_model_maker.object_detector.EfficientDetSpec. - -[`EfficientDetLite2Spec(...)`](../tflite_model_maker/object_detector/EfficientDetLite2Spec): Creates EfficientDet-Lite2 model spec. See also: tflite_model_maker.object_detector.EfficientDetSpec. - -[`EfficientDetLite3Spec(...)`](../tflite_model_maker/object_detector/EfficientDetLite3Spec): Creates EfficientDet-Lite3 model spec. See also: tflite_model_maker.object_detector.EfficientDetSpec. - -[`EfficientDetLite4Spec(...)`](../tflite_model_maker/object_detector/EfficientDetLite4Spec): Creates EfficientDet-Lite4 model spec. See also: tflite_model_maker.object_detector.EfficientDetSpec. - -[`create(...)`](../tflite_model_maker/object_detector/create): Loads data and train the model for object detection. diff --git a/site/en/lite/api_docs/python/tflite_model_maker/object_detector/DataLoader.md b/site/en/lite/api_docs/python/tflite_model_maker/object_detector/DataLoader.md deleted file mode 100644 index 0c20e2c3f7..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/object_detector/DataLoader.md +++ /dev/null @@ -1,527 +0,0 @@ -page_type: reference -description: DataLoader for object detector. - - - - - - -
- - - - - - - - - -
- -# tflite_model_maker.object_detector.DataLoader - - - - - - - - - -DataLoader for object detector. - - - - - - -

Used in the notebooks

- - - - - - - - - - - -
Used in the tutorials
- -
- - - - - - - - - - - - - - - - - - - - - -
-`tfrecord_file_patten` - -Glob for tfrecord files. e.g. "/tmp/coco*.tfrecord". -
-`size` - -The size of the dataset. -
-`label_map` - -Variable shows mapping label integers ids to string label -names. 0 is the reserved key for `background` and doesn't need to be -included in label_map. Label names can't be duplicated. Supported -formats are: - -1. Dict, map label integers ids to string label names, such as {1: - 'person', 2: 'notperson'}. 2. List, a list of label names such as - ['person', 'notperson'] which is - the same as setting label_map={1: 'person', 2: 'notperson'}. -3. String, name for certain dataset. Accepted values are: 'coco', 'voc' - and 'waymo'. 4. String, yaml filename that stores label_map. -
-`annotations_json_file` - -JSON with COCO data format containing golden -bounding boxes. Used for validation. If None, use the ground truth from -the dataloader. Refer to -https://towardsdatascience.com/coco-data-format-for-object-detection-a4c5eaf518c5 - for the description of COCO data format. -
- - - - - - - - - - - - - - -
-`size` - -Returns the size of the dataset. - -Note that this function may return None becuase the exact size of the -dataset isn't a necessary parameter to create an instance of this class, -and tf.data.Dataset donesn't support a function to get the length directly -since it's lazy-loaded and may be infinite. -In most cases, however, when an instance of this class is created by helper -functions like 'from_folder', the size of the dataset will be preprocessed, -and this function can return an int representing the size of the dataset. -
- - - -## Methods - -

from_cache

- -View source - - - -Loads the data from cache. - - - - - - - - - - - -
Args
-`cache_prefix` - -The cache prefix including the cache directory and the cache -prefix filename, e.g: '/tmp/cache/train'. -
- - - - - - - - - - - -
Returns
-ObjectDetectorDataLoader object. -
- - - -

from_csv

- -View source - - - -Loads the data from the csv file. - -The csv format is shown in -https://cloud.google.com/vision/automl/object-detection/docs/csv-format We -supports bounding box with 2 vertices for now. We support the files in the -local machine as well. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Args
-`filename` - -Name of the csv file. -
-`images_dir` - -Path to directory that store raw images. If None, the image -path in the csv file is the path to Google Cloud Storage or the absolute -path in the local machine. -
-`delimiter` - -Character used to separate fields. -
-`quotechar` - -Character used to quote fields containing special characters. -
-`num_shards` - -Number of shards for output file. -
-`max_num_images` - -Max number of imags to process. -
-`cache_dir` - -The cache directory to save TFRecord, metadata and json file. -When cache_dir is None, a temporary folder will be created and will not -be removed automatically after training which makes it can be used -later. -
-`cache_prefix_filename` - -The cache prefix filename. If None, will -automatically generate it based on `filename`. -
- - - - - - - - - - - -
Returns
-train_data, validation_data, test_data which are ObjectDetectorDataLoader -objects. Can be None if without such data. -
- - - -

from_pascal_voc

- -View source - - - -Loads from dataset with PASCAL VOC format. - -Refer to -https://towardsdatascience.com/coco-data-format-for-object-detection-a4c5eaf518c5 -for the description of PASCAL VOC data format. - -LabelImg Tool (https://github.com/tzutalin/labelImg) can annotate the image -and save annotations as XML files in PASCAL VOC data format. - -Annotations are in the folder: `annotations_dir`. -Raw images are in the foloder: `images_dir`. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Args
-`images_dir` - -Path to directory that store raw images. -
-`annotations_dir` - -Path to the annotations directory. -
-`label_map` - -Variable shows mapping label integers ids to string label -names. 0 is the reserved key for `background`. Label names can't be -duplicated. Supported format: 1. Dict, map label integers ids to string - label names, e.g. - {1: 'person', 2: 'notperson'}. 2. List, a list of label names. e.g. - ['person', 'notperson'] which is - the same as setting label_map={1: 'person', 2: 'notperson'}. - -3. String, name for certain dataset. Accepted values are: 'coco', 'voc' - and 'waymo'. 4. String, yaml filename that stores label_map. -
-`annotation_filenames` - -Collection of annotation filenames (strings) to be -loaded. For instance, if there're 3 annotation files [0.xml, 1.xml, -2.xml] in `annotations_dir`, setting annotation_filenames=['0', '1'] -makes this method only load [0.xml, 1.xml]. -
-`ignore_difficult_instances` - -Whether to ignore difficult instances. -`difficult` can be set inside `object` item in the annotation xml file. -
-`num_shards` - -Number of shards for output file. -
-`max_num_images` - -Max number of imags to process. -
-`cache_dir` - -The cache directory to save TFRecord, metadata and json file. -When cache_dir is not set, a temporary folder will be created and will -not be removed automatically after training which makes it can be used -later. -
-`cache_prefix_filename` - -The cache prefix filename. If not set, will -automatically generate it based on `image_dir`, `annotations_dir` and -`annotation_filenames`. -
- - - - - - - - - - - -
Returns
-ObjectDetectorDataLoader object. -
- - - -

gen_dataset

- -View source - - - -Generate a batched tf.data.Dataset for training/evaluation. - - - - - - - - - - - - - - - - - - - - -
Args
-`model_spec` - -Specification for the model. -
-`batch_size` - -A integer, the returned dataset will be batched by this size. -
-`is_training` - -A boolean, when True, the returned dataset will be optionally -shuffled and repeated as an endless dataset. -
-`use_fake_data` - -Use fake input. -
- - - - - - - - - - - -
Returns
-A TF dataset ready to be consumed by Keras model. -
- - - -

split

- -View source - - - -This function isn't implemented for the object detection task. - - -

__len__

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_model_maker/object_detector/EfficientDetLite0Spec.md b/site/en/lite/api_docs/python/tflite_model_maker/object_detector/EfficientDetLite0Spec.md deleted file mode 100644 index 2f30db6a46..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/object_detector/EfficientDetLite0Spec.md +++ /dev/null @@ -1,212 +0,0 @@ -page_type: reference -description: Creates EfficientDet-Lite0 model spec. See also: tflite_model_maker.object_detector.EfficientDetSpec. - - - - - - -
- - -
- -# tflite_model_maker.object_detector.EfficientDetLite0Spec - - - - - - - - - -Creates EfficientDet-Lite0 model spec. See also: tflite_model_maker.object_detector.EfficientDetSpec. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`model_name` - -Model name. -
-`uri` - -TF-Hub path/url to EfficientDet module. -
-`hparams` - -Hyperparameters used to overwrite default configuration. Can be - -1) Dict, contains parameter names and values; 2) String, Comma separated -k=v pairs of hyperparameters; 3) String, yaml filename which's a module -containing attributes to use as hyperparameters. -
-`model_dir` - -The location to save the model checkpoint files. -
-`epochs` - -Default training epochs. -
-`batch_size` - -Training & Evaluation batch size. -
-`steps_per_execution` - -Number of steps per training execution. -
-`moving_average_decay` - -Float. The decay to use for maintaining moving -averages of the trained parameters. -
-`var_freeze_expr` - -Expression to freeze variables. -
-`tflite_max_detections` - -The max number of output detections in the TFLite -model. -
-`strategy` - - A string specifying which distribution strategy to use. -Accepted values are 'tpu', 'gpus', None. tpu' means to use TPUStrategy. -'gpus' mean to use MirroredStrategy for multi-gpus. If None, use TF -default with OneDeviceStrategy. -
-`tpu` - -The Cloud TPU to use for training. This should be either the name -used when creating the Cloud TPU, or a grpc://ip.address.of.tpu:8470 - url. -
-`gcp_project` - -Project name for the Cloud TPU-enabled project. If not -specified, we will attempt to automatically detect the GCE project from -metadata. -
-`tpu_zone` - -GCE zone where the Cloud TPU is located in. If not specified, we -will attempt to automatically detect the GCE project from metadata. -
-`use_xla` - -Use XLA even if strategy is not tpu. If strategy is tpu, always -use XLA, and this flag has no effect. -
-`profile` - -Enable profile mode. -
-`debug` - -Enable debug mode. -
-`tf_random_seed` - -Fixed random seed for deterministic execution across runs -for debugging. -
-`verbose` - -verbosity mode for tf.keras.callbacks.ModelCheckpoint, 0 or 1. -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker/object_detector/EfficientDetLite1Spec.md b/site/en/lite/api_docs/python/tflite_model_maker/object_detector/EfficientDetLite1Spec.md deleted file mode 100644 index fb0feb7931..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/object_detector/EfficientDetLite1Spec.md +++ /dev/null @@ -1,212 +0,0 @@ -page_type: reference -description: Creates EfficientDet-Lite1 model spec. See also: tflite_model_maker.object_detector.EfficientDetSpec. - - - - - - -
- - -
- -# tflite_model_maker.object_detector.EfficientDetLite1Spec - - - - - - - - - -Creates EfficientDet-Lite1 model spec. See also: tflite_model_maker.object_detector.EfficientDetSpec. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`model_name` - -Model name. -
-`uri` - -TF-Hub path/url to EfficientDet module. -
-`hparams` - -Hyperparameters used to overwrite default configuration. Can be - -1) Dict, contains parameter names and values; 2) String, Comma separated -k=v pairs of hyperparameters; 3) String, yaml filename which's a module -containing attributes to use as hyperparameters. -
-`model_dir` - -The location to save the model checkpoint files. -
-`epochs` - -Default training epochs. -
-`batch_size` - -Training & Evaluation batch size. -
-`steps_per_execution` - -Number of steps per training execution. -
-`moving_average_decay` - -Float. The decay to use for maintaining moving -averages of the trained parameters. -
-`var_freeze_expr` - -Expression to freeze variables. -
-`tflite_max_detections` - -The max number of output detections in the TFLite -model. -
-`strategy` - - A string specifying which distribution strategy to use. -Accepted values are 'tpu', 'gpus', None. tpu' means to use TPUStrategy. -'gpus' mean to use MirroredStrategy for multi-gpus. If None, use TF -default with OneDeviceStrategy. -
-`tpu` - -The Cloud TPU to use for training. This should be either the name -used when creating the Cloud TPU, or a grpc://ip.address.of.tpu:8470 - url. -
-`gcp_project` - -Project name for the Cloud TPU-enabled project. If not -specified, we will attempt to automatically detect the GCE project from -metadata. -
-`tpu_zone` - -GCE zone where the Cloud TPU is located in. If not specified, we -will attempt to automatically detect the GCE project from metadata. -
-`use_xla` - -Use XLA even if strategy is not tpu. If strategy is tpu, always -use XLA, and this flag has no effect. -
-`profile` - -Enable profile mode. -
-`debug` - -Enable debug mode. -
-`tf_random_seed` - -Fixed random seed for deterministic execution across runs -for debugging. -
-`verbose` - -verbosity mode for tf.keras.callbacks.ModelCheckpoint, 0 or 1. -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker/object_detector/EfficientDetLite2Spec.md b/site/en/lite/api_docs/python/tflite_model_maker/object_detector/EfficientDetLite2Spec.md deleted file mode 100644 index 66bbf69924..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/object_detector/EfficientDetLite2Spec.md +++ /dev/null @@ -1,212 +0,0 @@ -page_type: reference -description: Creates EfficientDet-Lite2 model spec. See also: tflite_model_maker.object_detector.EfficientDetSpec. - - - - - - -
- - -
- -# tflite_model_maker.object_detector.EfficientDetLite2Spec - - - - - - - - - -Creates EfficientDet-Lite2 model spec. See also: tflite_model_maker.object_detector.EfficientDetSpec. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`model_name` - -Model name. -
-`uri` - -TF-Hub path/url to EfficientDet module. -
-`hparams` - -Hyperparameters used to overwrite default configuration. Can be - -1) Dict, contains parameter names and values; 2) String, Comma separated -k=v pairs of hyperparameters; 3) String, yaml filename which's a module -containing attributes to use as hyperparameters. -
-`model_dir` - -The location to save the model checkpoint files. -
-`epochs` - -Default training epochs. -
-`batch_size` - -Training & Evaluation batch size. -
-`steps_per_execution` - -Number of steps per training execution. -
-`moving_average_decay` - -Float. The decay to use for maintaining moving -averages of the trained parameters. -
-`var_freeze_expr` - -Expression to freeze variables. -
-`tflite_max_detections` - -The max number of output detections in the TFLite -model. -
-`strategy` - - A string specifying which distribution strategy to use. -Accepted values are 'tpu', 'gpus', None. tpu' means to use TPUStrategy. -'gpus' mean to use MirroredStrategy for multi-gpus. If None, use TF -default with OneDeviceStrategy. -
-`tpu` - -The Cloud TPU to use for training. This should be either the name -used when creating the Cloud TPU, or a grpc://ip.address.of.tpu:8470 - url. -
-`gcp_project` - -Project name for the Cloud TPU-enabled project. If not -specified, we will attempt to automatically detect the GCE project from -metadata. -
-`tpu_zone` - -GCE zone where the Cloud TPU is located in. If not specified, we -will attempt to automatically detect the GCE project from metadata. -
-`use_xla` - -Use XLA even if strategy is not tpu. If strategy is tpu, always -use XLA, and this flag has no effect. -
-`profile` - -Enable profile mode. -
-`debug` - -Enable debug mode. -
-`tf_random_seed` - -Fixed random seed for deterministic execution across runs -for debugging. -
-`verbose` - -verbosity mode for tf.keras.callbacks.ModelCheckpoint, 0 or 1. -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker/object_detector/EfficientDetLite3Spec.md b/site/en/lite/api_docs/python/tflite_model_maker/object_detector/EfficientDetLite3Spec.md deleted file mode 100644 index 102e85db63..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/object_detector/EfficientDetLite3Spec.md +++ /dev/null @@ -1,212 +0,0 @@ -page_type: reference -description: Creates EfficientDet-Lite3 model spec. See also: tflite_model_maker.object_detector.EfficientDetSpec. - - - - - - -
- - -
- -# tflite_model_maker.object_detector.EfficientDetLite3Spec - - - - - - - - - -Creates EfficientDet-Lite3 model spec. See also: tflite_model_maker.object_detector.EfficientDetSpec. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`model_name` - -Model name. -
-`uri` - -TF-Hub path/url to EfficientDet module. -
-`hparams` - -Hyperparameters used to overwrite default configuration. Can be - -1) Dict, contains parameter names and values; 2) String, Comma separated -k=v pairs of hyperparameters; 3) String, yaml filename which's a module -containing attributes to use as hyperparameters. -
-`model_dir` - -The location to save the model checkpoint files. -
-`epochs` - -Default training epochs. -
-`batch_size` - -Training & Evaluation batch size. -
-`steps_per_execution` - -Number of steps per training execution. -
-`moving_average_decay` - -Float. The decay to use for maintaining moving -averages of the trained parameters. -
-`var_freeze_expr` - -Expression to freeze variables. -
-`tflite_max_detections` - -The max number of output detections in the TFLite -model. -
-`strategy` - - A string specifying which distribution strategy to use. -Accepted values are 'tpu', 'gpus', None. tpu' means to use TPUStrategy. -'gpus' mean to use MirroredStrategy for multi-gpus. If None, use TF -default with OneDeviceStrategy. -
-`tpu` - -The Cloud TPU to use for training. This should be either the name -used when creating the Cloud TPU, or a grpc://ip.address.of.tpu:8470 - url. -
-`gcp_project` - -Project name for the Cloud TPU-enabled project. If not -specified, we will attempt to automatically detect the GCE project from -metadata. -
-`tpu_zone` - -GCE zone where the Cloud TPU is located in. If not specified, we -will attempt to automatically detect the GCE project from metadata. -
-`use_xla` - -Use XLA even if strategy is not tpu. If strategy is tpu, always -use XLA, and this flag has no effect. -
-`profile` - -Enable profile mode. -
-`debug` - -Enable debug mode. -
-`tf_random_seed` - -Fixed random seed for deterministic execution across runs -for debugging. -
-`verbose` - -verbosity mode for tf.keras.callbacks.ModelCheckpoint, 0 or 1. -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker/object_detector/EfficientDetLite4Spec.md b/site/en/lite/api_docs/python/tflite_model_maker/object_detector/EfficientDetLite4Spec.md deleted file mode 100644 index d52da005fd..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/object_detector/EfficientDetLite4Spec.md +++ /dev/null @@ -1,212 +0,0 @@ -page_type: reference -description: Creates EfficientDet-Lite4 model spec. See also: tflite_model_maker.object_detector.EfficientDetSpec. - - - - - - -
- - -
- -# tflite_model_maker.object_detector.EfficientDetLite4Spec - - - - - - - - - -Creates EfficientDet-Lite4 model spec. See also: tflite_model_maker.object_detector.EfficientDetSpec. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`model_name` - -Model name. -
-`uri` - -TF-Hub path/url to EfficientDet module. -
-`hparams` - -Hyperparameters used to overwrite default configuration. Can be - -1) Dict, contains parameter names and values; 2) String, Comma separated -k=v pairs of hyperparameters; 3) String, yaml filename which's a module -containing attributes to use as hyperparameters. -
-`model_dir` - -The location to save the model checkpoint files. -
-`epochs` - -Default training epochs. -
-`batch_size` - -Training & Evaluation batch size. -
-`steps_per_execution` - -Number of steps per training execution. -
-`moving_average_decay` - -Float. The decay to use for maintaining moving -averages of the trained parameters. -
-`var_freeze_expr` - -Expression to freeze variables. -
-`tflite_max_detections` - -The max number of output detections in the TFLite -model. -
-`strategy` - - A string specifying which distribution strategy to use. -Accepted values are 'tpu', 'gpus', None. tpu' means to use TPUStrategy. -'gpus' mean to use MirroredStrategy for multi-gpus. If None, use TF -default with OneDeviceStrategy. -
-`tpu` - -The Cloud TPU to use for training. This should be either the name -used when creating the Cloud TPU, or a grpc://ip.address.of.tpu:8470 - url. -
-`gcp_project` - -Project name for the Cloud TPU-enabled project. If not -specified, we will attempt to automatically detect the GCE project from -metadata. -
-`tpu_zone` - -GCE zone where the Cloud TPU is located in. If not specified, we -will attempt to automatically detect the GCE project from metadata. -
-`use_xla` - -Use XLA even if strategy is not tpu. If strategy is tpu, always -use XLA, and this flag has no effect. -
-`profile` - -Enable profile mode. -
-`debug` - -Enable debug mode. -
-`tf_random_seed` - -Fixed random seed for deterministic execution across runs -for debugging. -
-`verbose` - -verbosity mode for tf.keras.callbacks.ModelCheckpoint, 0 or 1. -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker/object_detector/EfficientDetSpec.md b/site/en/lite/api_docs/python/tflite_model_maker/object_detector/EfficientDetSpec.md deleted file mode 100644 index fce879325f..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/object_detector/EfficientDetSpec.md +++ /dev/null @@ -1,592 +0,0 @@ -page_type: reference -description: A specification of the EfficientDet model. - - - - - - -
- - - - - - - - - - - -
- -# tflite_model_maker.object_detector.EfficientDetSpec - - - - - - - - - -A specification of the EfficientDet model. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`model_name` - -Model name. -
-`uri` - -TF-Hub path/url to EfficientDet module. -
-`hparams` - -Hyperparameters used to overwrite default configuration. Can be - -1) Dict, contains parameter names and values; 2) String, Comma separated -k=v pairs of hyperparameters; 3) String, yaml filename which's a module -containing attributes to use as hyperparameters. -
-`model_dir` - -The location to save the model checkpoint files. -
-`epochs` - -Default training epochs. -
-`batch_size` - -Training & Evaluation batch size. -
-`steps_per_execution` - -Number of steps per training execution. -
-`moving_average_decay` - -Float. The decay to use for maintaining moving -averages of the trained parameters. -
-`var_freeze_expr` - -Expression to freeze variables. -
-`tflite_max_detections` - -The max number of output detections in the TFLite -model. -
-`strategy` - - A string specifying which distribution strategy to use. -Accepted values are 'tpu', 'gpus', None. tpu' means to use TPUStrategy. -'gpus' mean to use MirroredStrategy for multi-gpus. If None, use TF -default with OneDeviceStrategy. -
-`tpu` - -The Cloud TPU to use for training. This should be either the name -used when creating the Cloud TPU, or a grpc://ip.address.of.tpu:8470 - url. -
-`gcp_project` - -Project name for the Cloud TPU-enabled project. If not -specified, we will attempt to automatically detect the GCE project from -metadata. -
-`tpu_zone` - -GCE zone where the Cloud TPU is located in. If not specified, we -will attempt to automatically detect the GCE project from metadata. -
-`use_xla` - -Use XLA even if strategy is not tpu. If strategy is tpu, always -use XLA, and this flag has no effect. -
-`profile` - -Enable profile mode. -
-`debug` - -Enable debug mode. -
-`tf_random_seed` - -Fixed random seed for deterministic execution across runs -for debugging. -
-`verbose` - -verbosity mode for tf.keras.callbacks.ModelCheckpoint, 0 or 1. -
- - - -## Methods - -

create_model

- -View source - - - -Creates the EfficientDet model. - - -

evaluate

- -View source - - - -Evaluate the EfficientDet keras model. - - - - - - - - - - - - - - - - - - - - -
Args
-`model` - -The keras model to be evaluated. -
-`dataset` - -tf.data.Dataset used for evaluation. -
-`steps` - -Number of steps to evaluate the model. -
-`json_file` - -JSON with COCO data format containing golden bounding boxes. -Used for validation. If None, use the ground truth from the dataloader. -Refer to -https://towardsdatascience.com/coco-data-format-for-object-detection-a4c5eaf518c5 - for the description of COCO data format. -
- - - - - - - - - - - -
Returns
-A dict contains AP metrics. -
- - - -

evaluate_tflite

- -View source - - - -Evaluate the EfficientDet TFLite model. - - - - - - - - - - - - - - - - - - - - -
Args
-`tflite_filepath` - -File path to the TFLite model. -
-`dataset` - -tf.data.Dataset used for evaluation. -
-`steps` - -Number of steps to evaluate the model. -
-`json_file` - -JSON with COCO data format containing golden bounding boxes. -Used for validation. If None, use the ground truth from the dataloader. -Refer to -https://towardsdatascience.com/coco-data-format-for-object-detection-a4c5eaf518c5 - for the description of COCO data format. -
- - - - - - - - - - - -
Returns
-A dict contains AP metrics. -
- - - -

export_saved_model

- -View source - - - -Saves the model to Tensorflow SavedModel. - - - - - - - - - - - - - - - - - - - - - - - -
Args
-`model` - -The EfficientDetNet model used for training which doesn't have pre -and post processing. -
-`saved_model_dir` - -Folder path for saved model. -
-`batch_size` - -Batch size to be saved in saved_model. -
-`pre_mode` - -Pre-processing Mode in ExportModel, must be {None, 'infer'}. -
-`post_mode` - -Post-processing Mode in ExportModel, must be {None, 'global', -'per_class', 'tflite'}. -
- - - -

export_tflite

- -View source - - - -Converts the retrained model to tflite format and saves it. - -The exported TFLite model has the following inputs & outputs: -One input: - image: a float32 tensor of shape[1, height, width, 3] containing the - normalized input image. `self.config.image_size` is [height, width]. - - - - - - - - - - - - - - - - - - - -
Four Outputs
-`detection_boxes` - -a float32 tensor of shape [1, num_boxes, 4] with box -locations. -
-`detection_classes` - -a float32 tensor of shape [1, num_boxes] with class -indices. -
-`detection_scores` - -a float32 tensor of shape [1, num_boxes] with class -scores. -
-`num_boxes` - -a float32 tensor of size 1 containing the number of detected -boxes. -
- - - - - - - - - - - - - - - - - - -
Args
-`model` - -The EfficientDetNet model used for training which doesn't have pre -and post processing. -
-`tflite_filepath` - -File path to save tflite model. -
-`quantization_config` - -Configuration for post-training quantization. -
- - - -

get_default_quantization_config

- -View source - - - -Gets the default quantization configuration. - - -

train

- -View source - - - -Run EfficientDet training. - - - - - - - - - - - - - - - -
-compat_tf_versions - -`[2]` -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker/object_detector/ObjectDetector.md b/site/en/lite/api_docs/python/tflite_model_maker/object_detector/ObjectDetector.md deleted file mode 100644 index e8c50f69dd..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/object_detector/ObjectDetector.md +++ /dev/null @@ -1,384 +0,0 @@ -page_type: reference -description: ObjectDetector class for inference and exporting to tflite. - - - - - - -
- - - - - - - - - - - - - -
- -# tflite_model_maker.object_detector.ObjectDetector - - - - - - - - - -ObjectDetector class for inference and exporting to tflite. - - - - - - - - - - - - - - - - - - - - - - - -
-`model_spec` - -Specification for the model. -
-`label_map` - - Dict, map label integer ids to string label names such as {1: -'person', 2: 'notperson'}. 0 is the reserved key for `background` and - doesn't need to be included in `label_map`. Label names can't be - duplicated. -
-`representative_data` - - Representative dataset for full integer -quantization. Used when converting the keras model to the TFLite model -with full interger quantization. -
- - - -## Methods - -

create

- -View source - - - -Loads data and train the model for object detection. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Args
-`train_data` - -Training data. -
-`model_spec` - -Specification for the model. -
-`validation_data` - -Validation data. If None, skips validation process. -
-`epochs` - -Number of epochs for training. -
-`batch_size` - -Batch size for training. -
-`train_whole_model` - -Boolean, False by default. If true, train the whole -model. Otherwise, only train the layers that are not match -`model_spec.config.var_freeze_expr`. -
-`do_train` - -Whether to run training. -
- - - - - - - - - - - -
Returns
-An instance based on ObjectDetector. -
- - - -

create_model

- -View source - - - - - - -

create_serving_model

- -View source - - - -Returns the underlining Keras model for serving. - - -

evaluate

- -View source - - - -Evaluates the model. - - -

evaluate_tflite

- -View source - - - -Evaluate the TFLite model. - - -

export

- -View source - - - -Converts the retrained model based on `export_format`. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Args
-`export_dir` - -The directory to save exported files. -
-`tflite_filename` - -File name to save tflite model. The full export path is -{export_dir}/{tflite_filename}. -
-`label_filename` - -File name to save labels. The full export path is -{export_dir}/{label_filename}. -
-`vocab_filename` - -File name to save vocabulary. The full export path is -{export_dir}/{vocab_filename}. -
-`saved_model_filename` - -Path to SavedModel or H5 file to save the model. The -full export path is -{export_dir}/{saved_model_filename}/{saved_model.pb|assets|variables}. -
-`tfjs_folder_name` - -Folder name to save tfjs model. The full export path is -{export_dir}/{tfjs_folder_name}. -
-`export_format` - -List of export format that could be saved_model, tflite, -label, vocab. -
-`**kwargs` - -Other parameters like `quantized_config` for TFLITE model. -
- - - -

summary

- -View source - - - - - - -

train

- -View source - - - -Feeds the training data for training. - - - - - - - - - - - - - - - - - - -
-ALLOWED_EXPORT_FORMAT - -`(, - , - )` -
-DEFAULT_EXPORT_FORMAT - -`` -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker/object_detector/create.md b/site/en/lite/api_docs/python/tflite_model_maker/object_detector/create.md deleted file mode 100644 index 419d6932a3..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/object_detector/create.md +++ /dev/null @@ -1,139 +0,0 @@ -page_type: reference -description: Loads data and train the model for object detection. - - - - - - -
- - -
- -# tflite_model_maker.object_detector.create - - - - - - - - - -Loads data and train the model for object detection. - - - - - - - -

Used in the notebooks

- - - - - - - - - - - -
Used in the tutorials
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`train_data` - -Training data. -
-`model_spec` - -Specification for the model. -
-`validation_data` - -Validation data. If None, skips validation process. -
-`epochs` - -Number of epochs for training. -
-`batch_size` - -Batch size for training. -
-`train_whole_model` - -Boolean, False by default. If true, train the whole -model. Otherwise, only train the layers that are not match -`model_spec.config.var_freeze_expr`. -
-`do_train` - -Whether to run training. -
- - - - - - - - - - - -
-An instance based on ObjectDetector. -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker/question_answer.md b/site/en/lite/api_docs/python/tflite_model_maker/question_answer.md deleted file mode 100644 index 0dbc9caeb6..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/question_answer.md +++ /dev/null @@ -1,52 +0,0 @@ -page_type: reference -description: APIs to train a model that can answer questions based on a predefined text. - - - - - - -
- - -
- -# Module: tflite_model_maker.question_answer - - - - - - - - - -APIs to train a model that can answer questions based on a predefined text. - - - -#### Task guide: - - -https://www.tensorflow.org/lite/tutorials/model_maker_question_answer - -## Classes - -[`class BertQaSpec`](../tflite_model_maker/question_answer/BertQaSpec): A specification of BERT model for question answering. - -[`class DataLoader`](../tflite_model_maker/question_answer/DataLoader): DataLoader for question answering. - -[`class QuestionAnswer`](../tflite_model_maker/question_answer/QuestionAnswer): QuestionAnswer class for inference and exporting to tflite. - -## Functions - -[`MobileBertQaSpec(...)`](../tflite_model_maker/question_answer/MobileBertQaSpec): Creates MobileBert model spec for the question answer task. See also: tflite_model_maker.question_answer.BertQaSpec. - -[`MobileBertQaSquadSpec(...)`](../tflite_model_maker/question_answer/MobileBertQaSquadSpec): Creates MobileBert model spec that's already retrained on SQuAD1.1 for the question answer task. See also: tflite_model_maker.question_answer.BertQaSpec. - -[`create(...)`](../tflite_model_maker/question_answer/create): Loads data and train the model for question answer. diff --git a/site/en/lite/api_docs/python/tflite_model_maker/question_answer/BertQaSpec.md b/site/en/lite/api_docs/python/tflite_model_maker/question_answer/BertQaSpec.md deleted file mode 100644 index d19c210628..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/question_answer/BertQaSpec.md +++ /dev/null @@ -1,629 +0,0 @@ -page_type: reference -description: A specification of BERT model for question answering. - - - - - - -
- - - - - - - - - - - - - - - - - - - - -
- -# tflite_model_maker.question_answer.BertQaSpec - - - - - - - - - -A specification of BERT model for question answering. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`uri` - -TF-Hub path/url to Bert module. -
-`model_dir` - -The location of the model checkpoint files. -
-`seq_len` - -Length of the sequence to feed into the model. -
-`query_len` - -Length of the query to feed into the model. -
-`doc_stride` - -The stride when we do a sliding window approach to take chunks -of the documents. -
-`dropout_rate` - -The rate for dropout. -
-`initializer_range` - -The stdev of the truncated_normal_initializer for -initializing all weight matrices. -
-`learning_rate` - -The initial learning rate for Adam. -
-`distribution_strategy` - - A string specifying which distribution strategy to -use. Accepted values are 'off', 'one_device', 'mirrored', -'parameter_server', 'multi_worker_mirrored', and 'tpu' -- case -insensitive. 'off' means not to use Distribution Strategy; 'tpu' means -to use TPUStrategy using `tpu_address`. -
-`num_gpus` - -How many GPUs to use at each worker with the -DistributionStrategies API. The default is -1, which means utilize all -available GPUs. -
-`tpu` - -TPU address to connect to. -
-`trainable` - -boolean, whether pretrain layer is trainable. -
-`predict_batch_size` - -Batch size for prediction. -
-`do_lower_case` - -boolean, whether to lower case the input text. Should be -True for uncased models and False for cased models. -
-`is_tf2` - -boolean, whether the hub module is in TensorFlow 2.x format. -
-`tflite_input_name` - -Dict, input names for the TFLite model. -
-`tflite_output_name` - -Dict, output names for the TFLite model. -
-`init_from_squad_model` - -boolean, whether to initialize from the model that -is already retrained on Squad 1.1. -
-`default_batch_size` - -Default batch size for training. -
-`name` - -Name of the object. -
- - - -## Methods - -

build

- -View source - - - -Builds the class. Used for lazy initialization. - - -

convert_examples_to_features

- -View source - - - -Converts examples to features and write them into TFRecord file. - - -

create_model

- -View source - - - -Creates the model for qa task. - - -

evaluate

- -View source - - - -Evaluate QA model. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Args
-`model` - -The keras model to be evaluated. -
-`tflite_filepath` - -File path to the TFLite model. -
-`dataset` - -tf.data.Dataset used for evaluation. -
-`num_steps` - -Number of steps to evaluate the model. -
-`eval_examples` - -List of `squad_lib.SquadExample` for evaluation data. -
-`eval_features` - -List of `squad_lib.InputFeatures` for evaluation data. -
-`predict_file` - -The input predict file. -
-`version_2_with_negative` - -Whether the input predict file is SQuAD 2.0 -format. -
-`max_answer_length` - -The maximum length of an answer that can be generated. -This is needed because the start and end predictions are not conditioned -on one another. -
-`null_score_diff_threshold` - -If null_score - best_non_null is greater than -the threshold, predict null. This is only used for SQuAD v2. -
-`verbose_logging` - -If true, all of the warnings related to data processing -will be printed. A number of warnings are expected for a normal SQuAD -evaluation. -
-`output_dir` - -The output directory to save output to json files: -predictions.json, nbest_predictions.json, null_odds.json. If None, skip -saving to json files. -
- - - - - - - - - - - -
Returns
-A dict contains two metrics: Exact match rate and F1 score. -
- - - -

get_config

- -View source - - - -Gets the configuration. - - -

get_default_quantization_config

- -View source - - - -Gets the default quantization configuration. - - -

get_name_to_features

- -View source - - - -Gets the dictionary describing the features. - - -

predict

- -View source - - - -Predicts the dataset for `model`. - - -

predict_tflite

- -View source - - - -Predicts the dataset for TFLite model in `tflite_filepath`. - - -

reorder_input_details

- -View source - - - -Reorders the tflite input details to map the order of keras model. - - -

reorder_output_details

- -View source - - - -Reorders the tflite output details to map the order of keras model. - - -

save_vocab

- -View source - - - -Prints the file path to the vocabulary. - - -

select_data_from_record

- -View source - - - -Dispatches records to features and labels. - - -

train

- -View source - - - -Run bert QA training. - - - - - - - - - - - - - - - - - - - - -
Args
-`train_ds` - -tf.data.Dataset, training data to be fed in -tf.keras.Model.fit(). -
-`epochs` - -Integer, training epochs. -
-`steps_per_epoch` - -Integer or None. Total number of steps (batches of -samples) before declaring one epoch finished and starting the next -epoch. If `steps_per_epoch` is None, the epoch will run until the input -dataset is exhausted. -
-`**kwargs` - -Other parameters used in the tf.keras.Model.fit(). -
- - - - - - - - - - - -
Returns
-tf.keras.Model, the keras model that's already trained. -
- - - - - - - - - - - - - - - - - - - - - - -
-compat_tf_versions - -`[2]` -
-convert_from_saved_model_tf2 - -`True` -
-need_gen_vocab - -`False` -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker/question_answer/DataLoader.md b/site/en/lite/api_docs/python/tflite_model_maker/question_answer/DataLoader.md deleted file mode 100644 index 5bfb6db860..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/question_answer/DataLoader.md +++ /dev/null @@ -1,341 +0,0 @@ -page_type: reference -description: DataLoader for question answering. - - - - - - -
- - - - - - - -
- -# tflite_model_maker.question_answer.DataLoader - - - - - - - - - -DataLoader for question answering. - - - - - - -

Used in the notebooks

- - - - - - - - - - - -
Used in the tutorials
- -
- - - - - - - - - - - - - - - -
-`dataset` - -A tf.data.Dataset object that contains a potentially large set of -elements, where each element is a pair of (input_data, target). The -`input_data` means the raw input data, like an image, a text etc., while -the `target` means some ground truth of the raw input data, such as the -classification label of the image etc. -
-`size` - -The size of the dataset. tf.data.Dataset donesn't support a function -to get the length directly since it's lazy-loaded and may be infinite. -
- - - - - - - - - - - - - - -
-`size` - -Returns the size of the dataset. - -Note that this function may return None becuase the exact size of the -dataset isn't a necessary parameter to create an instance of this class, -and tf.data.Dataset donesn't support a function to get the length directly -since it's lazy-loaded and may be infinite. -In most cases, however, when an instance of this class is created by helper -functions like 'from_folder', the size of the dataset will be preprocessed, -and this function can return an int representing the size of the dataset. -
- - - -## Methods - -

from_squad

- -View source - - - -Loads data in SQuAD format and preproecess text according to `model_spec`. - - - - - - - - - - - - - - - - - - - - - - - -
Args
-`filename` - -Name of the file. -
-`model_spec` - -Specification for the model. -
-`is_training` - -Whether the loaded data is for training or not. -
-`version_2_with_negative` - -Whether it's SQuAD 2.0 format. -
-`cache_dir` - -The cache directory to save preprocessed data. If None, -generates a temporary directory to cache preprocessed data. -
- - - - - - - - - - - -
Returns
-QuestionAnswerDataLoader object. -
- - - -

gen_dataset

- -View source - - - -Generate a shared and batched tf.data.Dataset for training/evaluation. - - - - - - - - - - - - - - - - - - - - - - - - - - -
Args
-`batch_size` - -A integer, the returned dataset will be batched by this size. -
-`is_training` - -A boolean, when True, the returned dataset will be optionally -shuffled and repeated as an endless dataset. -
-`shuffle` - -A boolean, when True, the returned dataset will be shuffled to -create randomness during model training. -
-`input_pipeline_context` - -A InputContext instance, used to shared dataset -among multiple workers when distribution strategy is used. -
-`preprocess` - -A function taking three arguments in order, feature, label and -boolean is_training. -
-`drop_remainder` - -boolean, whether the finaly batch drops remainder. -
- - - - - - - - - - - -
Returns
-A TF dataset ready to be consumed by Keras model. -
- - - -

split

- -View source - - - -Splits dataset into two sub-datasets with the given fraction. - -Primarily used for splitting the data set into training and testing sets. - - - - - - - - - - -
Args
-`fraction` - -float, demonstrates the fraction of the first returned -subdataset in the original data. -
- - - - - - - - - - - -
Returns
-The splitted two sub datasets. -
- - - -

__len__

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_model_maker/question_answer/MobileBertQaSpec.md b/site/en/lite/api_docs/python/tflite_model_maker/question_answer/MobileBertQaSpec.md deleted file mode 100644 index c8d3b7086f..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/question_answer/MobileBertQaSpec.md +++ /dev/null @@ -1,214 +0,0 @@ -page_type: reference -description: Creates MobileBert model spec for the question answer task. See also: tflite_model_maker.question_answer.BertQaSpec. - - - - - - -
- - -
- -# tflite_model_maker.question_answer.MobileBertQaSpec - - - - - - - - - -Creates MobileBert model spec for the question answer task. See also: tflite_model_maker.question_answer.BertQaSpec. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`uri` - -TF-Hub path/url to Bert module. -
-`model_dir` - -The location of the model checkpoint files. -
-`seq_len` - -Length of the sequence to feed into the model. -
-`query_len` - -Length of the query to feed into the model. -
-`doc_stride` - -The stride when we do a sliding window approach to take chunks -of the documents. -
-`dropout_rate` - -The rate for dropout. -
-`initializer_range` - -The stdev of the truncated_normal_initializer for -initializing all weight matrices. -
-`learning_rate` - -The initial learning rate for Adam. -
-`distribution_strategy` - - A string specifying which distribution strategy to -use. Accepted values are 'off', 'one_device', 'mirrored', -'parameter_server', 'multi_worker_mirrored', and 'tpu' -- case -insensitive. 'off' means not to use Distribution Strategy; 'tpu' means -to use TPUStrategy using `tpu_address`. -
-`num_gpus` - -How many GPUs to use at each worker with the -DistributionStrategies API. The default is -1, which means utilize all -available GPUs. -
-`tpu` - -TPU address to connect to. -
-`trainable` - -boolean, whether pretrain layer is trainable. -
-`predict_batch_size` - -Batch size for prediction. -
-`do_lower_case` - -boolean, whether to lower case the input text. Should be -True for uncased models and False for cased models. -
-`is_tf2` - -boolean, whether the hub module is in TensorFlow 2.x format. -
-`tflite_input_name` - -Dict, input names for the TFLite model. -
-`tflite_output_name` - -Dict, output names for the TFLite model. -
-`init_from_squad_model` - -boolean, whether to initialize from the model that -is already retrained on Squad 1.1. -
-`default_batch_size` - -Default batch size for training. -
-`name` - -Name of the object. -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker/question_answer/MobileBertQaSquadSpec.md b/site/en/lite/api_docs/python/tflite_model_maker/question_answer/MobileBertQaSquadSpec.md deleted file mode 100644 index 8bacef70a7..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/question_answer/MobileBertQaSquadSpec.md +++ /dev/null @@ -1,214 +0,0 @@ -page_type: reference -description: Creates MobileBert model spec that's already retrained on SQuAD1.1 for the question answer task. See also: tflite_model_maker.question_answer.BertQaSpec. - - - - - - -
- - -
- -# tflite_model_maker.question_answer.MobileBertQaSquadSpec - - - - - - - - - -Creates MobileBert model spec that's already retrained on SQuAD1.1 for the question answer task. See also: tflite_model_maker.question_answer.BertQaSpec. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`uri` - -TF-Hub path/url to Bert module. -
-`model_dir` - -The location of the model checkpoint files. -
-`seq_len` - -Length of the sequence to feed into the model. -
-`query_len` - -Length of the query to feed into the model. -
-`doc_stride` - -The stride when we do a sliding window approach to take chunks -of the documents. -
-`dropout_rate` - -The rate for dropout. -
-`initializer_range` - -The stdev of the truncated_normal_initializer for -initializing all weight matrices. -
-`learning_rate` - -The initial learning rate for Adam. -
-`distribution_strategy` - - A string specifying which distribution strategy to -use. Accepted values are 'off', 'one_device', 'mirrored', -'parameter_server', 'multi_worker_mirrored', and 'tpu' -- case -insensitive. 'off' means not to use Distribution Strategy; 'tpu' means -to use TPUStrategy using `tpu_address`. -
-`num_gpus` - -How many GPUs to use at each worker with the -DistributionStrategies API. The default is -1, which means utilize all -available GPUs. -
-`tpu` - -TPU address to connect to. -
-`trainable` - -boolean, whether pretrain layer is trainable. -
-`predict_batch_size` - -Batch size for prediction. -
-`do_lower_case` - -boolean, whether to lower case the input text. Should be -True for uncased models and False for cased models. -
-`is_tf2` - -boolean, whether the hub module is in TensorFlow 2.x format. -
-`tflite_input_name` - -Dict, input names for the TFLite model. -
-`tflite_output_name` - -Dict, output names for the TFLite model. -
-`init_from_squad_model` - -boolean, whether to initialize from the model that -is already retrained on Squad 1.1. -
-`default_batch_size` - -Default batch size for training. -
-`name` - -Name of the object. -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker/question_answer/QuestionAnswer.md b/site/en/lite/api_docs/python/tflite_model_maker/question_answer/QuestionAnswer.md deleted file mode 100644 index ad720c2913..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/question_answer/QuestionAnswer.md +++ /dev/null @@ -1,514 +0,0 @@ -page_type: reference -description: QuestionAnswer class for inference and exporting to tflite. - - - - - - -
- - - - - - - - - - - - - -
- -# tflite_model_maker.question_answer.QuestionAnswer - - - - - - - - - -QuestionAnswer class for inference and exporting to tflite. - - - - - - - - - - - - - - - - - - - - -
-`model_spec` - -Specification for the model. -
-`shuffle` - -Whether the training data should be shuffled. -
- - - -## Methods - -

create

- -View source - - - -Loads data and train the model for question answer. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Args
-`train_data` - -Training data. -
-`model_spec` - -Specification for the model. -
-`batch_size` - -Batch size for training. -
-`epochs` - -Number of epochs for training. -
-`steps_per_epoch` - -Integer or None. Total number of steps (batches of -samples) before declaring one epoch finished and starting the next -epoch. If `steps_per_epoch` is None, the epoch will run until the input -dataset is exhausted. -
-`shuffle` - -Whether the data should be shuffled. -
-`do_train` - -Whether to run training. -
- - - - - - - - - - - -
Returns
-An instance based on QuestionAnswer. -
- - - -

create_model

- -View source - - - - - - -

create_serving_model

- -View source - - - -Returns the underlining Keras model for serving. - - -

evaluate

- -View source - - - -Evaluate the model. - - - - - - - - - - - - - - - - - - - - - - - -
Args
-`data` - -Data to be evaluated. -
-`max_answer_length` - -The maximum length of an answer that can be generated. -This is needed because the start and end predictions are not conditioned -on one another. -
-`null_score_diff_threshold` - -If null_score - best_non_null is greater than -the threshold, predict null. This is only used for SQuAD v2. -
-`verbose_logging` - -If true, all of the warnings related to data processing -will be printed. A number of warnings are expected for a normal SQuAD -evaluation. -
-`output_dir` - -The output directory to save output to json files: -predictions.json, nbest_predictions.json, null_odds.json. If None, skip -saving to json files. -
- - - - - - - - - - - -
Returns
-A dict contains two metrics: Exact match rate and F1 score. -
- - - -

evaluate_tflite

- -View source - - - -Evaluate the model. - - - - - - - - - - - - - - - - - - - - - - - - - - -
Args
-`tflite_filepath` - -File path to the TFLite model. -
-`data` - -Data to be evaluated. -
-`max_answer_length` - -The maximum length of an answer that can be generated. -This is needed because the start and end predictions are not conditioned -on one another. -
-`null_score_diff_threshold` - -If null_score - best_non_null is greater than -the threshold, predict null. This is only used for SQuAD v2. -
-`verbose_logging` - -If true, all of the warnings related to data processing -will be printed. A number of warnings are expected for a normal SQuAD -evaluation. -
-`output_dir` - -The output directory to save output to json files: -predictions.json, nbest_predictions.json, null_odds.json. If None, skip -saving to json files. -
- - - - - - - - - - - -
Returns
-A dict contains two metrics: Exact match rate and F1 score. -
- - - -

export

- -View source - - - -Converts the retrained model based on `export_format`. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Args
-`export_dir` - -The directory to save exported files. -
-`tflite_filename` - -File name to save tflite model. The full export path is -{export_dir}/{tflite_filename}. -
-`label_filename` - -File name to save labels. The full export path is -{export_dir}/{label_filename}. -
-`vocab_filename` - -File name to save vocabulary. The full export path is -{export_dir}/{vocab_filename}. -
-`saved_model_filename` - -Path to SavedModel or H5 file to save the model. The -full export path is -{export_dir}/{saved_model_filename}/{saved_model.pb|assets|variables}. -
-`tfjs_folder_name` - -Folder name to save tfjs model. The full export path is -{export_dir}/{tfjs_folder_name}. -
-`export_format` - -List of export format that could be saved_model, tflite, -label, vocab. -
-`**kwargs` - -Other parameters like `quantized_config` for TFLITE model. -
- - - -

summary

- -View source - - - - - - -

train

- -View source - - - -Feeds the training data for training. - - - - - - - - - - - - - - - - - - -
-ALLOWED_EXPORT_FORMAT - -`(, - , - )` -
-DEFAULT_EXPORT_FORMAT - -`(, )` -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker/question_answer/create.md b/site/en/lite/api_docs/python/tflite_model_maker/question_answer/create.md deleted file mode 100644 index a6bca36d0a..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/question_answer/create.md +++ /dev/null @@ -1,140 +0,0 @@ -page_type: reference -description: Loads data and train the model for question answer. - - - - - - -
- - -
- -# tflite_model_maker.question_answer.create - - - - - - - - - -Loads data and train the model for question answer. - - - - - - - -

Used in the notebooks

- - - - - - - - - - - -
Used in the tutorials
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`train_data` - -Training data. -
-`model_spec` - -Specification for the model. -
-`batch_size` - -Batch size for training. -
-`epochs` - -Number of epochs for training. -
-`steps_per_epoch` - -Integer or None. Total number of steps (batches of -samples) before declaring one epoch finished and starting the next -epoch. If `steps_per_epoch` is None, the epoch will run until the input -dataset is exhausted. -
-`shuffle` - -Whether the data should be shuffled. -
-`do_train` - -Whether to run training. -
- - - - - - - - - - - -
-An instance based on QuestionAnswer. -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker/recommendation.md b/site/en/lite/api_docs/python/tflite_model_maker/recommendation.md deleted file mode 100644 index 31625b2856..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/recommendation.md +++ /dev/null @@ -1,52 +0,0 @@ -page_type: reference -description: APIs to train an on-device recommendation model. - - - - - - -
- - -
- -# Module: tflite_model_maker.recommendation - - - - - - - - - -APIs to train an on-device recommendation model. - - - -#### Demo code: - - -https://github.com/tensorflow/examples/blob/master/tensorflow_examples/lite/model_maker/demo/recommendation_demo.py - -## Modules - -[`spec`](../tflite_model_maker/recommendation/spec) module: APIs for recommendation specifications. - -## Classes - -[`class DataLoader`](../tflite_model_maker/recommendation/DataLoader): Recommendation data loader. - -[`class ModelSpec`](../tflite_model_maker/recommendation/ModelSpec): Recommendation model spec. - -[`class Recommendation`](../tflite_model_maker/recommendation/Recommendation): Recommendation task class. - -## Functions - -[`create(...)`](../tflite_model_maker/recommendation/create): Loads data and train the model for recommendation. diff --git a/site/en/lite/api_docs/python/tflite_model_maker/recommendation/DataLoader.md b/site/en/lite/api_docs/python/tflite_model_maker/recommendation/DataLoader.md deleted file mode 100644 index 3b2c667820..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/recommendation/DataLoader.md +++ /dev/null @@ -1,595 +0,0 @@ -page_type: reference -description: Recommendation data loader. - - - - - - -
- - - - - - - - - - - -
- -# tflite_model_maker.recommendation.DataLoader - - - - - - - - - -Recommendation data loader. - - - - - - - - - - - - - - - - - - - - - - - -
-`dataset` - -tf.data.Dataset for recommendation. -
-`size` - -int, dataset size. -
-`vocab` - -list of dict, each vocab item is described above. -
- - - - - - - - - - - - - - -
-`size` - -Returns the size of the dataset. - -Note that this function may return None becuase the exact size of the -dataset isn't a necessary parameter to create an instance of this class, -and tf.data.Dataset donesn't support a function to get the length directly -since it's lazy-loaded and may be infinite. -In most cases, however, when an instance of this class is created by helper -functions like 'from_folder', the size of the dataset will be preprocessed, -and this function can return an int representing the size of the dataset. -
- - - -## Methods - -

download_and_extract_movielens

- -View source - - - -Downloads and extracts movielens dataset, then returns extracted dir. - - -

from_movielens

- -View source - - - -Generates data loader from movielens dataset. - -The method downloads and prepares dataset, then generates for train/eval. - -For `movielens` data format, see: - -- function `_generate_fake_data` in `recommendation_testutil.py` -- Or, zip file: http://files.grouplens.org/datasets/movielens/ml-1m.zip - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Args
-`data_dir` - -str, path to dataset containing (unzipped) text data. -
-`data_tag` - -str, specify dataset in {'train', 'test'}. -
-`input_spec` - -InputSpec, specify data format for input and embedding. -
-`generated_examples_dir` - -str, path to generate preprocessed examples. -(default: same as data_dir) -
-`min_timeline_length` - -int, min timeline length to split train/eval set. -
-`max_context_length` - -int, max context length as one input. -
-`max_context_movie_genre_length` - -int, max context length of movie genre as -one input. -
-`min_rating` - -int or None, include examples with min rating. -
-`train_data_fraction` - -float, percentage of training data [0.0, 1.0]. -
-`build_vocabs` - -boolean, whether to build vocabs. -
-`train_filename` - -str, generated file name for training data. -
-`test_filename` - -str, generated file name for test data. -
-`vocab_filename` - -str, generated file name for vocab data. -
-`meta_filename` - -str, generated file name for meta data. -
- - - - - - - - - - - -
Returns
-Data Loader. -
- - - -

gen_dataset

- -View source - - - -Generates dataset, and overwrites default drop_remainder = True. - - -

generate_movielens_dataset

- -View source - - - -Generate movielens dataset, and returns a dict contains meta. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Args
-`data_dir` - -str, path to dataset containing (unzipped) text data. -
-`generated_examples_dir` - -str, path to generate preprocessed examples. -(default: same as data_dir) -
-`train_filename` - -str, generated file name for training data. -
-`test_filename` - -str, generated file name for test data. -
-`vocab_filename` - -str, generated file name for vocab data. -
-`meta_filename` - -str, generated file name for meta data. -
-`min_timeline_length` - -int, min timeline length to split train/eval set. -
-`max_context_length` - -int, max context length as one input. -
-`max_context_movie_genre_length` - -int, max context length of movie genre as -one input. -
-`min_rating` - -int or None, include examples with min rating. -
-`train_data_fraction` - -float, percentage of training data [0.0, 1.0]. -
-`build_vocabs` - -boolean, whether to build vocabs. -
- - - - - - - - - - - -
Returns
-Dict, metadata for the movielens dataset. Containing keys: -`train_file`, `train_size`, `test_file`, `test_size`, vocab_file`, -`vocab_size`, etc. -
- - - -

get_num_classes

- -View source - - - -Gets number of classes. - -0 is reserved. Number of classes is Max Id + 1, e.g., if Max Id = 100, -then classes are [0, 100], that is 101 classes in total. - - - - - - - - - - -
Args
-`meta` - -dict, containing meta['vocab_max_id']. -
- - - - - - - - - - - -
Returns
-Number of classes. -
- - - -

load_vocab

- -View source - - - -Loads vocab from file. - -The vocab file should be json format of: a list of list[size=4], where the 4 -elements are ordered as: - [id=int, title=str, genres=str joined with '|', count=int] -It is generated when preparing movielens dataset. - - - - - - - - - - -
Args
-`vocab_file` - -str, path to vocab file. -
- - - - - - - - - - - - -
Returns
-`vocab` - -an OrderedDict maps id to item. Each item represents a movie -{ - 'id': int, - 'title': str, - 'genres': list[str], - 'count': int, -} -
- - - -

split

- -View source - - - -Splits dataset into two sub-datasets with the given fraction. - -Primarily used for splitting the data set into training and testing sets. - - - - - - - - - - -
Args
-`fraction` - -float, demonstrates the fraction of the first returned -subdataset in the original data. -
- - - - - - - - - - - -
Returns
-The splitted two sub datasets. -
- - - -

__len__

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_model_maker/recommendation/ModelSpec.md b/site/en/lite/api_docs/python/tflite_model_maker/recommendation/ModelSpec.md deleted file mode 100644 index 54f037fc79..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/recommendation/ModelSpec.md +++ /dev/null @@ -1,126 +0,0 @@ -page_type: reference -description: Recommendation model spec. - - - - - - -
- - - - - - -
- -# tflite_model_maker.recommendation.ModelSpec - - - - - - - - - -Recommendation model spec. - - - - - - - - - - - - - - - - - - - - -
-`input_spec` - -InputSpec, specify data format for input and embedding. -
-`model_hparams` - -ModelHParams, specify hparams for model achitecture. -
- - - -## Methods - -

create_model

- -View source - - - -Creates recommendation model based on params. - - - - - - - - - - -
Returns
-Keras model. -
- - - -

get_default_quantization_config

- -View source - - - -Gets the default quantization configuration. - - - - - - - - - - - - - - - -
-compat_tf_versions - -`[2]` -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker/recommendation/Recommendation.md b/site/en/lite/api_docs/python/tflite_model_maker/recommendation/Recommendation.md deleted file mode 100644 index 915bb3cef2..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/recommendation/Recommendation.md +++ /dev/null @@ -1,627 +0,0 @@ -page_type: reference -description: Recommendation task class. - - - - - - -
- - - - - - - - - - - - - - -
- -# tflite_model_maker.recommendation.Recommendation - - - - - - - - - -Recommendation task class. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`model_spec` - -recommendation model spec. -
-`model_dir` - -str, path to export model checkpoints and summaries. -
-`shuffle` - -boolean, whether the training data should be shuffled. -
-`learning_rate` - -float, learning rate. -
-`gradient_clip_norm` - -float, clip threshold (<= 0 meaning no clip). -
- - - - - - - - - - - - - - - - - -
-`input_spec` - - -
-`model_hparams` - - -
- - - -## Methods - -

create

- -View source - - - -Loads data and train the model for recommendation. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Args
-`train_data` - -Training data. -
-`model_spec` - -ModelSpec, Specification for the model. -
-`model_dir` - -str, path to export model checkpoints and summaries. -
-`validation_data` - -Validation data. -
-`batch_size` - -Batch size for training. -
-`steps_per_epoch` - -int, Number of step per epoch. -
-`epochs` - -int, Number of epochs for training. -
-`learning_rate` - -float, learning rate. -
-`gradient_clip_norm` - -float, clip threshold (<= 0 meaning no clip). -
-`shuffle` - -boolean, whether the training data should be shuffled. -
-`do_train` - -boolean, whether to run training. -
- - - - - - - - - - - -
Returns
-An instance based on Recommendation. -
- - - -

create_model

- -View source - - - -Creates a model. - - - - - - - - - - - -
Args
-`do_train` - -boolean. Whether to train the model. -
- - - - - - - - - - - -
Returns
-Keras model. -
- - - -

create_serving_model

- -View source - - - -Returns the underlining Keras model for serving. - - -

evaluate

- -View source - - - -Evaluate the model. - - - - - - - - - - - - - - -
Args
-`data` - -Evaluation data. -
-`batch_size` - -int, batch size for evaluation. -
- - - - - - - - - - - -
Returns
-History from model.evaluate(). -
- - - -

evaluate_tflite

- -View source - - - -Evaluates the tflite model. - -The data is padded to required length, and multiple metrics are evaluated. - - - - - - - - - - - - - -
Args
-`tflite_filepath` - -File path to the TFLite model. -
-`data` - -Data to be evaluated. -
- - - - - - - - - - - -
Returns
-Dict of (metric, value), evaluation result of TFLite model. -
- - - -

export

- -View source - - - -Converts the retrained model based on `export_format`. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Args
-`export_dir` - -The directory to save exported files. -
-`tflite_filename` - -File name to save tflite model. The full export path is -{export_dir}/{tflite_filename}. -
-`label_filename` - -File name to save labels. The full export path is -{export_dir}/{label_filename}. -
-`vocab_filename` - -File name to save vocabulary. The full export path is -{export_dir}/{vocab_filename}. -
-`saved_model_filename` - -Path to SavedModel or H5 file to save the model. The -full export path is -{export_dir}/{saved_model_filename}/{saved_model.pb|assets|variables}. -
-`tfjs_folder_name` - -Folder name to save tfjs model. The full export path is -{export_dir}/{tfjs_folder_name}. -
-`export_format` - -List of export format that could be saved_model, tflite, -label, vocab. -
-`**kwargs` - -Other parameters like `quantized_config` for TFLITE model. -
- - - -

summary

- -View source - - - - - - -

train

- -View source - - - -Feeds the training data for training. - - - - - - - - - - - - - - - - - - - - - - - -
Args
-`train_data` - -Training dataset. -
-`validation_data` - -Validation data. If None, skips validation process. -
-`batch_size` - -int, the batch size. -
-`steps_per_epoch` - -int, the step of each epoch. -
-`epochs` - -int, number of epochs. -
- - - - - - - - - - - -
Returns
-History from model.fit(). -
- - - - - - - - - - - - - - - - - - - - - - -
-ALLOWED_EXPORT_FORMAT - -`(, - , - )` -
-DEFAULT_EXPORT_FORMAT - -`(,)` -
-OOV_ID - -`0` -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker/recommendation/create.md b/site/en/lite/api_docs/python/tflite_model_maker/recommendation/create.md deleted file mode 100644 index 39773de69e..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/recommendation/create.md +++ /dev/null @@ -1,151 +0,0 @@ -page_type: reference -description: Loads data and train the model for recommendation. - - - - - - -
- - -
- -# tflite_model_maker.recommendation.create - - - - - - - - - -Loads data and train the model for recommendation. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`train_data` - -Training data. -
-`model_spec` - -ModelSpec, Specification for the model. -
-`model_dir` - -str, path to export model checkpoints and summaries. -
-`validation_data` - -Validation data. -
-`batch_size` - -Batch size for training. -
-`steps_per_epoch` - -int, Number of step per epoch. -
-`epochs` - -int, Number of epochs for training. -
-`learning_rate` - -float, learning rate. -
-`gradient_clip_norm` - -float, clip threshold (<= 0 meaning no clip). -
-`shuffle` - -boolean, whether the training data should be shuffled. -
-`do_train` - -boolean, whether to run training. -
- - - - - - - - - - - -
-An instance based on Recommendation. -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker/recommendation/spec.md b/site/en/lite/api_docs/python/tflite_model_maker/recommendation/spec.md deleted file mode 100644 index 725672d6a9..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/recommendation/spec.md +++ /dev/null @@ -1,119 +0,0 @@ -page_type: reference -description: APIs for recommendation specifications. - - - - - - -
- - - - -
- -# Module: tflite_model_maker.recommendation.spec - - - - - - - - - -APIs for recommendation specifications. - - - -#### Example: - - -```python -input_spec = recommendation.spec.InputSpec( - activity_feature_groups=[ - # Group #1: defines how features are grouped in the first Group. - dict( - features=[ - # First feature. - dict( - feature_name='context_movie_id', # Feature name - feature_type='INT', # Feature type - vocab_size=3953, # ID size (number of IDs) - embedding_dim=8, # Projected feature embedding dim - feature_length=10, # History length of 10. - ), - # Maybe more features... - ], - encoder_type='CNN', # CNN encoder (e.g. CNN, LSTM, BOW) - ), - # Maybe more groups... - ], - label_feature=dict( - feature_name='label_movie_id', # Label feature name - feature_type='INT', # Label type - vocab_size=3953, # Label size (number of classes) - embedding_dim=8, # label embedding demension - feature_length=1, # Exactly 1 label - ), -) - -model_hparams = recommendation.spec.ModelHParams( - hidden_layer_dims=[32, 32], # Hidden layers dimension. - eval_top_k=[1, 5], # Eval top 1 and top 5. - conv_num_filter_ratios=[2, 4], # For CNN encoder, conv filter mutipler. - conv_kernel_size=16, # For CNN encoder, base kernel size. - lstm_num_units=16, # For LSTM/RNN, num units. - num_predictions=10, # Number of output predictions. Select top 10. -) - -spec = recommendation.ModelSpec( - input_spec=input_spec, model_hparams=model_hparams) -# Or: -spec = model_spec.get( - 'recommendation', input_spec=input_spec, model_hparams=model_hparams) -``` - -## Classes - -[`class Feature`](../../tflite_model_maker/recommendation/spec/Feature): A ProtocolMessage - -[`class FeatureGroup`](../../tflite_model_maker/recommendation/spec/FeatureGroup): A ProtocolMessage - -[`class InputSpec`](../../tflite_model_maker/recommendation/spec/InputSpec): A ProtocolMessage - -[`class ModelHParams`](../../tflite_model_maker/recommendation/spec/ModelHParams): Class to hold parameters for model architecture configuration. - - - - - - - - - - - - - - - -
-EncoderType - -Instance of `google.protobuf.internal.enum_type_wrapper.EnumTypeWrapper` - -EncoderType Enum (valid: BOW, CNN, LSTM). -
-FeatureType - -Instance of `google.protobuf.internal.enum_type_wrapper.EnumTypeWrapper` - -FeatureType Enum (valid: STRING, INT, FLOAT). -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker/recommendation/spec/Feature.md b/site/en/lite/api_docs/python/tflite_model_maker/recommendation/spec/Feature.md deleted file mode 100644 index ec1da73a7b..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/recommendation/spec/Feature.md +++ /dev/null @@ -1,79 +0,0 @@ -page_type: reference -description: A ProtocolMessage - - - - - - -
- - -
- -# tflite_model_maker.recommendation.spec.Feature - - - - - - - - - -A ProtocolMessage - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`embedding_dim` - -`int64 embedding_dim` -
-`feature_length` - -`int64 feature_length` -
-`feature_name` - -`string feature_name` -
-`feature_type` - -`FeatureType feature_type` -
-`vocab_name` - -`string vocab_name` -
-`vocab_size` - -`int64 vocab_size` -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker/recommendation/spec/FeatureGroup.md b/site/en/lite/api_docs/python/tflite_model_maker/recommendation/spec/FeatureGroup.md deleted file mode 100644 index f6617ae9bd..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/recommendation/spec/FeatureGroup.md +++ /dev/null @@ -1,51 +0,0 @@ -page_type: reference -description: A ProtocolMessage - - - - - - -
- - -
- -# tflite_model_maker.recommendation.spec.FeatureGroup - - - - - - - - - -A ProtocolMessage - - - - - - - - - - - - - - - - - - -
-`encoder_type` - -`EncoderType encoder_type` -
-`features` - -`repeated Feature features` -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker/recommendation/spec/InputSpec.md b/site/en/lite/api_docs/python/tflite_model_maker/recommendation/spec/InputSpec.md deleted file mode 100644 index ebab4535f6..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/recommendation/spec/InputSpec.md +++ /dev/null @@ -1,58 +0,0 @@ -page_type: reference -description: A ProtocolMessage - - - - - - -
- - -
- -# tflite_model_maker.recommendation.spec.InputSpec - - - - - - - - - -A ProtocolMessage - - - - - - - - - - - - - - - - - - - - - -
-`activity_feature_groups` - -`repeated FeatureGroup activity_feature_groups` -
-`global_feature_groups` - -`repeated FeatureGroup global_feature_groups` -
-`label_feature` - -`Feature label_feature` -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker/recommendation/spec/ModelHParams.md b/site/en/lite/api_docs/python/tflite_model_maker/recommendation/spec/ModelHParams.md deleted file mode 100644 index 111d2164d2..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/recommendation/spec/ModelHParams.md +++ /dev/null @@ -1,174 +0,0 @@ -page_type: reference -description: Class to hold parameters for model architecture configuration. - - - - - - -
- - - - - - - - - -
- -# tflite_model_maker.recommendation.spec.ModelHParams - - - - - - - - - -Class to hold parameters for model architecture configuration. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`hidden_layer_dims` - -List of hidden layer dimensions. -
-`eval_top_k` - -Top k to evaluate. -
-`conv_num_filter_ratios` - -Number of filter ratios for the Conv1D layer. -
-`conv_kernel_size` - -Size of the Conv1D layer kernel size. -
-`lstm_num_units` - -Number of units for the LSTM layer. -
-`num_predictions` - -Number of predictions to return with serving mode, which -has default value 10. -
- - - -## Methods - -

__eq__

- - - -Method generated by attrs for class ModelConfig. - - -

__ge__

- - - -Method generated by attrs for class ModelConfig. - - -

__gt__

- - - -Method generated by attrs for class ModelConfig. - - -

__le__

- - - -Method generated by attrs for class ModelConfig. - - -

__lt__

- - - -Method generated by attrs for class ModelConfig. - - -

__ne__

- - - -Method generated by attrs for class ModelConfig. diff --git a/site/en/lite/api_docs/python/tflite_model_maker/searcher.md b/site/en/lite/api_docs/python/tflite_model_maker/searcher.md deleted file mode 100644 index 4c780195fc..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/searcher.md +++ /dev/null @@ -1,58 +0,0 @@ -page_type: reference -description: APIs to create the searcher model. - - - - - - -
- - -
- -# Module: tflite_model_maker.searcher - - - - - - - - - -APIs to create the searcher model. - - - -#### Task guide: - - -https://www.tensorflow.org/lite/tutorials/model_maker_text_searcher - -## Classes - -[`class DataLoader`](../tflite_model_maker/searcher/DataLoader): Base DataLoader class for Searcher task. - -[`class ExportFormat`](../tflite_model_maker/searcher/ExportFormat): An enumeration. - -[`class ImageDataLoader`](../tflite_model_maker/searcher/ImageDataLoader): DataLoader class for Image Searcher Task. - -[`class MetadataType`](../tflite_model_maker/searcher/MetadataType): An enumeration. - -[`class ScaNNOptions`](../tflite_model_maker/searcher/ScaNNOptions): Options to build ScaNN. - -[`class ScoreAH`](../tflite_model_maker/searcher/ScoreAH): Product Quantization (PQ) based in-partition scoring configuration. - -[`class ScoreBruteForce`](../tflite_model_maker/searcher/ScoreBruteForce): Bruce force in-partition scoring configuration. - -[`class Searcher`](../tflite_model_maker/searcher/Searcher): Creates the similarity search model with ScaNN. - -[`class TextDataLoader`](../tflite_model_maker/searcher/TextDataLoader): DataLoader class for Text Searcher. - -[`class Tree`](../tflite_model_maker/searcher/Tree): K-Means partitioning tree configuration. diff --git a/site/en/lite/api_docs/python/tflite_model_maker/searcher/DataLoader.md b/site/en/lite/api_docs/python/tflite_model_maker/searcher/DataLoader.md deleted file mode 100644 index 13db2ee2fc..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/searcher/DataLoader.md +++ /dev/null @@ -1,158 +0,0 @@ -page_type: reference -description: Base DataLoader class for Searcher task. - - - - - - -
- - - - - -
- -# tflite_model_maker.searcher.DataLoader - - - - - - - - - -Base DataLoader class for Searcher task. - - - - - - - - - - - - - - - - - - - - - - - -
-`embedder_path` - -Path to the TFLite Embedder model file. -
-`dataset` - -Embedding dataset used to build on-device ScaNN index file. The -dataset shape should be (dataset_size, embedding_dim). If None, -`dataset` will be generated from raw input data later. -
-`metadata` - - The metadata for each data in the dataset. The length of -`metadata` should be same as `dataset` and passed in the same order as -`dataset`. If `dataset` is set, `metadata` should be set as well. -
- - - - - - - - - - - - - - - - - - - - -
-`dataset` - -Gets the dataset. - -Due to performance consideration, we don't return a copy, but the returned -`self._dataset` should never be changed. -
-`embedder_path` - -Gets the path to the TFLite Embedder model file. -
-`metadata` - -Gets the metadata. -
- - - -## Methods - -

append

- -View source - - - -Appends the dataset. - -Don't check if embedders from the two data loader are the same in this -function. Users are responsible to keep the embedder identical. - - - - - - - - - - -
Args
-`data_loader` - -The data loader in which the data will be appended. -
- - - -

__len__

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_model_maker/searcher/ExportFormat.md b/site/en/lite/api_docs/python/tflite_model_maker/searcher/ExportFormat.md deleted file mode 100644 index 544887489c..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/searcher/ExportFormat.md +++ /dev/null @@ -1,58 +0,0 @@ -page_type: reference -description: An enumeration. - - - - - - -
- - - - -
- -# tflite_model_maker.searcher.ExportFormat - - - - - - - - - -An enumeration. - - - - - - - - - - - - - - - - - - -
-SCANN_INDEX_FILE - -`` -
-TFLITE - -`` -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker/searcher/ImageDataLoader.md b/site/en/lite/api_docs/python/tflite_model_maker/searcher/ImageDataLoader.md deleted file mode 100644 index 88c692ac99..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/searcher/ImageDataLoader.md +++ /dev/null @@ -1,266 +0,0 @@ -page_type: reference -description: DataLoader class for Image Searcher Task. - - - - - - -
- - - - - - - -
- -# tflite_model_maker.searcher.ImageDataLoader - - - - - - - - - -DataLoader class for Image Searcher Task. - -Inherits From: [`DataLoader`](../../tflite_model_maker/searcher/DataLoader) - - - - - - - - - - - - - - - - - - - - -
-`embedder` - -Embedder to generate embedding from raw input image. -
-`metadata_type` - -Type of MetadataLoader to load metadata for each input -data. By default, load the file name as metadata for each input data. -
- - - - - - - - - - - - - - - - - - - - -
-`dataset` - -Gets the dataset. - -Due to performance consideration, we don't return a copy, but the returned -`self._dataset` should never be changed. -
-`embedder_path` - -Gets the path to the TFLite Embedder model file. -
-`metadata` - -Gets the metadata. -
- - - -## Methods - -

append

- -View source - - - -Appends the dataset. - -Don't check if embedders from the two data loader are the same in this -function. Users are responsible to keep the embedder identical. - - - - - - - - - - -
Args
-`data_loader` - -The data loader in which the data will be appended. -
- - - -

create

- -View source - - - -Creates DataLoader for the Image Searcher task. - - - - - - - - - - - - - - - - - -
Args
-`image_embedder_path` - -Path to the ".tflite" image embedder model. -
-`metadata_type` - -Type of MetadataLoader to load metadata for each input -image based on image path. By default, load the file name as metadata -for each input image. -
-`l2_normalize` - -Whether to normalize the returned feature vector with L2 -norm. Use this option only if the model does not already contain a -native L2_NORMALIZATION TF Lite Op. In most cases, this is already the -case and L2 norm is thus achieved through TF Lite inference. -
- - - - - - - - - - - -
Returns
-DataLoader object created for the Image Searcher task. -
- - - -

load_from_folder

- -View source - - - -Loads image data from folder. - -Users can load images from different folders one by one. For instance, - -``` -# Creates data_loader instance. -data_loader = image_searcher_dataloader.DataLoader.create(tflite_path) - -# Loads images, first from `image_path1` and secondly from `image_path2`. -data_loader.load_from_folder(image_path1) -data_loader.load_from_folder(image_path2) -``` - - - - - - - - - - - - - -
Args
-`path` - -image directory to be loaded. -
-`mode` - -mode in which the file is opened, Used when metadata_type is -FROM_DAT_FILE. Only 'r' and 'rb' are supported. 'r' means opening for -reading, 'rb' means opening for reading binary. -
- - - -

__len__

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_model_maker/searcher/MetadataType.md b/site/en/lite/api_docs/python/tflite_model_maker/searcher/MetadataType.md deleted file mode 100644 index b2256b64d3..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/searcher/MetadataType.md +++ /dev/null @@ -1,58 +0,0 @@ -page_type: reference -description: An enumeration. - - - - - - -
- - - - -
- -# tflite_model_maker.searcher.MetadataType - - - - - - - - - -An enumeration. - - - - - - - - - - - - - - - - - - -
-FROM_DAT_FILE - -`` -
-FROM_FILE_NAME - -`` -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker/searcher/ScaNNOptions.md b/site/en/lite/api_docs/python/tflite_model_maker/searcher/ScaNNOptions.md deleted file mode 100644 index b8df72440b..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/searcher/ScaNNOptions.md +++ /dev/null @@ -1,162 +0,0 @@ -page_type: reference -description: Options to build ScaNN. - - - - - - -
- - - - - - - -
- -# tflite_model_maker.searcher.ScaNNOptions - - - - - - - - - -Options to build ScaNN. - - - - - - -

Used in the notebooks

- - - - - - - - - - - -
Used in the tutorials
- -
- - -ScaNN -(https://ai.googleblog.com/2020/07/announcing-scann-efficient-vector.html) is -a highly efficient and scalable vector nearest neighbor retrieval -library from Google Research. We use ScaNN to build the on-device search -index, and do on-device retrieval with a simplified implementation. - - - - - - - - - - - - - - - - - - - - - - -
-`distance_measure` - -How to compute the distance. Allowed values are -'dot_product' and 'squared_l2'. Please note that when distance is -'dot_product', we actually compute the negative dot product between query -and database vectors, to preserve the notion that "smaller is closer". -
-`tree` - -Configure partitioning. If not set, no partitioning is performed. -
-`score_ah` - -Configure asymmetric hashing. Must defined this or -`score_brute_force`. -
-`score_brute_force` - -Configure bruce force. Must defined this or `score_ah`. -
- - - -## Methods - -

__eq__

- - - - - - - - - - - - - - - - - - - - - - - - - -
-score_ah - -`None` -
-score_brute_force - -`None` -
-tree - -`None` -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker/searcher/ScoreAH.md b/site/en/lite/api_docs/python/tflite_model_maker/searcher/ScoreAH.md deleted file mode 100644 index 47ff73baeb..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/searcher/ScoreAH.md +++ /dev/null @@ -1,169 +0,0 @@ -page_type: reference -description: Product Quantization (PQ) based in-partition scoring configuration. - - - - - - -
- - - - - - - -
- -# tflite_model_maker.searcher.ScoreAH - - - - - - - - - -Product Quantization (PQ) based in-partition scoring configuration. - - - - - - -

Used in the notebooks

- - - - - - - - - - - -
Used in the tutorials
- -
- - -In ScaNN we use PQ to compress the database embeddings, but not the query -embedding. We called it Asymmetric Hashing. See -https://research.google/pubs/pub41694/ - - - - - - - - - - - - - - - - - - - - - -
-`dimensions_per_block` - -How many dimensions in each PQ block. If the embedding -vector dimensionality is a multiple of this value, there will be -`number_of_dimensions / dimensions_per_block` PQ blocks. Otherwise, the -last block will be the remainder. For example, if a vector has 12 -dimensions, and `dimensions_per_block` is 2, then there will be 6 -2-dimension blocks. However, if the vector has 13 dimensions and -`dimensions_per_block` is still 2, there will be 6 2-dimension blocks and -one 1-dimension block. -
-`anisotropic_quantization_threshold` - -If this value is set, we will penalize -the quantization error that's parallel to the original vector differently -than the orthogonal error. A generally recommended value for this -parameter would be 0.2. For more details, please look at ScaNN's 2020 ICML -paper https://arxiv.org/abs/1908.10396 and the Google AI Blog post -https://ai.googleblog.com/2020/07/announcing-scann-efficient-vector.html -
-`training_sample_size` - -How many database points to sample for training the -K-Means for PQ centers. A good starting value would be 100k or the whole -dataset if it's smaller than that. -
-`training_iterations` - -How many iterations to run K-Means for PQ. -
- - - -## Methods - -

__eq__

- - - - - - - - - - - - - - - - - - - - - - - - - -
-anisotropic_quantization_threshold - -`nan` -
-training_iterations - -`10` -
-training_sample_size - -`100000` -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker/searcher/ScoreBruteForce.md b/site/en/lite/api_docs/python/tflite_model_maker/searcher/ScoreBruteForce.md deleted file mode 100644 index 2f33925577..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/searcher/ScoreBruteForce.md +++ /dev/null @@ -1,52 +0,0 @@ -page_type: reference -description: Bruce force in-partition scoring configuration. - - - - - - -
- - - - -
- -# tflite_model_maker.searcher.ScoreBruteForce - - - - - - - - - -Bruce force in-partition scoring configuration. - - - - - - - -There'll be no compression or quantization applied to the database -embeddings or query embeddings. - -## Methods - -

__eq__

- - diff --git a/site/en/lite/api_docs/python/tflite_model_maker/searcher/Searcher.md b/site/en/lite/api_docs/python/tflite_model_maker/searcher/Searcher.md deleted file mode 100644 index b983a6f3d0..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/searcher/Searcher.md +++ /dev/null @@ -1,280 +0,0 @@ -page_type: reference -description: Creates the similarity search model with ScaNN. - - - - - - -
- - - - - - -
- -# tflite_model_maker.searcher.Searcher - - - - - - - - - -Creates the similarity search model with ScaNN. - - - - - - -

Used in the notebooks

- - - - - - - - - - - -
Used in the tutorials
- -
- - - - - - - - - - - - - - - - - - -
-`serialized_scann_path` - -Path to the dir that contains the ScaNN's -artifacts. -
-`metadata` - -The metadata for each of the embeddings in the database. Passed -in the same order as the embeddings in ScaNN. -
-`embedder_path` - -Path to the TFLite Embedder model file. -
- - - -## Methods - -

create_from_data

- -View source - - - -"Creates the instance from data. - - - - - - - - - - - - - - - - - -
Args
-`data` - -Data used to create scann. -
-`scann_options` - -Options to build the ScaNN index file. -
-`cache_dir` - -The cache directory to save serialized ScaNN and/or the tflite -model. When cache_dir is not set, a temporary folder will be created and -will **not** be removed automatically which makes it can be used later. -
- - - - - - - - - - - -
Returns
-A Searcher instance. -
- - - -

create_from_server_scann

- -View source - - - -Creates the instance from the serialized serving scann directory. - - - - - - - - - - - - - - - - - -
Args
-`serialized_scann_path` - -Path to the dir that contains the ScaNN's -artifacts. -
-`metadata` - -The metadata for each of the embeddings in the database. Passed -in the same order as the embeddings in ScaNN. -
-`embedder_path` - -Path to the TFLite Embedder model file. -
- - - - - - - - - - - -
Returns
-A Searcher instance. -
- - - -

export

- -View source - - - -Export the searcher model. - - - - - - - - - - - - - - - - - - - - -
Args
-`export_format` - -Export format that could be tflite or on-device ScaNN index -file, must be ExportFormat.TFLITE or ExportFormat.SCANN_INDEX_FILE. -
-`export_filename` - -File name to save the exported file. The exported file -can be TFLite model or on-device ScaNN index file. -
-`userinfo` - -A special field in the index file that can be an arbitrary -string supplied by the user. -
-`compression` - -Whether to snappy compress the index file. -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker/searcher/TextDataLoader.md b/site/en/lite/api_docs/python/tflite_model_maker/searcher/TextDataLoader.md deleted file mode 100644 index d55a12556c..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/searcher/TextDataLoader.md +++ /dev/null @@ -1,291 +0,0 @@ -page_type: reference -description: DataLoader class for Text Searcher. - - - - - - -
- - - - - - - -
- -# tflite_model_maker.searcher.TextDataLoader - - - - - - - - - -DataLoader class for Text Searcher. - -Inherits From: [`DataLoader`](../../tflite_model_maker/searcher/DataLoader) - - - - - - -

Used in the notebooks

- - - - - - - - - - - -
Used in the tutorials
- -
- - - - - - - - - - - - -
-`embedder` - -Embedder to generate embedding from raw input image. -
- - - - - - - - - - - - - - - - - - - - -
-`dataset` - -Gets the dataset. - -Due to performance consideration, we don't return a copy, but the returned -`self._dataset` should never be changed. -
-`embedder_path` - -Gets the path to the TFLite Embedder model file. -
-`metadata` - -Gets the metadata. -
- - - -## Methods - -

append

- -View source - - - -Appends the dataset. - -Don't check if embedders from the two data loader are the same in this -function. Users are responsible to keep the embedder identical. - - - - - - - - - - -
Args
-`data_loader` - -The data loader in which the data will be appended. -
- - - -

create

- -View source - - - -Creates DataLoader for the Text Searcher task. - - - - - - - - - - - - - - -
Args
-`text_embedder_path` - -Path to the ".tflite" text embedder model. case and L2 -norm is thus achieved through TF Lite inference. -
-`l2_normalize` - -Whether to normalize the returned feature vector with L2 -norm. Use this option only if the model does not already contain a -native L2_NORMALIZATION TF Lite Op. In most cases, this is already the -case and L2 norm is thus achieved through TF Lite inference. -
- - - - - - - - - - - -
Returns
-DataLoader object created for the Text Searcher task. -
- - - -

load_from_csv

- -View source - - - -Loads text data from csv file that includes a "header" line with titles. - -Users can load text from different csv files one by one. For instance, - -``` -# Creates data_loader instance. -data_loader = text_searcher_dataloader.DataLoader.create(tflite_path) - -# Loads text, first from `text_path1` and secondly from `text_path2`. -data_loader.load_from_csv( - text_path1, text_column='text', metadata_column='metadata') -data_loader.load_from_csv( - text_path2, text_column='text', metadata_column='metadata') -``` - - - - - - - - - - - - - - - - - - - - - - -
Args
-`path` - -Text csv file path to be loaded. -
-`text_column` - -Column name for input text. -
-`metadata_column` - -Column name for user metadata associated with each input -text. -
-`delimiter` - -Character used to separate fields. -
-`quotechar` - -Character used to quote fields containing special characters. -
- - - -

__len__

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_model_maker/searcher/Tree.md b/site/en/lite/api_docs/python/tflite_model_maker/searcher/Tree.md deleted file mode 100644 index 1beb450533..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/searcher/Tree.md +++ /dev/null @@ -1,222 +0,0 @@ -page_type: reference -description: K-Means partitioning tree configuration. - - - - - - -
- - - - - - - - - - -
- -# tflite_model_maker.searcher.Tree - - - - - - - - - -K-Means partitioning tree configuration. - - - - - - -

Used in the notebooks

- - - - - - - - - - - -
Used in the tutorials
- -
- - -In ScaNN, we use single layer K-Means tree to partition the database (index) -as a way to reduce search space. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`num_leaves` - -How many leaves (partitions) to have on the K-Means tree. In -general, a good starting point would be the square root of the database -size. -
-`num_leaves_to_search` - -During inference ScaNN will compare the query vector -against all the partition centroids and select the closest -`num_leaves_to_search` ones to search in. The more leaves to search, the -better the retrieval quality, and higher computational cost. -
-`training_sample_size` - -How many database embeddings to sample for the K-Means -training. Generally, you want to use a large enough sample of the database -to train K-Means so that it's representative enough. However, large sample -can also lead to longer training time. A good starting value would be -100k, or the whole dataset if it's smaller than that. -
-`min_partition_size` - -Smallest allowable cluster size. Any clusters smaller -than this will be removed, and its data points will be merged with other -clusters. Recommended to be 1/10 of average cluster size (size of database -divided by `num_leaves`) -
-`training_iterations` - -How many itrations to train K-Means. -
-`spherical` - -If true, L2 normalize the K-Means centroids. -
-`quantize_centroids` - -If true, quantize centroids to int8. -
-`random_init` - -If true, use random init. Otherwise use K-Means++. -
- - - -## Methods - -

__eq__

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-min_partition_size - -`50` -
-quantize_centroids - -`False` -
-random_init - -`True` -
-spherical - -`False` -
-training_iterations - -`12` -
-training_sample_size - -`100000` -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker/text_classifier.md b/site/en/lite/api_docs/python/tflite_model_maker/text_classifier.md deleted file mode 100644 index a29756c82f..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/text_classifier.md +++ /dev/null @@ -1,52 +0,0 @@ -page_type: reference -description: APIs to train a text classification model. - - - - - - -
- - -
- -# Module: tflite_model_maker.text_classifier - - - - - - - - - -APIs to train a text classification model. - - - -#### Task guide: - - -https://www.tensorflow.org/lite/tutorials/model_maker_text_classification - -## Classes - -[`class AverageWordVecSpec`](../tflite_model_maker/text_classifier/AverageWordVecSpec): A specification of averaging word vector model. - -[`class BertClassifierSpec`](../tflite_model_maker/text_classifier/BertClassifierSpec): A specification of BERT model for text classification. - -[`class DataLoader`](../tflite_model_maker/text_classifier/DataLoader): DataLoader for text classifier. - -[`class TextClassifier`](../tflite_model_maker/text_classifier/TextClassifier): TextClassifier class for inference and exporting to tflite. - -## Functions - -[`MobileBertClassifierSpec(...)`](../tflite_model_maker/text_classifier/MobileBertClassifierSpec): Creates MobileBert model spec for the text classification task. See also: tflite_model_maker.text_classifier.BertClassifierSpec. - -[`create(...)`](../tflite_model_maker/text_classifier/create): Loads data and train the model for test classification. diff --git a/site/en/lite/api_docs/python/tflite_model_maker/text_classifier/AverageWordVecSpec.md b/site/en/lite/api_docs/python/tflite_model_maker/text_classifier/AverageWordVecSpec.md deleted file mode 100644 index a8741b8983..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/text_classifier/AverageWordVecSpec.md +++ /dev/null @@ -1,359 +0,0 @@ -page_type: reference -description: A specification of averaging word vector model. - - - - - - -
- - - - - - - - - - - - - - - - - - - - -
- -# tflite_model_maker.text_classifier.AverageWordVecSpec - - - - - - - - - -A specification of averaging word vector model. - - - - - - -

Used in the notebooks

- - - - - - - - - - - -
Used in the tutorials
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`num_words` - -Number of words to generate the vocabulary from data. -
-`seq_len` - -Length of the sequence to feed into the model. -
-`wordvec_dim` - -Dimension of the word embedding. -
-`lowercase` - -Whether to convert all uppercase character to lowercase during -preprocessing. -
-`dropout_rate` - -The rate for dropout. -
-`name` - -Name of the object. -
-`default_training_epochs` - -Default training epochs for training. -
-`default_batch_size` - -Default batch size for training. -
-`model_dir` - -The location of the model checkpoint files. -
-`index_to_label` - -List of labels in the training data. e.g. ['neg', 'pos']. -
- - - -## Methods - -

convert_examples_to_features

- -View source - - - -Converts examples to features and write them into TFRecord file. - - -

create_model

- -View source - - - -Creates the keras model. - - -

gen_vocab

- -View source - - - -Generates vocabulary list in `examples` with maximum `num_words` words. - - -

get_config

- -View source - - - -Gets the configuration. - - -

get_default_quantization_config

- -View source - - - -Gets the default quantization configuration. - - -

get_name_to_features

- -View source - - - -Gets the dictionary describing the features. - - -

load_vocab

- -View source - - - -Loads vocabulary from `vocab_filename`. - - -

preprocess

- -View source - - - -Preprocess the text for text classification. - - -

run_classifier

- -View source - - - -Creates classifier and runs the classifier training. - - -

save_vocab

- -View source - - - -Saves the vocabulary in `vocab_filename`. - - -

select_data_from_record

- -View source - - - -Dispatches records to features and labels. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-PAD - -`''` -
-START - -`''` -
-UNKNOWN - -`''` -
-compat_tf_versions - -`[2]` -
-convert_from_saved_model_tf2 - -`False` -
-need_gen_vocab - -`True` -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker/text_classifier/BertClassifierSpec.md b/site/en/lite/api_docs/python/tflite_model_maker/text_classifier/BertClassifierSpec.md deleted file mode 100644 index 572047c291..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/text_classifier/BertClassifierSpec.md +++ /dev/null @@ -1,427 +0,0 @@ -page_type: reference -description: A specification of BERT model for text classification. - - - - - - -
- - - - - - - - - - - - - - - - -
- -# tflite_model_maker.text_classifier.BertClassifierSpec - - - - - - - - - -A specification of BERT model for text classification. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`uri` - -TF-Hub path/url to Bert module. -
-`model_dir` - -The location of the model checkpoint files. -
-`seq_len` - -Length of the sequence to feed into the model. -
-`dropout_rate` - -The rate for dropout. -
-`initializer_range` - -The stdev of the truncated_normal_initializer for -initializing all weight matrices. -
-`learning_rate` - -The initial learning rate for Adam. -
-`distribution_strategy` - - A string specifying which distribution strategy to -use. Accepted values are 'off', 'one_device', 'mirrored', -'parameter_server', 'multi_worker_mirrored', and 'tpu' -- case -insensitive. 'off' means not to use Distribution Strategy; 'tpu' means -to use TPUStrategy using `tpu_address`. -
-`num_gpus` - -How many GPUs to use at each worker with the -DistributionStrategies API. The default is -1, which means utilize all -available GPUs. -
-`tpu` - -TPU address to connect to. -
-`trainable` - -boolean, whether pretrain layer is trainable. -
-`do_lower_case` - -boolean, whether to lower case the input text. Should be -True for uncased models and False for cased models. -
-`is_tf2` - -boolean, whether the hub module is in TensorFlow 2.x format. -
-`name` - -The name of the object. -
-`tflite_input_name` - -Dict, input names for the TFLite model. -
-`default_batch_size` - -Default batch size for training. -
-`index_to_label` - -List of labels in the training data. e.g. ['neg', 'pos']. -
- - - -## Methods - -

build

- -View source - - - -Builds the class. Used for lazy initialization. - - -

convert_examples_to_features

- -View source - - - -Converts examples to features and write them into TFRecord file. - - -

create_model

- -View source - - - -Creates the keras model. - - -

get_config

- -View source - - - -Gets the configuration. - - -

get_default_quantization_config

- -View source - - - -Gets the default quantization configuration. - - -

get_name_to_features

- -View source - - - -Gets the dictionary describing the features. - - -

reorder_input_details

- -View source - - - -Reorders the tflite input details to map the order of keras model. - - -

run_classifier

- -View source - - - -Creates classifier and runs the classifier training. - - - - - - - - - - - - - - - - - - - - - - - - - - -
Args
-`train_ds` - -tf.data.Dataset, training data to be fed in -tf.keras.Model.fit(). -
-`validation_ds` - -tf.data.Dataset, validation data to be fed in -tf.keras.Model.fit(). -
-`epochs` - -Integer, training epochs. -
-`steps_per_epoch` - -Integer or None. Total number of steps (batches of -samples) before declaring one epoch finished and starting the next -epoch. If `steps_per_epoch` is None, the epoch will run until the input -dataset is exhausted. -
-`num_classes` - -Interger, number of classes. -
-`**kwargs` - -Other parameters used in the tf.keras.Model.fit(). -
- - - - - - - - - - - -
Returns
-tf.keras.Model, the keras model that's already trained. -
- - - -

save_vocab

- -View source - - - -Prints the file path to the vocabulary. - - -

select_data_from_record

- -View source - - - -Dispatches records to features and labels. - - - - - - - - - - - - - - - - - - - - - -
-compat_tf_versions - -`[2]` -
-convert_from_saved_model_tf2 - -`True` -
-need_gen_vocab - -`False` -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker/text_classifier/DataLoader.md b/site/en/lite/api_docs/python/tflite_model_maker/text_classifier/DataLoader.md deleted file mode 100644 index 5fd6dce007..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/text_classifier/DataLoader.md +++ /dev/null @@ -1,480 +0,0 @@ -page_type: reference -description: DataLoader for text classifier. - - - - - - -
- - - - - - - - -
- -# tflite_model_maker.text_classifier.DataLoader - - - - - - - - - -DataLoader for text classifier. - - - - - - -

Used in the notebooks

- - - - - - - - - - - -
Used in the tutorials
- -
- - - - - - - - - - - - - - - -
-`dataset` - -A tf.data.Dataset object that contains a potentially large set of -elements, where each element is a pair of (input_data, target). The -`input_data` means the raw input data, like an image, a text etc., while -the `target` means some ground truth of the raw input data, such as the -classification label of the image etc. -
-`size` - -The size of the dataset. tf.data.Dataset donesn't support a function -to get the length directly since it's lazy-loaded and may be infinite. -
- - - - - - - - - - - - - - - - - -
-`num_classes` - - -
-`size` - -Returns the size of the dataset. - -Note that this function may return None becuase the exact size of the -dataset isn't a necessary parameter to create an instance of this class, -and tf.data.Dataset donesn't support a function to get the length directly -since it's lazy-loaded and may be infinite. -In most cases, however, when an instance of this class is created by helper -functions like 'from_folder', the size of the dataset will be preprocessed, -and this function can return an int representing the size of the dataset. -
- - - -## Methods - -

from_csv

- -View source - - - -Loads text with labels from the csv file and preproecess text according to `model_spec`. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Args
-`filename` - -Name of the file. -
-`text_column` - -String, Column name for input text. -
-`label_column` - -String, Column name for labels. -
-`fieldnames` - -A sequence, used in csv.DictReader. If fieldnames is omitted, -the values in the first row of file f will be used as the fieldnames. -
-`model_spec` - -Specification for the model. -
-`is_training` - -Whether the loaded data is for training or not. -
-`delimiter` - -Character used to separate fields. -
-`quotechar` - -Character used to quote fields containing special characters. -
-`shuffle` - -boolean, if shuffle, random shuffle data. -
-`cache_dir` - -The cache directory to save preprocessed data. If None, -generates a temporary directory to cache preprocessed data. -
- - - - - - - - - - - -
Returns
-TextDataset containing text, labels and other related info. -
- - - -

from_folder

- -View source - - - -Loads text with labels and preproecess text according to `model_spec`. - -Assume the text data of the same label are in the same subdirectory. each -file is one text. - - - - - - - - - - - - - - - - - - - - - - - - - -
Args
-`filename` - -Name of the file. -
-`model_spec` - -Specification for the model. -
-`is_training` - -Whether the loaded data is for training or not. -
-`class_labels` - -Class labels that should be considered. Name of the -subdirectory not in `class_labels` will be ignored. If None, all the -subdirectories will be considered. -
-`shuffle` - -boolean, if shuffle, random shuffle data. -
-`cache_dir` - -The cache directory to save preprocessed data. If None, -generates a temporary directory to cache preprocessed data. -
- - - - - - - - - - - -
Returns
-TextDataset containing text, labels and other related info. -
- - - -

gen_dataset

- -View source - - - -Generate a shared and batched tf.data.Dataset for training/evaluation. - - - - - - - - - - - - - - - - - - - - - - - - - - -
Args
-`batch_size` - -A integer, the returned dataset will be batched by this size. -
-`is_training` - -A boolean, when True, the returned dataset will be optionally -shuffled and repeated as an endless dataset. -
-`shuffle` - -A boolean, when True, the returned dataset will be shuffled to -create randomness during model training. -
-`input_pipeline_context` - -A InputContext instance, used to shared dataset -among multiple workers when distribution strategy is used. -
-`preprocess` - -A function taking three arguments in order, feature, label and -boolean is_training. -
-`drop_remainder` - -boolean, whether the finaly batch drops remainder. -
- - - - - - - - - - - -
Returns
-A TF dataset ready to be consumed by Keras model. -
- - - -

split

- -View source - - - -Splits dataset into two sub-datasets with the given fraction. - -Primarily used for splitting the data set into training and testing sets. - - - - - - - - - - -
Args
-`fraction` - -float, demonstrates the fraction of the first returned -subdataset in the original data. -
- - - - - - - - - - - -
Returns
-The splitted two sub datasets. -
- - - -

__len__

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_model_maker/text_classifier/MobileBertClassifierSpec.md b/site/en/lite/api_docs/python/tflite_model_maker/text_classifier/MobileBertClassifierSpec.md deleted file mode 100644 index aa4f908d4e..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/text_classifier/MobileBertClassifierSpec.md +++ /dev/null @@ -1,180 +0,0 @@ -page_type: reference -description: Creates MobileBert model spec for the text classification task. See also: tflite_model_maker.text_classifier.BertClassifierSpec. - - - - - - -
- - -
- -# tflite_model_maker.text_classifier.MobileBertClassifierSpec - - - - - - - - - -Creates MobileBert model spec for the text classification task. See also: tflite_model_maker.text_classifier.BertClassifierSpec. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`uri` - -TF-Hub path/url to Bert module. -
-`model_dir` - -The location of the model checkpoint files. -
-`seq_len` - -Length of the sequence to feed into the model. -
-`dropout_rate` - -The rate for dropout. -
-`initializer_range` - -The stdev of the truncated_normal_initializer for -initializing all weight matrices. -
-`learning_rate` - -The initial learning rate for Adam. -
-`distribution_strategy` - - A string specifying which distribution strategy to -use. Accepted values are 'off', 'one_device', 'mirrored', -'parameter_server', 'multi_worker_mirrored', and 'tpu' -- case -insensitive. 'off' means not to use Distribution Strategy; 'tpu' means -to use TPUStrategy using `tpu_address`. -
-`num_gpus` - -How many GPUs to use at each worker with the -DistributionStrategies API. The default is -1, which means utilize all -available GPUs. -
-`tpu` - -TPU address to connect to. -
-`trainable` - -boolean, whether pretrain layer is trainable. -
-`do_lower_case` - -boolean, whether to lower case the input text. Should be -True for uncased models and False for cased models. -
-`is_tf2` - -boolean, whether the hub module is in TensorFlow 2.x format. -
-`name` - -The name of the object. -
-`tflite_input_name` - -Dict, input names for the TFLite model. -
-`default_batch_size` - -Default batch size for training. -
-`index_to_label` - -List of labels in the training data. e.g. ['neg', 'pos']. -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker/text_classifier/TextClassifier.md b/site/en/lite/api_docs/python/tflite_model_maker/text_classifier/TextClassifier.md deleted file mode 100644 index 9766b8c687..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/text_classifier/TextClassifier.md +++ /dev/null @@ -1,535 +0,0 @@ -page_type: reference -description: TextClassifier class for inference and exporting to tflite. - - - - - - -
- - - - - - - - - - - - - - -
- -# tflite_model_maker.text_classifier.TextClassifier - - - - - - - - - -TextClassifier class for inference and exporting to tflite. - - - - - - - - - - - - - - - - - - - - - - - -
-`model_spec` - -Specification for the model. -
-`index_to_label` - -A list that map from index to label class name. -
-`shuffle` - -Whether the data should be shuffled. -
- - - -## Methods - -

create

- -View source - - - -Loads data and train the model for test classification. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Args
-`train_data` - -Training data. -
-`model_spec` - -Specification for the model. -
-`validation_data` - -Validation data. If None, skips validation process. -
-`batch_size` - -Batch size for training. -
-`epochs` - -Number of epochs for training. -
-`steps_per_epoch` - -Integer or None. Total number of steps (batches of -samples) before declaring one epoch finished and starting the next -epoch. If `steps_per_epoch` is None, the epoch will run until the input -dataset is exhausted. -
-`shuffle` - -Whether the data should be shuffled. -
-`do_train` - -Whether to run training. -
- - - - - - - - - - - -
Returns
-An instance based on TextClassifier. -
- - - -

create_model

- -View source - - - - - - -

create_serving_model

- -View source - - - -Returns the underlining Keras model for serving. - - -

evaluate

- -View source - - - -Evaluates the model. - - - - - - - - - - - - - - -
Args
-`data` - -Data to be evaluated. -
-`batch_size` - -Number of samples per evaluation step. -
- - - - - - - - - - - -
Returns
-The loss value and accuracy. -
- - - -

evaluate_tflite

- -View source - - - -Evaluates the tflite model. - - - - - - - - - - - - - - - - - -
Args
-`tflite_filepath` - -File path to the TFLite model. -
-`data` - -Data to be evaluated. -
-`postprocess_fn` - -Postprocessing function that will be applied to the output -of `lite_runner.run` before calculating the probabilities. -
- - - - - - - - - - - -
Returns
-The evaluation result of TFLite model - accuracy. -
- - - -

export

- -View source - - - -Converts the retrained model based on `export_format`. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Args
-`export_dir` - -The directory to save exported files. -
-`tflite_filename` - -File name to save tflite model. The full export path is -{export_dir}/{tflite_filename}. -
-`label_filename` - -File name to save labels. The full export path is -{export_dir}/{label_filename}. -
-`vocab_filename` - -File name to save vocabulary. The full export path is -{export_dir}/{vocab_filename}. -
-`saved_model_filename` - -Path to SavedModel or H5 file to save the model. The -full export path is -{export_dir}/{saved_model_filename}/{saved_model.pb|assets|variables}. -
-`tfjs_folder_name` - -Folder name to save tfjs model. The full export path is -{export_dir}/{tfjs_folder_name}. -
-`export_format` - -List of export format that could be saved_model, tflite, -label, vocab. -
-`**kwargs` - -Other parameters like `quantized_config` for TFLITE model. -
- - - -

predict_top_k

- -View source - - - -Predicts the top-k predictions. - - - - - - - - - - - - - - - - - -
Args
-`data` - -Data to be evaluated. Either an instance of DataLoader or just raw -data entries such TF tensor or numpy array. -
-`k` - -Number of top results to be predicted. -
-`batch_size` - -Number of samples per evaluation step. -
- - - - - - - - - - - -
Returns
-top k results. Each one is (label, probability). -
- - - -

summary

- -View source - - - - - - -

train

- -View source - - - -Feeds the training data for training. - - - - - - - - - - - - - - - - - - -
-ALLOWED_EXPORT_FORMAT - -`(, - , - , - , - )` -
-DEFAULT_EXPORT_FORMAT - -`(, - , - )` -
diff --git a/site/en/lite/api_docs/python/tflite_model_maker/text_classifier/create.md b/site/en/lite/api_docs/python/tflite_model_maker/text_classifier/create.md deleted file mode 100644 index d121b0fd07..0000000000 --- a/site/en/lite/api_docs/python/tflite_model_maker/text_classifier/create.md +++ /dev/null @@ -1,148 +0,0 @@ -page_type: reference -description: Loads data and train the model for test classification. - - - - - - -
- - -
- -# tflite_model_maker.text_classifier.create - - - - - - - - - -Loads data and train the model for test classification. - - - - - - - -

Used in the notebooks

- - - - - - - - - - - -
Used in the tutorials
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`train_data` - -Training data. -
-`model_spec` - -Specification for the model. -
-`validation_data` - -Validation data. If None, skips validation process. -
-`batch_size` - -Batch size for training. -
-`epochs` - -Number of epochs for training. -
-`steps_per_epoch` - -Integer or None. Total number of steps (batches of -samples) before declaring one epoch finished and starting the next -epoch. If `steps_per_epoch` is None, the epoch will run until the input -dataset is exhausted. -
-`shuffle` - -Whether the data should be shuffled. -
-`do_train` - -Whether to run training. -
- - - - - - - - - - - -
-An instance based on TextClassifier. -
diff --git a/site/en/lite/api_docs/python/tflite_support.md b/site/en/lite/api_docs/python/tflite_support.md deleted file mode 100644 index bcd1c4691a..0000000000 --- a/site/en/lite/api_docs/python/tflite_support.md +++ /dev/null @@ -1,54 +0,0 @@ -page_type: reference -description: The TensorFlow Lite Support Library. - - - - - - -
- - -
- -# Module: tflite_support - - - - - - - - - -The TensorFlow Lite Support Library. - - -Install the pip package: - -``` -pip install tflite-support -``` - -This package provides two major features: - -* Metadata writers: add metadata to TensorFlow Lite models. -* Task Library: run TensorFlow Lite models of major machine learning tasks. - -To learn more about metadata, flatbuffers and TensorFlow Lite models, check out -the [metadata section](https://www.tensorflow.org/lite/convert/metadata) of the -TensorFlow Lite guide. - -To learn more about Task Library, check out the -[documentation](https://www.tensorflow.org/lite/inference_with_metadata/task_library/overview) -on the TensorFlow Lite website. - -## Modules - -[`metadata`](./tflite_support/metadata) module: TensorFlow Lite metadata tools. - -[`metadata_schema_py_generated`](./tflite_support/metadata_schema_py_generated) module - -[`metadata_writers`](./tflite_support/metadata_writers) module: TF Lite Metadata Writer API. - -[`task`](./tflite_support/task) module: The TensorFlow Lite Task Library. diff --git a/site/en/lite/api_docs/python/tflite_support/_redirects.yaml b/site/en/lite/api_docs/python/tflite_support/_redirects.yaml deleted file mode 100644 index f843138299..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/_redirects.yaml +++ /dev/null @@ -1,881 +0,0 @@ -redirects: -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_info - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_info/AssociatedFileMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/AssociatedFileMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_info/BertInputTensorsMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/BertInputTensorsMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_info/BertTokenizerMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/BertTokenizerMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_info/CategoryTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/CategoryTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_info/ClassificationTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/ClassificationTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_info/GeneralMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/GeneralMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_info/InputAudioTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputAudioTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_info/InputImageTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputImageTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_info/InputTextTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputTextTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_info/LabelFileMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/LabelFileMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_info/RegexTokenizerMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/RegexTokenizerMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_info/ScoreCalibrationMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/ScoreCalibrationMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_info/SentencePieceTokenizerMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/SentencePieceTokenizerMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_info/TensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/TensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_info/writer_utils - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_info/writer_utils/compute_flat_size - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/compute_flat_size -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_info/writer_utils/get_input_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_info/writer_utils/get_input_tensor_shape - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_shape -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_info/writer_utils/get_input_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_info/writer_utils/get_output_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_info/writer_utils/get_output_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_info/writer_utils/get_tokenizer_associated_files - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_tokenizer_associated_files -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_info/writer_utils/load_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/load_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_info/writer_utils/save_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/save_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer/metadata_info - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer/metadata_info/AssociatedFileMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/AssociatedFileMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer/metadata_info/BertInputTensorsMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/BertInputTensorsMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer/metadata_info/BertTokenizerMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/BertTokenizerMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer/metadata_info/CategoryTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/CategoryTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer/metadata_info/ClassificationTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/ClassificationTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer/metadata_info/GeneralMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/GeneralMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer/metadata_info/InputAudioTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputAudioTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer/metadata_info/InputImageTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputImageTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer/metadata_info/InputTextTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputTextTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer/metadata_info/LabelFileMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/LabelFileMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer/metadata_info/RegexTokenizerMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/RegexTokenizerMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer/metadata_info/ScoreCalibrationMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/ScoreCalibrationMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer/metadata_info/SentencePieceTokenizerMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/SentencePieceTokenizerMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer/metadata_info/TensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/TensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer/metadata_info/writer_utils - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer/metadata_info/writer_utils/compute_flat_size - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/compute_flat_size -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer/metadata_info/writer_utils/get_input_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer/metadata_info/writer_utils/get_input_tensor_shape - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_shape -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer/metadata_info/writer_utils/get_input_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer/metadata_info/writer_utils/get_output_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer/metadata_info/writer_utils/get_output_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer/metadata_info/writer_utils/get_tokenizer_associated_files - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_tokenizer_associated_files -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer/metadata_info/writer_utils/load_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/load_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer/metadata_info/writer_utils/save_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/save_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer/writer_utils - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer/writer_utils/compute_flat_size - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/compute_flat_size -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer/writer_utils/get_input_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer/writer_utils/get_input_tensor_shape - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_shape -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer/writer_utils/get_input_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer/writer_utils/get_output_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer/writer_utils/get_output_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer/writer_utils/get_tokenizer_associated_files - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_tokenizer_associated_files -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer/writer_utils/load_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/load_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer/writer_utils/save_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/save_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/writer_utils - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/writer_utils/compute_flat_size - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/compute_flat_size -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/writer_utils/get_input_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/writer_utils/get_input_tensor_shape - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_shape -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/writer_utils/get_input_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/writer_utils/get_output_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/writer_utils/get_output_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/writer_utils/get_tokenizer_associated_files - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_tokenizer_associated_files -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/writer_utils/load_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/load_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/writer_utils/save_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/save_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_info - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_info/AssociatedFileMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/AssociatedFileMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_info/BertInputTensorsMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/BertInputTensorsMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_info/BertTokenizerMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/BertTokenizerMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_info/CategoryTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/CategoryTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_info/ClassificationTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/ClassificationTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_info/GeneralMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/GeneralMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_info/InputAudioTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputAudioTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_info/InputImageTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputImageTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_info/InputTextTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputTextTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_info/LabelFileMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/LabelFileMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_info/RegexTokenizerMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/RegexTokenizerMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_info/ScoreCalibrationMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/ScoreCalibrationMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_info/SentencePieceTokenizerMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/SentencePieceTokenizerMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_info/TensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/TensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_info/writer_utils - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_info/writer_utils/compute_flat_size - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/compute_flat_size -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_info/writer_utils/get_input_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_info/writer_utils/get_input_tensor_shape - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_shape -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_info/writer_utils/get_input_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_info/writer_utils/get_output_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_info/writer_utils/get_output_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_info/writer_utils/get_tokenizer_associated_files - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_tokenizer_associated_files -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_info/writer_utils/load_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/load_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_info/writer_utils/save_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/save_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_writer - to: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_writer/MetadataWriter - to: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer/MetadataWriter -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_writer/metadata_info - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_writer/metadata_info/AssociatedFileMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/AssociatedFileMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_writer/metadata_info/BertInputTensorsMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/BertInputTensorsMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_writer/metadata_info/BertTokenizerMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/BertTokenizerMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_writer/metadata_info/CategoryTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/CategoryTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_writer/metadata_info/ClassificationTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/ClassificationTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_writer/metadata_info/GeneralMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/GeneralMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_writer/metadata_info/InputAudioTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputAudioTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_writer/metadata_info/InputImageTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputImageTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_writer/metadata_info/InputTextTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputTextTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_writer/metadata_info/LabelFileMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/LabelFileMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_writer/metadata_info/RegexTokenizerMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/RegexTokenizerMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_writer/metadata_info/ScoreCalibrationMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/ScoreCalibrationMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_writer/metadata_info/SentencePieceTokenizerMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/SentencePieceTokenizerMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_writer/metadata_info/TensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/TensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_writer/metadata_info/writer_utils - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_writer/metadata_info/writer_utils/compute_flat_size - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/compute_flat_size -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_writer/metadata_info/writer_utils/get_input_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_writer/metadata_info/writer_utils/get_input_tensor_shape - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_shape -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_writer/metadata_info/writer_utils/get_input_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_writer/metadata_info/writer_utils/get_output_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_writer/metadata_info/writer_utils/get_output_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_writer/metadata_info/writer_utils/get_tokenizer_associated_files - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_tokenizer_associated_files -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_writer/metadata_info/writer_utils/load_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/load_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_writer/metadata_info/writer_utils/save_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/save_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_writer/writer_utils - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_writer/writer_utils/compute_flat_size - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/compute_flat_size -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_writer/writer_utils/get_input_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_writer/writer_utils/get_input_tensor_shape - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_shape -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_writer/writer_utils/get_input_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_writer/writer_utils/get_output_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_writer/writer_utils/get_output_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_writer/writer_utils/get_tokenizer_associated_files - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_tokenizer_associated_files -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_writer/writer_utils/load_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/load_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/metadata_writer/writer_utils/save_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/save_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/writer_utils - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/writer_utils/compute_flat_size - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/compute_flat_size -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/writer_utils/get_input_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/writer_utils/get_input_tensor_shape - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_shape -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/writer_utils/get_input_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/writer_utils/get_output_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/writer_utils/get_output_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/writer_utils/get_tokenizer_associated_files - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_tokenizer_associated_files -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/writer_utils/load_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/load_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/writer_utils/save_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/save_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_info - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_info/AssociatedFileMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/AssociatedFileMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_info/BertInputTensorsMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/BertInputTensorsMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_info/BertTokenizerMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/BertTokenizerMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_info/CategoryTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/CategoryTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_info/ClassificationTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/ClassificationTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_info/GeneralMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/GeneralMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_info/InputAudioTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputAudioTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_info/InputImageTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputImageTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_info/InputTextTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputTextTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_info/LabelFileMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/LabelFileMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_info/RegexTokenizerMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/RegexTokenizerMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_info/ScoreCalibrationMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/ScoreCalibrationMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_info/SentencePieceTokenizerMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/SentencePieceTokenizerMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_info/TensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/TensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_info/writer_utils - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_info/writer_utils/compute_flat_size - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/compute_flat_size -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_info/writer_utils/get_input_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_info/writer_utils/get_input_tensor_shape - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_shape -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_info/writer_utils/get_input_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_info/writer_utils/get_output_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_info/writer_utils/get_output_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_info/writer_utils/get_tokenizer_associated_files - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_tokenizer_associated_files -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_info/writer_utils/load_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/load_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_info/writer_utils/save_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/save_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_writer - to: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_writer/MetadataWriter - to: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer/MetadataWriter -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_writer/metadata_info - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_writer/metadata_info/AssociatedFileMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/AssociatedFileMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_writer/metadata_info/BertInputTensorsMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/BertInputTensorsMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_writer/metadata_info/BertTokenizerMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/BertTokenizerMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_writer/metadata_info/CategoryTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/CategoryTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_writer/metadata_info/ClassificationTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/ClassificationTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_writer/metadata_info/GeneralMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/GeneralMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_writer/metadata_info/InputAudioTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputAudioTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_writer/metadata_info/InputImageTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputImageTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_writer/metadata_info/InputTextTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputTextTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_writer/metadata_info/LabelFileMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/LabelFileMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_writer/metadata_info/RegexTokenizerMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/RegexTokenizerMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_writer/metadata_info/ScoreCalibrationMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/ScoreCalibrationMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_writer/metadata_info/SentencePieceTokenizerMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/SentencePieceTokenizerMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_writer/metadata_info/TensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/TensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_writer/metadata_info/writer_utils - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_writer/metadata_info/writer_utils/compute_flat_size - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/compute_flat_size -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_writer/metadata_info/writer_utils/get_input_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_writer/metadata_info/writer_utils/get_input_tensor_shape - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_shape -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_writer/metadata_info/writer_utils/get_input_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_writer/metadata_info/writer_utils/get_output_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_writer/metadata_info/writer_utils/get_output_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_writer/metadata_info/writer_utils/get_tokenizer_associated_files - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_tokenizer_associated_files -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_writer/metadata_info/writer_utils/load_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/load_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_writer/metadata_info/writer_utils/save_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/save_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_writer/writer_utils - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_writer/writer_utils/compute_flat_size - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/compute_flat_size -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_writer/writer_utils/get_input_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_writer/writer_utils/get_input_tensor_shape - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_shape -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_writer/writer_utils/get_input_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_writer/writer_utils/get_output_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_writer/writer_utils/get_output_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_writer/writer_utils/get_tokenizer_associated_files - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_tokenizer_associated_files -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_writer/writer_utils/load_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/load_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/metadata_writer/writer_utils/save_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/save_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/writer_utils - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/writer_utils/compute_flat_size - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/compute_flat_size -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/writer_utils/get_input_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/writer_utils/get_input_tensor_shape - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_shape -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/writer_utils/get_input_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/writer_utils/get_output_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/writer_utils/get_output_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/writer_utils/get_tokenizer_associated_files - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_tokenizer_associated_files -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/writer_utils/load_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/load_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/writer_utils/save_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/save_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_info - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_info/AssociatedFileMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/AssociatedFileMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_info/BertInputTensorsMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/BertInputTensorsMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_info/BertTokenizerMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/BertTokenizerMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_info/CategoryTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/CategoryTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_info/ClassificationTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/ClassificationTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_info/GeneralMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/GeneralMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_info/InputAudioTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputAudioTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_info/InputImageTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputImageTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_info/InputTextTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputTextTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_info/LabelFileMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/LabelFileMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_info/RegexTokenizerMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/RegexTokenizerMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_info/ScoreCalibrationMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/ScoreCalibrationMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_info/SentencePieceTokenizerMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/SentencePieceTokenizerMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_info/TensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/TensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_info/writer_utils - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_info/writer_utils/compute_flat_size - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/compute_flat_size -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_info/writer_utils/get_input_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_info/writer_utils/get_input_tensor_shape - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_shape -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_info/writer_utils/get_input_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_info/writer_utils/get_output_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_info/writer_utils/get_output_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_info/writer_utils/get_tokenizer_associated_files - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_tokenizer_associated_files -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_info/writer_utils/load_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/load_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_info/writer_utils/save_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/save_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_writer - to: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_writer/MetadataWriter - to: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer/MetadataWriter -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_writer/metadata_info - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_writer/metadata_info/AssociatedFileMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/AssociatedFileMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_writer/metadata_info/BertInputTensorsMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/BertInputTensorsMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_writer/metadata_info/BertTokenizerMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/BertTokenizerMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_writer/metadata_info/CategoryTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/CategoryTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_writer/metadata_info/ClassificationTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/ClassificationTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_writer/metadata_info/GeneralMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/GeneralMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_writer/metadata_info/InputAudioTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputAudioTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_writer/metadata_info/InputImageTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputImageTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_writer/metadata_info/InputTextTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputTextTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_writer/metadata_info/LabelFileMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/LabelFileMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_writer/metadata_info/RegexTokenizerMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/RegexTokenizerMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_writer/metadata_info/ScoreCalibrationMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/ScoreCalibrationMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_writer/metadata_info/SentencePieceTokenizerMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/SentencePieceTokenizerMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_writer/metadata_info/TensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/TensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_writer/metadata_info/writer_utils - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_writer/metadata_info/writer_utils/compute_flat_size - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/compute_flat_size -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_writer/metadata_info/writer_utils/get_input_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_writer/metadata_info/writer_utils/get_input_tensor_shape - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_shape -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_writer/metadata_info/writer_utils/get_input_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_writer/metadata_info/writer_utils/get_output_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_writer/metadata_info/writer_utils/get_output_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_writer/metadata_info/writer_utils/get_tokenizer_associated_files - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_tokenizer_associated_files -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_writer/metadata_info/writer_utils/load_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/load_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_writer/metadata_info/writer_utils/save_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/save_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_writer/writer_utils - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_writer/writer_utils/compute_flat_size - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/compute_flat_size -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_writer/writer_utils/get_input_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_writer/writer_utils/get_input_tensor_shape - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_shape -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_writer/writer_utils/get_input_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_writer/writer_utils/get_output_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_writer/writer_utils/get_output_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_writer/writer_utils/get_tokenizer_associated_files - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_tokenizer_associated_files -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_writer/writer_utils/load_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/load_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/metadata_writer/writer_utils/save_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/save_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/writer_utils - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/writer_utils/compute_flat_size - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/compute_flat_size -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/writer_utils/get_input_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/writer_utils/get_input_tensor_shape - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_shape -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/writer_utils/get_input_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/writer_utils/get_output_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/writer_utils/get_output_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/writer_utils/get_tokenizer_associated_files - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_tokenizer_associated_files -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/writer_utils/load_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/load_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/writer_utils/save_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/save_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/writer_utils - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils -- from: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/writer_utils/compute_flat_size - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/compute_flat_size -- from: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/writer_utils/get_input_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/writer_utils/get_input_tensor_shape - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_shape -- from: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/writer_utils/get_input_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/writer_utils/get_output_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/writer_utils/get_output_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/writer_utils/get_tokenizer_associated_files - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_tokenizer_associated_files -- from: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/writer_utils/load_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/load_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/writer_utils/save_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/save_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_info - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_info/AssociatedFileMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/AssociatedFileMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_info/BertInputTensorsMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/BertInputTensorsMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_info/BertTokenizerMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/BertTokenizerMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_info/CategoryTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/CategoryTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_info/ClassificationTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/ClassificationTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_info/GeneralMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/GeneralMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_info/InputAudioTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputAudioTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_info/InputImageTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputImageTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_info/InputTextTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputTextTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_info/LabelFileMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/LabelFileMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_info/RegexTokenizerMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/RegexTokenizerMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_info/ScoreCalibrationMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/ScoreCalibrationMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_info/SentencePieceTokenizerMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/SentencePieceTokenizerMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_info/TensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/TensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_info/writer_utils - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_info/writer_utils/compute_flat_size - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/compute_flat_size -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_info/writer_utils/get_input_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_info/writer_utils/get_input_tensor_shape - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_shape -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_info/writer_utils/get_input_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_info/writer_utils/get_output_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_info/writer_utils/get_output_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_info/writer_utils/get_tokenizer_associated_files - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_tokenizer_associated_files -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_info/writer_utils/load_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/load_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_info/writer_utils/save_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/save_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_writer - to: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_writer/MetadataWriter - to: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer/MetadataWriter -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_writer/metadata_info - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_writer/metadata_info/AssociatedFileMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/AssociatedFileMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_writer/metadata_info/BertInputTensorsMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/BertInputTensorsMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_writer/metadata_info/BertTokenizerMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/BertTokenizerMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_writer/metadata_info/CategoryTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/CategoryTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_writer/metadata_info/ClassificationTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/ClassificationTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_writer/metadata_info/GeneralMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/GeneralMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_writer/metadata_info/InputAudioTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputAudioTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_writer/metadata_info/InputImageTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputImageTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_writer/metadata_info/InputTextTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputTextTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_writer/metadata_info/LabelFileMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/LabelFileMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_writer/metadata_info/RegexTokenizerMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/RegexTokenizerMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_writer/metadata_info/ScoreCalibrationMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/ScoreCalibrationMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_writer/metadata_info/SentencePieceTokenizerMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/SentencePieceTokenizerMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_writer/metadata_info/TensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/TensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_writer/metadata_info/writer_utils - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_writer/metadata_info/writer_utils/compute_flat_size - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/compute_flat_size -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_writer/metadata_info/writer_utils/get_input_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_writer/metadata_info/writer_utils/get_input_tensor_shape - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_shape -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_writer/metadata_info/writer_utils/get_input_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_writer/metadata_info/writer_utils/get_output_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_writer/metadata_info/writer_utils/get_output_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_writer/metadata_info/writer_utils/get_tokenizer_associated_files - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_tokenizer_associated_files -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_writer/metadata_info/writer_utils/load_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/load_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_writer/metadata_info/writer_utils/save_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/save_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_writer/writer_utils - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_writer/writer_utils/compute_flat_size - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/compute_flat_size -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_writer/writer_utils/get_input_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_writer/writer_utils/get_input_tensor_shape - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_shape -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_writer/writer_utils/get_input_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_writer/writer_utils/get_output_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_writer/writer_utils/get_output_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_writer/writer_utils/get_tokenizer_associated_files - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_tokenizer_associated_files -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_writer/writer_utils/load_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/load_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/metadata_writer/writer_utils/save_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/save_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/writer_utils - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/writer_utils/compute_flat_size - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/compute_flat_size -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/writer_utils/get_input_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/writer_utils/get_input_tensor_shape - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_shape -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/writer_utils/get_input_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/writer_utils/get_output_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/writer_utils/get_output_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/writer_utils/get_tokenizer_associated_files - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_tokenizer_associated_files -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/writer_utils/load_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/load_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/writer_utils/save_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/save_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_info - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_info/AssociatedFileMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/AssociatedFileMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_info/BertInputTensorsMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/BertInputTensorsMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_info/BertTokenizerMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/BertTokenizerMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_info/CategoryTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/CategoryTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_info/ClassificationTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/ClassificationTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_info/GeneralMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/GeneralMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_info/InputAudioTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputAudioTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_info/InputImageTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputImageTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_info/InputTextTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputTextTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_info/LabelFileMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/LabelFileMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_info/RegexTokenizerMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/RegexTokenizerMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_info/ScoreCalibrationMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/ScoreCalibrationMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_info/SentencePieceTokenizerMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/SentencePieceTokenizerMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_info/TensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/TensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_info/writer_utils - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_info/writer_utils/compute_flat_size - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/compute_flat_size -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_info/writer_utils/get_input_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_info/writer_utils/get_input_tensor_shape - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_shape -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_info/writer_utils/get_input_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_info/writer_utils/get_output_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_info/writer_utils/get_output_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_info/writer_utils/get_tokenizer_associated_files - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_tokenizer_associated_files -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_info/writer_utils/load_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/load_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_info/writer_utils/save_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/save_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_writer - to: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_writer/MetadataWriter - to: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer/MetadataWriter -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_writer/metadata_info - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_writer/metadata_info/AssociatedFileMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/AssociatedFileMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_writer/metadata_info/BertInputTensorsMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/BertInputTensorsMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_writer/metadata_info/BertTokenizerMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/BertTokenizerMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_writer/metadata_info/CategoryTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/CategoryTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_writer/metadata_info/ClassificationTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/ClassificationTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_writer/metadata_info/GeneralMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/GeneralMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_writer/metadata_info/InputAudioTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputAudioTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_writer/metadata_info/InputImageTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputImageTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_writer/metadata_info/InputTextTensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputTextTensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_writer/metadata_info/LabelFileMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/LabelFileMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_writer/metadata_info/RegexTokenizerMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/RegexTokenizerMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_writer/metadata_info/ScoreCalibrationMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/ScoreCalibrationMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_writer/metadata_info/SentencePieceTokenizerMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/SentencePieceTokenizerMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_writer/metadata_info/TensorMd - to: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/TensorMd -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_writer/metadata_info/writer_utils - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_writer/metadata_info/writer_utils/compute_flat_size - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/compute_flat_size -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_writer/metadata_info/writer_utils/get_input_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_writer/metadata_info/writer_utils/get_input_tensor_shape - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_shape -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_writer/metadata_info/writer_utils/get_input_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_writer/metadata_info/writer_utils/get_output_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_writer/metadata_info/writer_utils/get_output_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_writer/metadata_info/writer_utils/get_tokenizer_associated_files - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_tokenizer_associated_files -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_writer/metadata_info/writer_utils/load_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/load_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_writer/metadata_info/writer_utils/save_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/save_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_writer/writer_utils - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_writer/writer_utils/compute_flat_size - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/compute_flat_size -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_writer/writer_utils/get_input_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_writer/writer_utils/get_input_tensor_shape - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_shape -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_writer/writer_utils/get_input_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_writer/writer_utils/get_output_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_writer/writer_utils/get_output_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_writer/writer_utils/get_tokenizer_associated_files - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_tokenizer_associated_files -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_writer/writer_utils/load_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/load_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/metadata_writer/writer_utils/save_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/save_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/writer_utils - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/writer_utils/compute_flat_size - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/compute_flat_size -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/writer_utils/get_input_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/writer_utils/get_input_tensor_shape - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_shape -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/writer_utils/get_input_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/writer_utils/get_output_tensor_names - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_names -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/writer_utils/get_output_tensor_types - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_types -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/writer_utils/get_tokenizer_associated_files - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_tokenizer_associated_files -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/writer_utils/load_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/load_file -- from: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/writer_utils/save_file - to: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/save_file diff --git a/site/en/lite/api_docs/python/tflite_support/_toc.yaml b/site/en/lite/api_docs/python/tflite_support/_toc.yaml deleted file mode 100644 index e52ed11307..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/_toc.yaml +++ /dev/null @@ -1,629 +0,0 @@ -toc: -- section: - - path: /lite/api_docs/python/tflite_support - title: Overview - - section: - - path: /lite/api_docs/python/tflite_support/metadata - title: Overview - - path: /lite/api_docs/python/tflite_support/metadata/MetadataDisplayer - title: MetadataDisplayer - - path: /lite/api_docs/python/tflite_support/metadata/MetadataPopulator - title: MetadataPopulator - - path: /lite/api_docs/python/tflite_support/metadata/convert_to_json - title: convert_to_json - - path: /lite/api_docs/python/tflite_support/metadata/get_metadata_buffer - title: get_metadata_buffer - - path: /lite/api_docs/python/tflite_support/metadata/get_path_to_datafile - title: get_path_to_datafile - title: metadata - - section: - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated - title: Overview - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/AssociatedFile - title: AssociatedFile - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/AssociatedFileAddDescription - title: AssociatedFileAddDescription - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/AssociatedFileAddLocale - title: AssociatedFileAddLocale - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/AssociatedFileAddName - title: AssociatedFileAddName - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/AssociatedFileAddType - title: AssociatedFileAddType - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/AssociatedFileAddVersion - title: AssociatedFileAddVersion - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/AssociatedFileEnd - title: AssociatedFileEnd - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/AssociatedFileStart - title: AssociatedFileStart - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/AssociatedFileT - title: AssociatedFileT - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/AssociatedFileType - title: AssociatedFileType - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/AudioProperties - title: AudioProperties - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/AudioPropertiesAddChannels - title: AudioPropertiesAddChannels - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/AudioPropertiesAddSampleRate - title: AudioPropertiesAddSampleRate - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/AudioPropertiesEnd - title: AudioPropertiesEnd - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/AudioPropertiesStart - title: AudioPropertiesStart - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/AudioPropertiesT - title: AudioPropertiesT - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/BertTokenizerOptions - title: BertTokenizerOptions - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/BertTokenizerOptionsAddVocabFile - title: BertTokenizerOptionsAddVocabFile - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/BertTokenizerOptionsEnd - title: BertTokenizerOptionsEnd - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/BertTokenizerOptionsStart - title: BertTokenizerOptionsStart - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/BertTokenizerOptionsStartVocabFileVector - title: BertTokenizerOptionsStartVocabFileVector - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/BertTokenizerOptionsT - title: BertTokenizerOptionsT - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/BoundingBoxProperties - title: BoundingBoxProperties - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/BoundingBoxPropertiesAddCoordinateType - title: BoundingBoxPropertiesAddCoordinateType - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/BoundingBoxPropertiesAddIndex - title: BoundingBoxPropertiesAddIndex - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/BoundingBoxPropertiesAddType - title: BoundingBoxPropertiesAddType - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/BoundingBoxPropertiesEnd - title: BoundingBoxPropertiesEnd - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/BoundingBoxPropertiesStart - title: BoundingBoxPropertiesStart - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/BoundingBoxPropertiesStartIndexVector - title: BoundingBoxPropertiesStartIndexVector - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/BoundingBoxPropertiesT - title: BoundingBoxPropertiesT - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/BoundingBoxType - title: BoundingBoxType - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ColorSpaceType - title: ColorSpaceType - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/Content - title: Content - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ContentAddContentProperties - title: ContentAddContentProperties - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ContentAddContentPropertiesType - title: ContentAddContentPropertiesType - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ContentAddRange - title: ContentAddRange - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ContentEnd - title: ContentEnd - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ContentProperties - title: ContentProperties - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ContentPropertiesCreator - title: ContentPropertiesCreator - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ContentStart - title: ContentStart - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ContentT - title: ContentT - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/CoordinateType - title: CoordinateType - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/CustomMetadata - title: CustomMetadata - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/CustomMetadataAddData - title: CustomMetadataAddData - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/CustomMetadataAddName - title: CustomMetadataAddName - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/CustomMetadataEnd - title: CustomMetadataEnd - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/CustomMetadataStart - title: CustomMetadataStart - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/CustomMetadataStartDataVector - title: CustomMetadataStartDataVector - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/CustomMetadataT - title: CustomMetadataT - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/FeatureProperties - title: FeatureProperties - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/FeaturePropertiesEnd - title: FeaturePropertiesEnd - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/FeaturePropertiesStart - title: FeaturePropertiesStart - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/FeaturePropertiesT - title: FeaturePropertiesT - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImageProperties - title: ImageProperties - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImagePropertiesAddColorSpace - title: ImagePropertiesAddColorSpace - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImagePropertiesAddDefaultSize - title: ImagePropertiesAddDefaultSize - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImagePropertiesEnd - title: ImagePropertiesEnd - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImagePropertiesStart - title: ImagePropertiesStart - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImagePropertiesT - title: ImagePropertiesT - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImageSize - title: ImageSize - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImageSizeAddHeight - title: ImageSizeAddHeight - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImageSizeAddWidth - title: ImageSizeAddWidth - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImageSizeEnd - title: ImageSizeEnd - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImageSizeStart - title: ImageSizeStart - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImageSizeT - title: ImageSizeT - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadata - title: ModelMetadata - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataAddAssociatedFiles - title: ModelMetadataAddAssociatedFiles - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataAddAuthor - title: ModelMetadataAddAuthor - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataAddDescription - title: ModelMetadataAddDescription - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataAddLicense - title: ModelMetadataAddLicense - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataAddMinParserVersion - title: ModelMetadataAddMinParserVersion - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataAddName - title: ModelMetadataAddName - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataAddSubgraphMetadata - title: ModelMetadataAddSubgraphMetadata - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataAddVersion - title: ModelMetadataAddVersion - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataEnd - title: ModelMetadataEnd - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataStart - title: ModelMetadataStart - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataStartAssociatedFilesVector - title: ModelMetadataStartAssociatedFilesVector - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataStartSubgraphMetadataVector - title: ModelMetadataStartSubgraphMetadataVector - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataT - title: ModelMetadataT - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/NormalizationOptions - title: NormalizationOptions - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/NormalizationOptionsAddMean - title: NormalizationOptionsAddMean - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/NormalizationOptionsAddStd - title: NormalizationOptionsAddStd - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/NormalizationOptionsEnd - title: NormalizationOptionsEnd - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/NormalizationOptionsStart - title: NormalizationOptionsStart - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/NormalizationOptionsStartMeanVector - title: NormalizationOptionsStartMeanVector - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/NormalizationOptionsStartStdVector - title: NormalizationOptionsStartStdVector - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/NormalizationOptionsT - title: NormalizationOptionsT - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ProcessUnit - title: ProcessUnit - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ProcessUnitAddOptions - title: ProcessUnitAddOptions - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ProcessUnitAddOptionsType - title: ProcessUnitAddOptionsType - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ProcessUnitEnd - title: ProcessUnitEnd - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ProcessUnitOptions - title: ProcessUnitOptions - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ProcessUnitOptionsCreator - title: ProcessUnitOptionsCreator - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ProcessUnitStart - title: ProcessUnitStart - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ProcessUnitT - title: ProcessUnitT - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/RegexTokenizerOptions - title: RegexTokenizerOptions - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/RegexTokenizerOptionsAddDelimRegexPattern - title: RegexTokenizerOptionsAddDelimRegexPattern - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/RegexTokenizerOptionsAddVocabFile - title: RegexTokenizerOptionsAddVocabFile - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/RegexTokenizerOptionsEnd - title: RegexTokenizerOptionsEnd - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/RegexTokenizerOptionsStart - title: RegexTokenizerOptionsStart - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/RegexTokenizerOptionsStartVocabFileVector - title: RegexTokenizerOptionsStartVocabFileVector - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/RegexTokenizerOptionsT - title: RegexTokenizerOptionsT - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreCalibrationOptions - title: ScoreCalibrationOptions - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreCalibrationOptionsAddDefaultScore - title: ScoreCalibrationOptionsAddDefaultScore - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreCalibrationOptionsAddScoreTransformation - title: ScoreCalibrationOptionsAddScoreTransformation - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreCalibrationOptionsEnd - title: ScoreCalibrationOptionsEnd - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreCalibrationOptionsStart - title: ScoreCalibrationOptionsStart - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreCalibrationOptionsT - title: ScoreCalibrationOptionsT - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreThresholdingOptions - title: ScoreThresholdingOptions - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreThresholdingOptionsAddGlobalScoreThreshold - title: ScoreThresholdingOptionsAddGlobalScoreThreshold - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreThresholdingOptionsEnd - title: ScoreThresholdingOptionsEnd - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreThresholdingOptionsStart - title: ScoreThresholdingOptionsStart - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreThresholdingOptionsT - title: ScoreThresholdingOptionsT - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreTransformationType - title: ScoreTransformationType - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/SentencePieceTokenizerOptions - title: SentencePieceTokenizerOptions - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/SentencePieceTokenizerOptionsAddSentencePieceModel - title: SentencePieceTokenizerOptionsAddSentencePieceModel - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/SentencePieceTokenizerOptionsAddVocabFile - title: SentencePieceTokenizerOptionsAddVocabFile - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/SentencePieceTokenizerOptionsEnd - title: SentencePieceTokenizerOptionsEnd - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/SentencePieceTokenizerOptionsStart - title: SentencePieceTokenizerOptionsStart - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/SentencePieceTokenizerOptionsStartSentencePieceModelVector - title: SentencePieceTokenizerOptionsStartSentencePieceModelVector - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/SentencePieceTokenizerOptionsStartVocabFileVector - title: SentencePieceTokenizerOptionsStartVocabFileVector - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/SentencePieceTokenizerOptionsT - title: SentencePieceTokenizerOptionsT - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/Stats - title: Stats - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/StatsAddMax - title: StatsAddMax - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/StatsAddMin - title: StatsAddMin - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/StatsEnd - title: StatsEnd - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/StatsStart - title: StatsStart - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/StatsStartMaxVector - title: StatsStartMaxVector - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/StatsStartMinVector - title: StatsStartMinVector - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/StatsT - title: StatsT - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadata - title: SubGraphMetadata - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataAddAssociatedFiles - title: SubGraphMetadataAddAssociatedFiles - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataAddCustomMetadata - title: SubGraphMetadataAddCustomMetadata - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataAddDescription - title: SubGraphMetadataAddDescription - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataAddInputProcessUnits - title: SubGraphMetadataAddInputProcessUnits - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataAddInputTensorGroups - title: SubGraphMetadataAddInputTensorGroups - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataAddInputTensorMetadata - title: SubGraphMetadataAddInputTensorMetadata - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataAddName - title: SubGraphMetadataAddName - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataAddOutputProcessUnits - title: SubGraphMetadataAddOutputProcessUnits - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataAddOutputTensorGroups - title: SubGraphMetadataAddOutputTensorGroups - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataAddOutputTensorMetadata - title: SubGraphMetadataAddOutputTensorMetadata - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataEnd - title: SubGraphMetadataEnd - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataStart - title: SubGraphMetadataStart - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataStartAssociatedFilesVector - title: SubGraphMetadataStartAssociatedFilesVector - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataStartCustomMetadataVector - title: SubGraphMetadataStartCustomMetadataVector - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataStartInputProcessUnitsVector - title: SubGraphMetadataStartInputProcessUnitsVector - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataStartInputTensorGroupsVector - title: SubGraphMetadataStartInputTensorGroupsVector - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataStartInputTensorMetadataVector - title: SubGraphMetadataStartInputTensorMetadataVector - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataStartOutputProcessUnitsVector - title: SubGraphMetadataStartOutputProcessUnitsVector - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataStartOutputTensorGroupsVector - title: SubGraphMetadataStartOutputTensorGroupsVector - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataStartOutputTensorMetadataVector - title: SubGraphMetadataStartOutputTensorMetadataVector - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataT - title: SubGraphMetadataT - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorGroup - title: TensorGroup - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorGroupAddName - title: TensorGroupAddName - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorGroupAddTensorNames - title: TensorGroupAddTensorNames - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorGroupEnd - title: TensorGroupEnd - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorGroupStart - title: TensorGroupStart - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorGroupStartTensorNamesVector - title: TensorGroupStartTensorNamesVector - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorGroupT - title: TensorGroupT - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadata - title: TensorMetadata - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataAddAssociatedFiles - title: TensorMetadataAddAssociatedFiles - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataAddContent - title: TensorMetadataAddContent - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataAddDescription - title: TensorMetadataAddDescription - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataAddDimensionNames - title: TensorMetadataAddDimensionNames - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataAddName - title: TensorMetadataAddName - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataAddProcessUnits - title: TensorMetadataAddProcessUnits - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataAddStats - title: TensorMetadataAddStats - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataEnd - title: TensorMetadataEnd - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataStart - title: TensorMetadataStart - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataStartAssociatedFilesVector - title: TensorMetadataStartAssociatedFilesVector - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataStartDimensionNamesVector - title: TensorMetadataStartDimensionNamesVector - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataStartProcessUnitsVector - title: TensorMetadataStartProcessUnitsVector - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataT - title: TensorMetadataT - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ValueRange - title: ValueRange - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ValueRangeAddMax - title: ValueRangeAddMax - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ValueRangeAddMin - title: ValueRangeAddMin - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ValueRangeEnd - title: ValueRangeEnd - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ValueRangeStart - title: ValueRangeStart - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/ValueRangeT - title: ValueRangeT - - path: /lite/api_docs/python/tflite_support/metadata_schema_py_generated/import_numpy - title: import_numpy - title: metadata_schema_py_generated - - section: - - path: /lite/api_docs/python/tflite_support/metadata_writers - title: Overview - - section: - - path: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier - title: Overview - - path: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/MetadataWriter - title: MetadataWriter - - section: - - path: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer - title: Overview - - path: /lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer/MetadataWriter - title: MetadataWriter - title: metadata_writer - title: audio_classifier - - section: - - path: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier - title: Overview - - path: /lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/MetadataWriter - title: MetadataWriter - title: bert_nl_classifier - - section: - - path: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier - title: Overview - - path: /lite/api_docs/python/tflite_support/metadata_writers/image_classifier/MetadataWriter - title: MetadataWriter - title: image_classifier - - section: - - path: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter - title: Overview - - path: /lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/MetadataWriter - title: MetadataWriter - title: image_segmenter - - section: - - path: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info - title: Overview - - path: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/AssociatedFileMd - title: AssociatedFileMd - - path: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/BertInputTensorsMd - title: BertInputTensorsMd - - path: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/BertTokenizerMd - title: BertTokenizerMd - - path: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/CategoryTensorMd - title: CategoryTensorMd - - path: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/ClassificationTensorMd - title: ClassificationTensorMd - - path: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/GeneralMd - title: GeneralMd - - path: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputAudioTensorMd - title: InputAudioTensorMd - - path: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputImageTensorMd - title: InputImageTensorMd - - path: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputTextTensorMd - title: InputTextTensorMd - - path: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/LabelFileMd - title: LabelFileMd - - path: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/RegexTokenizerMd - title: RegexTokenizerMd - - path: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/ScoreCalibrationMd - title: ScoreCalibrationMd - - path: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/SentencePieceTokenizerMd - title: SentencePieceTokenizerMd - - path: /lite/api_docs/python/tflite_support/metadata_writers/metadata_info/TensorMd - title: TensorMd - title: metadata_info - - section: - - path: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier - title: Overview - - path: /lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/MetadataWriter - title: MetadataWriter - title: nl_classifier - - section: - - path: /lite/api_docs/python/tflite_support/metadata_writers/object_detector - title: Overview - - path: /lite/api_docs/python/tflite_support/metadata_writers/object_detector/MetadataWriter - title: MetadataWriter - title: object_detector - - section: - - path: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils - title: Overview - - path: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/compute_flat_size - title: compute_flat_size - - path: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_names - title: get_input_tensor_names - - path: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_shape - title: get_input_tensor_shape - - path: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_types - title: get_input_tensor_types - - path: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_names - title: get_output_tensor_names - - path: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_types - title: get_output_tensor_types - - path: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_tokenizer_associated_files - title: get_tokenizer_associated_files - - path: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/load_file - title: load_file - - path: /lite/api_docs/python/tflite_support/metadata_writers/writer_utils/save_file - title: save_file - title: writer_utils - title: metadata_writers - - section: - - path: /lite/api_docs/python/tflite_support/task - title: Overview - - section: - - path: /lite/api_docs/python/tflite_support/task/audio - title: Overview - - path: /lite/api_docs/python/tflite_support/task/audio/AudioClassifier - title: AudioClassifier - - path: /lite/api_docs/python/tflite_support/task/audio/AudioClassifierOptions - title: AudioClassifierOptions - - path: /lite/api_docs/python/tflite_support/task/audio/AudioEmbedder - title: AudioEmbedder - - path: /lite/api_docs/python/tflite_support/task/audio/AudioEmbedderOptions - title: AudioEmbedderOptions - - path: /lite/api_docs/python/tflite_support/task/audio/AudioFormat - title: AudioFormat - - path: /lite/api_docs/python/tflite_support/task/audio/AudioRecord - title: AudioRecord - - path: /lite/api_docs/python/tflite_support/task/audio/TensorAudio - title: TensorAudio - title: audio - - section: - - path: /lite/api_docs/python/tflite_support/task/core - title: Overview - - path: /lite/api_docs/python/tflite_support/task/core/BaseOptions - title: BaseOptions - title: core - - section: - - path: /lite/api_docs/python/tflite_support/task/processor - title: Overview - - path: /lite/api_docs/python/tflite_support/task/processor/BertCluAnnotationOptions - title: BertCluAnnotationOptions - - path: /lite/api_docs/python/tflite_support/task/processor/BoundingBox - title: BoundingBox - - path: /lite/api_docs/python/tflite_support/task/processor/CategoricalSlot - title: CategoricalSlot - - path: /lite/api_docs/python/tflite_support/task/processor/Category - title: Category - - path: /lite/api_docs/python/tflite_support/task/processor/ClassificationOptions - title: ClassificationOptions - - path: /lite/api_docs/python/tflite_support/task/processor/ClassificationResult - title: ClassificationResult - - path: /lite/api_docs/python/tflite_support/task/processor/Classifications - title: Classifications - - path: /lite/api_docs/python/tflite_support/task/processor/CluRequest - title: CluRequest - - path: /lite/api_docs/python/tflite_support/task/processor/CluResponse - title: CluResponse - - path: /lite/api_docs/python/tflite_support/task/processor/ColoredLabel - title: ColoredLabel - - path: /lite/api_docs/python/tflite_support/task/processor/ConfidenceMask - title: ConfidenceMask - - path: /lite/api_docs/python/tflite_support/task/processor/Detection - title: Detection - - path: /lite/api_docs/python/tflite_support/task/processor/DetectionOptions - title: DetectionOptions - - path: /lite/api_docs/python/tflite_support/task/processor/DetectionResult - title: DetectionResult - - path: /lite/api_docs/python/tflite_support/task/processor/Embedding - title: Embedding - - path: /lite/api_docs/python/tflite_support/task/processor/EmbeddingOptions - title: EmbeddingOptions - - path: /lite/api_docs/python/tflite_support/task/processor/EmbeddingResult - title: EmbeddingResult - - path: /lite/api_docs/python/tflite_support/task/processor/FeatureVector - title: FeatureVector - - path: /lite/api_docs/python/tflite_support/task/processor/Mention - title: Mention - - path: /lite/api_docs/python/tflite_support/task/processor/MentionedSlot - title: MentionedSlot - - path: /lite/api_docs/python/tflite_support/task/processor/NearestNeighbor - title: NearestNeighbor - - path: /lite/api_docs/python/tflite_support/task/processor/OutputType - title: OutputType - - path: /lite/api_docs/python/tflite_support/task/processor/Pos - title: Pos - - path: /lite/api_docs/python/tflite_support/task/processor/QaAnswer - title: QaAnswer - - path: /lite/api_docs/python/tflite_support/task/processor/QuestionAnswererResult - title: QuestionAnswererResult - - path: /lite/api_docs/python/tflite_support/task/processor/SearchOptions - title: SearchOptions - - path: /lite/api_docs/python/tflite_support/task/processor/SearchResult - title: SearchResult - - path: /lite/api_docs/python/tflite_support/task/processor/Segmentation - title: Segmentation - - path: /lite/api_docs/python/tflite_support/task/processor/SegmentationOptions - title: SegmentationOptions - - path: /lite/api_docs/python/tflite_support/task/processor/SegmentationResult - title: SegmentationResult - title: processor - - section: - - path: /lite/api_docs/python/tflite_support/task/text - title: Overview - - path: /lite/api_docs/python/tflite_support/task/text/BertCluAnnotator - title: BertCluAnnotator - - path: /lite/api_docs/python/tflite_support/task/text/BertCluAnnotatorOptions - title: BertCluAnnotatorOptions - - path: /lite/api_docs/python/tflite_support/task/text/BertNLClassifier - title: BertNLClassifier - - path: /lite/api_docs/python/tflite_support/task/text/BertNLClassifierOptions - title: BertNLClassifierOptions - - path: /lite/api_docs/python/tflite_support/task/text/BertQuestionAnswerer - title: BertQuestionAnswerer - - path: /lite/api_docs/python/tflite_support/task/text/BertQuestionAnswererOptions - title: BertQuestionAnswererOptions - - path: /lite/api_docs/python/tflite_support/task/text/NLClassifier - title: NLClassifier - - path: /lite/api_docs/python/tflite_support/task/text/NLClassifierOptions - title: NLClassifierOptions - - path: /lite/api_docs/python/tflite_support/task/text/TextEmbedder - title: TextEmbedder - - path: /lite/api_docs/python/tflite_support/task/text/TextEmbedderOptions - title: TextEmbedderOptions - - path: /lite/api_docs/python/tflite_support/task/text/TextSearcher - title: TextSearcher - - path: /lite/api_docs/python/tflite_support/task/text/TextSearcherOptions - title: TextSearcherOptions - title: text - - section: - - path: /lite/api_docs/python/tflite_support/task/vision - title: Overview - - path: /lite/api_docs/python/tflite_support/task/vision/ImageClassifier - title: ImageClassifier - - path: /lite/api_docs/python/tflite_support/task/vision/ImageClassifierOptions - title: ImageClassifierOptions - - path: /lite/api_docs/python/tflite_support/task/vision/ImageEmbedder - title: ImageEmbedder - - path: /lite/api_docs/python/tflite_support/task/vision/ImageEmbedderOptions - title: ImageEmbedderOptions - - path: /lite/api_docs/python/tflite_support/task/vision/ImageSearcher - title: ImageSearcher - - path: /lite/api_docs/python/tflite_support/task/vision/ImageSearcherOptions - title: ImageSearcherOptions - - path: /lite/api_docs/python/tflite_support/task/vision/ImageSegmenter - title: ImageSegmenter - - path: /lite/api_docs/python/tflite_support/task/vision/ImageSegmenterOptions - title: ImageSegmenterOptions - - path: /lite/api_docs/python/tflite_support/task/vision/ObjectDetector - title: ObjectDetector - - path: /lite/api_docs/python/tflite_support/task/vision/ObjectDetectorOptions - title: ObjectDetectorOptions - - path: /lite/api_docs/python/tflite_support/task/vision/TensorImage - title: TensorImage - title: vision - title: task - title: tflite_support diff --git a/site/en/lite/api_docs/python/tflite_support/all_symbols.md b/site/en/lite/api_docs/python/tflite_support/all_symbols.md deleted file mode 100644 index c266dfc410..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/all_symbols.md +++ /dev/null @@ -1,747 +0,0 @@ -page_type: reference - - - - - -# All symbols in TensorFlow Lite Support - - - -## Primary symbols - -* tflite_support -* tflite_support.metadata -* tflite_support.metadata.MetadataDisplayer -* tflite_support.metadata.MetadataPopulator -* tflite_support.metadata.convert_to_json -* tflite_support.metadata.get_metadata_buffer -* tflite_support.metadata.get_path_to_datafile -* tflite_support.metadata_schema_py_generated -* tflite_support.metadata_schema_py_generated.AssociatedFile -* tflite_support.metadata_schema_py_generated.AssociatedFileAddDescription -* tflite_support.metadata_schema_py_generated.AssociatedFileAddLocale -* tflite_support.metadata_schema_py_generated.AssociatedFileAddName -* tflite_support.metadata_schema_py_generated.AssociatedFileAddType -* tflite_support.metadata_schema_py_generated.AssociatedFileAddVersion -* tflite_support.metadata_schema_py_generated.AssociatedFileEnd -* tflite_support.metadata_schema_py_generated.AssociatedFileStart -* tflite_support.metadata_schema_py_generated.AssociatedFileT -* tflite_support.metadata_schema_py_generated.AssociatedFileType -* tflite_support.metadata_schema_py_generated.AudioProperties -* tflite_support.metadata_schema_py_generated.AudioPropertiesAddChannels -* tflite_support.metadata_schema_py_generated.AudioPropertiesAddSampleRate -* tflite_support.metadata_schema_py_generated.AudioPropertiesEnd -* tflite_support.metadata_schema_py_generated.AudioPropertiesStart -* tflite_support.metadata_schema_py_generated.AudioPropertiesT -* tflite_support.metadata_schema_py_generated.BertTokenizerOptions -* tflite_support.metadata_schema_py_generated.BertTokenizerOptionsAddVocabFile -* tflite_support.metadata_schema_py_generated.BertTokenizerOptionsEnd -* tflite_support.metadata_schema_py_generated.BertTokenizerOptionsStart -* tflite_support.metadata_schema_py_generated.BertTokenizerOptionsStartVocabFileVector -* tflite_support.metadata_schema_py_generated.BertTokenizerOptionsT -* tflite_support.metadata_schema_py_generated.BoundingBoxProperties -* tflite_support.metadata_schema_py_generated.BoundingBoxPropertiesAddCoordinateType -* tflite_support.metadata_schema_py_generated.BoundingBoxPropertiesAddIndex -* tflite_support.metadata_schema_py_generated.BoundingBoxPropertiesAddType -* tflite_support.metadata_schema_py_generated.BoundingBoxPropertiesEnd -* tflite_support.metadata_schema_py_generated.BoundingBoxPropertiesStart -* tflite_support.metadata_schema_py_generated.BoundingBoxPropertiesStartIndexVector -* tflite_support.metadata_schema_py_generated.BoundingBoxPropertiesT -* tflite_support.metadata_schema_py_generated.BoundingBoxType -* tflite_support.metadata_schema_py_generated.ColorSpaceType -* tflite_support.metadata_schema_py_generated.Content -* tflite_support.metadata_schema_py_generated.ContentAddContentProperties -* tflite_support.metadata_schema_py_generated.ContentAddContentPropertiesType -* tflite_support.metadata_schema_py_generated.ContentAddRange -* tflite_support.metadata_schema_py_generated.ContentEnd -* tflite_support.metadata_schema_py_generated.ContentProperties -* tflite_support.metadata_schema_py_generated.ContentPropertiesCreator -* tflite_support.metadata_schema_py_generated.ContentStart -* tflite_support.metadata_schema_py_generated.ContentT -* tflite_support.metadata_schema_py_generated.CoordinateType -* tflite_support.metadata_schema_py_generated.CustomMetadata -* tflite_support.metadata_schema_py_generated.CustomMetadataAddData -* tflite_support.metadata_schema_py_generated.CustomMetadataAddName -* tflite_support.metadata_schema_py_generated.CustomMetadataEnd -* tflite_support.metadata_schema_py_generated.CustomMetadataStart -* tflite_support.metadata_schema_py_generated.CustomMetadataStartDataVector -* tflite_support.metadata_schema_py_generated.CustomMetadataT -* tflite_support.metadata_schema_py_generated.FeatureProperties -* tflite_support.metadata_schema_py_generated.FeaturePropertiesEnd -* tflite_support.metadata_schema_py_generated.FeaturePropertiesStart -* tflite_support.metadata_schema_py_generated.FeaturePropertiesT -* tflite_support.metadata_schema_py_generated.ImageProperties -* tflite_support.metadata_schema_py_generated.ImagePropertiesAddColorSpace -* tflite_support.metadata_schema_py_generated.ImagePropertiesAddDefaultSize -* tflite_support.metadata_schema_py_generated.ImagePropertiesEnd -* tflite_support.metadata_schema_py_generated.ImagePropertiesStart -* tflite_support.metadata_schema_py_generated.ImagePropertiesT -* tflite_support.metadata_schema_py_generated.ImageSize -* tflite_support.metadata_schema_py_generated.ImageSizeAddHeight -* tflite_support.metadata_schema_py_generated.ImageSizeAddWidth -* tflite_support.metadata_schema_py_generated.ImageSizeEnd -* tflite_support.metadata_schema_py_generated.ImageSizeStart -* tflite_support.metadata_schema_py_generated.ImageSizeT -* tflite_support.metadata_schema_py_generated.ModelMetadata -* tflite_support.metadata_schema_py_generated.ModelMetadataAddAssociatedFiles -* tflite_support.metadata_schema_py_generated.ModelMetadataAddAuthor -* tflite_support.metadata_schema_py_generated.ModelMetadataAddDescription -* tflite_support.metadata_schema_py_generated.ModelMetadataAddLicense -* tflite_support.metadata_schema_py_generated.ModelMetadataAddMinParserVersion -* tflite_support.metadata_schema_py_generated.ModelMetadataAddName -* tflite_support.metadata_schema_py_generated.ModelMetadataAddSubgraphMetadata -* tflite_support.metadata_schema_py_generated.ModelMetadataAddVersion -* tflite_support.metadata_schema_py_generated.ModelMetadataEnd -* tflite_support.metadata_schema_py_generated.ModelMetadataStart -* tflite_support.metadata_schema_py_generated.ModelMetadataStartAssociatedFilesVector -* tflite_support.metadata_schema_py_generated.ModelMetadataStartSubgraphMetadataVector -* tflite_support.metadata_schema_py_generated.ModelMetadataT -* tflite_support.metadata_schema_py_generated.NormalizationOptions -* tflite_support.metadata_schema_py_generated.NormalizationOptionsAddMean -* tflite_support.metadata_schema_py_generated.NormalizationOptionsAddStd -* tflite_support.metadata_schema_py_generated.NormalizationOptionsEnd -* tflite_support.metadata_schema_py_generated.NormalizationOptionsStart -* tflite_support.metadata_schema_py_generated.NormalizationOptionsStartMeanVector -* tflite_support.metadata_schema_py_generated.NormalizationOptionsStartStdVector -* tflite_support.metadata_schema_py_generated.NormalizationOptionsT -* tflite_support.metadata_schema_py_generated.ProcessUnit -* tflite_support.metadata_schema_py_generated.ProcessUnitAddOptions -* tflite_support.metadata_schema_py_generated.ProcessUnitAddOptionsType -* tflite_support.metadata_schema_py_generated.ProcessUnitEnd -* tflite_support.metadata_schema_py_generated.ProcessUnitOptions -* tflite_support.metadata_schema_py_generated.ProcessUnitOptionsCreator -* tflite_support.metadata_schema_py_generated.ProcessUnitStart -* tflite_support.metadata_schema_py_generated.ProcessUnitT -* tflite_support.metadata_schema_py_generated.RegexTokenizerOptions -* tflite_support.metadata_schema_py_generated.RegexTokenizerOptionsAddDelimRegexPattern -* tflite_support.metadata_schema_py_generated.RegexTokenizerOptionsAddVocabFile -* tflite_support.metadata_schema_py_generated.RegexTokenizerOptionsEnd -* tflite_support.metadata_schema_py_generated.RegexTokenizerOptionsStart -* tflite_support.metadata_schema_py_generated.RegexTokenizerOptionsStartVocabFileVector -* tflite_support.metadata_schema_py_generated.RegexTokenizerOptionsT -* tflite_support.metadata_schema_py_generated.ScoreCalibrationOptions -* tflite_support.metadata_schema_py_generated.ScoreCalibrationOptionsAddDefaultScore -* tflite_support.metadata_schema_py_generated.ScoreCalibrationOptionsAddScoreTransformation -* tflite_support.metadata_schema_py_generated.ScoreCalibrationOptionsEnd -* tflite_support.metadata_schema_py_generated.ScoreCalibrationOptionsStart -* tflite_support.metadata_schema_py_generated.ScoreCalibrationOptionsT -* tflite_support.metadata_schema_py_generated.ScoreThresholdingOptions -* tflite_support.metadata_schema_py_generated.ScoreThresholdingOptionsAddGlobalScoreThreshold -* tflite_support.metadata_schema_py_generated.ScoreThresholdingOptionsEnd -* tflite_support.metadata_schema_py_generated.ScoreThresholdingOptionsStart -* tflite_support.metadata_schema_py_generated.ScoreThresholdingOptionsT -* tflite_support.metadata_schema_py_generated.ScoreTransformationType -* tflite_support.metadata_schema_py_generated.SentencePieceTokenizerOptions -* tflite_support.metadata_schema_py_generated.SentencePieceTokenizerOptionsAddSentencePieceModel -* tflite_support.metadata_schema_py_generated.SentencePieceTokenizerOptionsAddVocabFile -* tflite_support.metadata_schema_py_generated.SentencePieceTokenizerOptionsEnd -* tflite_support.metadata_schema_py_generated.SentencePieceTokenizerOptionsStart -* tflite_support.metadata_schema_py_generated.SentencePieceTokenizerOptionsStartSentencePieceModelVector -* tflite_support.metadata_schema_py_generated.SentencePieceTokenizerOptionsStartVocabFileVector -* tflite_support.metadata_schema_py_generated.SentencePieceTokenizerOptionsT -* tflite_support.metadata_schema_py_generated.Stats -* tflite_support.metadata_schema_py_generated.StatsAddMax -* tflite_support.metadata_schema_py_generated.StatsAddMin -* tflite_support.metadata_schema_py_generated.StatsEnd -* tflite_support.metadata_schema_py_generated.StatsStart -* tflite_support.metadata_schema_py_generated.StatsStartMaxVector -* tflite_support.metadata_schema_py_generated.StatsStartMinVector -* tflite_support.metadata_schema_py_generated.StatsT -* tflite_support.metadata_schema_py_generated.SubGraphMetadata -* tflite_support.metadata_schema_py_generated.SubGraphMetadataAddAssociatedFiles -* tflite_support.metadata_schema_py_generated.SubGraphMetadataAddCustomMetadata -* tflite_support.metadata_schema_py_generated.SubGraphMetadataAddDescription -* tflite_support.metadata_schema_py_generated.SubGraphMetadataAddInputProcessUnits -* tflite_support.metadata_schema_py_generated.SubGraphMetadataAddInputTensorGroups -* tflite_support.metadata_schema_py_generated.SubGraphMetadataAddInputTensorMetadata -* tflite_support.metadata_schema_py_generated.SubGraphMetadataAddName -* tflite_support.metadata_schema_py_generated.SubGraphMetadataAddOutputProcessUnits -* tflite_support.metadata_schema_py_generated.SubGraphMetadataAddOutputTensorGroups -* tflite_support.metadata_schema_py_generated.SubGraphMetadataAddOutputTensorMetadata -* tflite_support.metadata_schema_py_generated.SubGraphMetadataEnd -* tflite_support.metadata_schema_py_generated.SubGraphMetadataStart -* tflite_support.metadata_schema_py_generated.SubGraphMetadataStartAssociatedFilesVector -* tflite_support.metadata_schema_py_generated.SubGraphMetadataStartCustomMetadataVector -* tflite_support.metadata_schema_py_generated.SubGraphMetadataStartInputProcessUnitsVector -* tflite_support.metadata_schema_py_generated.SubGraphMetadataStartInputTensorGroupsVector -* tflite_support.metadata_schema_py_generated.SubGraphMetadataStartInputTensorMetadataVector -* tflite_support.metadata_schema_py_generated.SubGraphMetadataStartOutputProcessUnitsVector -* tflite_support.metadata_schema_py_generated.SubGraphMetadataStartOutputTensorGroupsVector -* tflite_support.metadata_schema_py_generated.SubGraphMetadataStartOutputTensorMetadataVector -* tflite_support.metadata_schema_py_generated.SubGraphMetadataT -* tflite_support.metadata_schema_py_generated.TensorGroup -* tflite_support.metadata_schema_py_generated.TensorGroupAddName -* tflite_support.metadata_schema_py_generated.TensorGroupAddTensorNames -* tflite_support.metadata_schema_py_generated.TensorGroupEnd -* tflite_support.metadata_schema_py_generated.TensorGroupStart -* tflite_support.metadata_schema_py_generated.TensorGroupStartTensorNamesVector -* tflite_support.metadata_schema_py_generated.TensorGroupT -* tflite_support.metadata_schema_py_generated.TensorMetadata -* tflite_support.metadata_schema_py_generated.TensorMetadataAddAssociatedFiles -* tflite_support.metadata_schema_py_generated.TensorMetadataAddContent -* tflite_support.metadata_schema_py_generated.TensorMetadataAddDescription -* tflite_support.metadata_schema_py_generated.TensorMetadataAddDimensionNames -* tflite_support.metadata_schema_py_generated.TensorMetadataAddName -* tflite_support.metadata_schema_py_generated.TensorMetadataAddProcessUnits -* tflite_support.metadata_schema_py_generated.TensorMetadataAddStats -* tflite_support.metadata_schema_py_generated.TensorMetadataEnd -* tflite_support.metadata_schema_py_generated.TensorMetadataStart -* tflite_support.metadata_schema_py_generated.TensorMetadataStartAssociatedFilesVector -* tflite_support.metadata_schema_py_generated.TensorMetadataStartDimensionNamesVector -* tflite_support.metadata_schema_py_generated.TensorMetadataStartProcessUnitsVector -* tflite_support.metadata_schema_py_generated.TensorMetadataT -* tflite_support.metadata_schema_py_generated.ValueRange -* tflite_support.metadata_schema_py_generated.ValueRangeAddMax -* tflite_support.metadata_schema_py_generated.ValueRangeAddMin -* tflite_support.metadata_schema_py_generated.ValueRangeEnd -* tflite_support.metadata_schema_py_generated.ValueRangeStart -* tflite_support.metadata_schema_py_generated.ValueRangeT -* tflite_support.metadata_schema_py_generated.import_numpy -* tflite_support.metadata_writers -* tflite_support.metadata_writers.audio_classifier -* tflite_support.metadata_writers.audio_classifier.MetadataWriter -* tflite_support.metadata_writers.audio_classifier.metadata_info -* tflite_support.metadata_writers.audio_classifier.metadata_info.AssociatedFileMd -* tflite_support.metadata_writers.audio_classifier.metadata_info.BertInputTensorsMd -* tflite_support.metadata_writers.audio_classifier.metadata_info.BertTokenizerMd -* tflite_support.metadata_writers.audio_classifier.metadata_info.CategoryTensorMd -* tflite_support.metadata_writers.audio_classifier.metadata_info.ClassificationTensorMd -* tflite_support.metadata_writers.audio_classifier.metadata_info.GeneralMd -* tflite_support.metadata_writers.audio_classifier.metadata_info.InputAudioTensorMd -* tflite_support.metadata_writers.audio_classifier.metadata_info.InputImageTensorMd -* tflite_support.metadata_writers.audio_classifier.metadata_info.InputTextTensorMd -* tflite_support.metadata_writers.audio_classifier.metadata_info.LabelFileMd -* tflite_support.metadata_writers.audio_classifier.metadata_info.RegexTokenizerMd -* tflite_support.metadata_writers.audio_classifier.metadata_info.ScoreCalibrationMd -* tflite_support.metadata_writers.audio_classifier.metadata_info.SentencePieceTokenizerMd -* tflite_support.metadata_writers.audio_classifier.metadata_info.TensorMd -* tflite_support.metadata_writers.audio_classifier.metadata_info.writer_utils -* tflite_support.metadata_writers.audio_classifier.metadata_info.writer_utils.compute_flat_size -* tflite_support.metadata_writers.audio_classifier.metadata_info.writer_utils.get_input_tensor_names -* tflite_support.metadata_writers.audio_classifier.metadata_info.writer_utils.get_input_tensor_shape -* tflite_support.metadata_writers.audio_classifier.metadata_info.writer_utils.get_input_tensor_types -* tflite_support.metadata_writers.audio_classifier.metadata_info.writer_utils.get_output_tensor_names -* tflite_support.metadata_writers.audio_classifier.metadata_info.writer_utils.get_output_tensor_types -* tflite_support.metadata_writers.audio_classifier.metadata_info.writer_utils.get_tokenizer_associated_files -* tflite_support.metadata_writers.audio_classifier.metadata_info.writer_utils.load_file -* tflite_support.metadata_writers.audio_classifier.metadata_info.writer_utils.save_file -* tflite_support.metadata_writers.audio_classifier.metadata_writer -* tflite_support.metadata_writers.audio_classifier.metadata_writer.MetadataWriter -* tflite_support.metadata_writers.audio_classifier.metadata_writer.metadata_info -* tflite_support.metadata_writers.audio_classifier.metadata_writer.metadata_info.AssociatedFileMd -* tflite_support.metadata_writers.audio_classifier.metadata_writer.metadata_info.BertInputTensorsMd -* tflite_support.metadata_writers.audio_classifier.metadata_writer.metadata_info.BertTokenizerMd -* tflite_support.metadata_writers.audio_classifier.metadata_writer.metadata_info.CategoryTensorMd -* tflite_support.metadata_writers.audio_classifier.metadata_writer.metadata_info.ClassificationTensorMd -* tflite_support.metadata_writers.audio_classifier.metadata_writer.metadata_info.GeneralMd -* tflite_support.metadata_writers.audio_classifier.metadata_writer.metadata_info.InputAudioTensorMd -* tflite_support.metadata_writers.audio_classifier.metadata_writer.metadata_info.InputImageTensorMd -* tflite_support.metadata_writers.audio_classifier.metadata_writer.metadata_info.InputTextTensorMd -* tflite_support.metadata_writers.audio_classifier.metadata_writer.metadata_info.LabelFileMd -* tflite_support.metadata_writers.audio_classifier.metadata_writer.metadata_info.RegexTokenizerMd -* tflite_support.metadata_writers.audio_classifier.metadata_writer.metadata_info.ScoreCalibrationMd -* tflite_support.metadata_writers.audio_classifier.metadata_writer.metadata_info.SentencePieceTokenizerMd -* tflite_support.metadata_writers.audio_classifier.metadata_writer.metadata_info.TensorMd -* tflite_support.metadata_writers.audio_classifier.metadata_writer.metadata_info.writer_utils -* tflite_support.metadata_writers.audio_classifier.metadata_writer.metadata_info.writer_utils.compute_flat_size -* tflite_support.metadata_writers.audio_classifier.metadata_writer.metadata_info.writer_utils.get_input_tensor_names -* tflite_support.metadata_writers.audio_classifier.metadata_writer.metadata_info.writer_utils.get_input_tensor_shape -* tflite_support.metadata_writers.audio_classifier.metadata_writer.metadata_info.writer_utils.get_input_tensor_types -* tflite_support.metadata_writers.audio_classifier.metadata_writer.metadata_info.writer_utils.get_output_tensor_names -* tflite_support.metadata_writers.audio_classifier.metadata_writer.metadata_info.writer_utils.get_output_tensor_types -* tflite_support.metadata_writers.audio_classifier.metadata_writer.metadata_info.writer_utils.get_tokenizer_associated_files -* tflite_support.metadata_writers.audio_classifier.metadata_writer.metadata_info.writer_utils.load_file -* tflite_support.metadata_writers.audio_classifier.metadata_writer.metadata_info.writer_utils.save_file -* tflite_support.metadata_writers.audio_classifier.metadata_writer.writer_utils -* tflite_support.metadata_writers.audio_classifier.metadata_writer.writer_utils.compute_flat_size -* tflite_support.metadata_writers.audio_classifier.metadata_writer.writer_utils.get_input_tensor_names -* tflite_support.metadata_writers.audio_classifier.metadata_writer.writer_utils.get_input_tensor_shape -* tflite_support.metadata_writers.audio_classifier.metadata_writer.writer_utils.get_input_tensor_types -* tflite_support.metadata_writers.audio_classifier.metadata_writer.writer_utils.get_output_tensor_names -* tflite_support.metadata_writers.audio_classifier.metadata_writer.writer_utils.get_output_tensor_types -* tflite_support.metadata_writers.audio_classifier.metadata_writer.writer_utils.get_tokenizer_associated_files -* tflite_support.metadata_writers.audio_classifier.metadata_writer.writer_utils.load_file -* tflite_support.metadata_writers.audio_classifier.metadata_writer.writer_utils.save_file -* tflite_support.metadata_writers.audio_classifier.writer_utils -* tflite_support.metadata_writers.audio_classifier.writer_utils.compute_flat_size -* tflite_support.metadata_writers.audio_classifier.writer_utils.get_input_tensor_names -* tflite_support.metadata_writers.audio_classifier.writer_utils.get_input_tensor_shape -* tflite_support.metadata_writers.audio_classifier.writer_utils.get_input_tensor_types -* tflite_support.metadata_writers.audio_classifier.writer_utils.get_output_tensor_names -* tflite_support.metadata_writers.audio_classifier.writer_utils.get_output_tensor_types -* tflite_support.metadata_writers.audio_classifier.writer_utils.get_tokenizer_associated_files -* tflite_support.metadata_writers.audio_classifier.writer_utils.load_file -* tflite_support.metadata_writers.audio_classifier.writer_utils.save_file -* tflite_support.metadata_writers.bert_nl_classifier -* tflite_support.metadata_writers.bert_nl_classifier.MetadataWriter -* tflite_support.metadata_writers.bert_nl_classifier.metadata_info -* tflite_support.metadata_writers.bert_nl_classifier.metadata_info.AssociatedFileMd -* tflite_support.metadata_writers.bert_nl_classifier.metadata_info.BertInputTensorsMd -* tflite_support.metadata_writers.bert_nl_classifier.metadata_info.BertTokenizerMd -* tflite_support.metadata_writers.bert_nl_classifier.metadata_info.CategoryTensorMd -* tflite_support.metadata_writers.bert_nl_classifier.metadata_info.ClassificationTensorMd -* tflite_support.metadata_writers.bert_nl_classifier.metadata_info.GeneralMd -* tflite_support.metadata_writers.bert_nl_classifier.metadata_info.InputAudioTensorMd -* tflite_support.metadata_writers.bert_nl_classifier.metadata_info.InputImageTensorMd -* tflite_support.metadata_writers.bert_nl_classifier.metadata_info.InputTextTensorMd -* tflite_support.metadata_writers.bert_nl_classifier.metadata_info.LabelFileMd -* tflite_support.metadata_writers.bert_nl_classifier.metadata_info.RegexTokenizerMd -* tflite_support.metadata_writers.bert_nl_classifier.metadata_info.ScoreCalibrationMd -* tflite_support.metadata_writers.bert_nl_classifier.metadata_info.SentencePieceTokenizerMd -* tflite_support.metadata_writers.bert_nl_classifier.metadata_info.TensorMd -* tflite_support.metadata_writers.bert_nl_classifier.metadata_info.writer_utils -* tflite_support.metadata_writers.bert_nl_classifier.metadata_info.writer_utils.compute_flat_size -* tflite_support.metadata_writers.bert_nl_classifier.metadata_info.writer_utils.get_input_tensor_names -* tflite_support.metadata_writers.bert_nl_classifier.metadata_info.writer_utils.get_input_tensor_shape -* tflite_support.metadata_writers.bert_nl_classifier.metadata_info.writer_utils.get_input_tensor_types -* tflite_support.metadata_writers.bert_nl_classifier.metadata_info.writer_utils.get_output_tensor_names -* tflite_support.metadata_writers.bert_nl_classifier.metadata_info.writer_utils.get_output_tensor_types -* tflite_support.metadata_writers.bert_nl_classifier.metadata_info.writer_utils.get_tokenizer_associated_files -* tflite_support.metadata_writers.bert_nl_classifier.metadata_info.writer_utils.load_file -* tflite_support.metadata_writers.bert_nl_classifier.metadata_info.writer_utils.save_file -* tflite_support.metadata_writers.bert_nl_classifier.metadata_writer -* tflite_support.metadata_writers.bert_nl_classifier.metadata_writer.MetadataWriter -* tflite_support.metadata_writers.bert_nl_classifier.metadata_writer.metadata_info -* tflite_support.metadata_writers.bert_nl_classifier.metadata_writer.metadata_info.AssociatedFileMd -* tflite_support.metadata_writers.bert_nl_classifier.metadata_writer.metadata_info.BertInputTensorsMd -* tflite_support.metadata_writers.bert_nl_classifier.metadata_writer.metadata_info.BertTokenizerMd -* tflite_support.metadata_writers.bert_nl_classifier.metadata_writer.metadata_info.CategoryTensorMd -* tflite_support.metadata_writers.bert_nl_classifier.metadata_writer.metadata_info.ClassificationTensorMd -* tflite_support.metadata_writers.bert_nl_classifier.metadata_writer.metadata_info.GeneralMd -* tflite_support.metadata_writers.bert_nl_classifier.metadata_writer.metadata_info.InputAudioTensorMd -* tflite_support.metadata_writers.bert_nl_classifier.metadata_writer.metadata_info.InputImageTensorMd -* tflite_support.metadata_writers.bert_nl_classifier.metadata_writer.metadata_info.InputTextTensorMd -* tflite_support.metadata_writers.bert_nl_classifier.metadata_writer.metadata_info.LabelFileMd -* tflite_support.metadata_writers.bert_nl_classifier.metadata_writer.metadata_info.RegexTokenizerMd -* tflite_support.metadata_writers.bert_nl_classifier.metadata_writer.metadata_info.ScoreCalibrationMd -* tflite_support.metadata_writers.bert_nl_classifier.metadata_writer.metadata_info.SentencePieceTokenizerMd -* tflite_support.metadata_writers.bert_nl_classifier.metadata_writer.metadata_info.TensorMd -* tflite_support.metadata_writers.bert_nl_classifier.metadata_writer.metadata_info.writer_utils -* tflite_support.metadata_writers.bert_nl_classifier.metadata_writer.metadata_info.writer_utils.compute_flat_size -* tflite_support.metadata_writers.bert_nl_classifier.metadata_writer.metadata_info.writer_utils.get_input_tensor_names -* tflite_support.metadata_writers.bert_nl_classifier.metadata_writer.metadata_info.writer_utils.get_input_tensor_shape -* tflite_support.metadata_writers.bert_nl_classifier.metadata_writer.metadata_info.writer_utils.get_input_tensor_types -* tflite_support.metadata_writers.bert_nl_classifier.metadata_writer.metadata_info.writer_utils.get_output_tensor_names -* tflite_support.metadata_writers.bert_nl_classifier.metadata_writer.metadata_info.writer_utils.get_output_tensor_types -* tflite_support.metadata_writers.bert_nl_classifier.metadata_writer.metadata_info.writer_utils.get_tokenizer_associated_files -* tflite_support.metadata_writers.bert_nl_classifier.metadata_writer.metadata_info.writer_utils.load_file -* tflite_support.metadata_writers.bert_nl_classifier.metadata_writer.metadata_info.writer_utils.save_file -* tflite_support.metadata_writers.bert_nl_classifier.metadata_writer.writer_utils -* tflite_support.metadata_writers.bert_nl_classifier.metadata_writer.writer_utils.compute_flat_size -* tflite_support.metadata_writers.bert_nl_classifier.metadata_writer.writer_utils.get_input_tensor_names -* tflite_support.metadata_writers.bert_nl_classifier.metadata_writer.writer_utils.get_input_tensor_shape -* tflite_support.metadata_writers.bert_nl_classifier.metadata_writer.writer_utils.get_input_tensor_types -* tflite_support.metadata_writers.bert_nl_classifier.metadata_writer.writer_utils.get_output_tensor_names -* tflite_support.metadata_writers.bert_nl_classifier.metadata_writer.writer_utils.get_output_tensor_types -* tflite_support.metadata_writers.bert_nl_classifier.metadata_writer.writer_utils.get_tokenizer_associated_files -* tflite_support.metadata_writers.bert_nl_classifier.metadata_writer.writer_utils.load_file -* tflite_support.metadata_writers.bert_nl_classifier.metadata_writer.writer_utils.save_file -* tflite_support.metadata_writers.bert_nl_classifier.writer_utils -* tflite_support.metadata_writers.bert_nl_classifier.writer_utils.compute_flat_size -* tflite_support.metadata_writers.bert_nl_classifier.writer_utils.get_input_tensor_names -* tflite_support.metadata_writers.bert_nl_classifier.writer_utils.get_input_tensor_shape -* tflite_support.metadata_writers.bert_nl_classifier.writer_utils.get_input_tensor_types -* tflite_support.metadata_writers.bert_nl_classifier.writer_utils.get_output_tensor_names -* tflite_support.metadata_writers.bert_nl_classifier.writer_utils.get_output_tensor_types -* tflite_support.metadata_writers.bert_nl_classifier.writer_utils.get_tokenizer_associated_files -* tflite_support.metadata_writers.bert_nl_classifier.writer_utils.load_file -* tflite_support.metadata_writers.bert_nl_classifier.writer_utils.save_file -* tflite_support.metadata_writers.image_classifier -* tflite_support.metadata_writers.image_classifier.MetadataWriter -* tflite_support.metadata_writers.image_classifier.metadata_info -* tflite_support.metadata_writers.image_classifier.metadata_info.AssociatedFileMd -* tflite_support.metadata_writers.image_classifier.metadata_info.BertInputTensorsMd -* tflite_support.metadata_writers.image_classifier.metadata_info.BertTokenizerMd -* tflite_support.metadata_writers.image_classifier.metadata_info.CategoryTensorMd -* tflite_support.metadata_writers.image_classifier.metadata_info.ClassificationTensorMd -* tflite_support.metadata_writers.image_classifier.metadata_info.GeneralMd -* tflite_support.metadata_writers.image_classifier.metadata_info.InputAudioTensorMd -* tflite_support.metadata_writers.image_classifier.metadata_info.InputImageTensorMd -* tflite_support.metadata_writers.image_classifier.metadata_info.InputTextTensorMd -* tflite_support.metadata_writers.image_classifier.metadata_info.LabelFileMd -* tflite_support.metadata_writers.image_classifier.metadata_info.RegexTokenizerMd -* tflite_support.metadata_writers.image_classifier.metadata_info.ScoreCalibrationMd -* tflite_support.metadata_writers.image_classifier.metadata_info.SentencePieceTokenizerMd -* tflite_support.metadata_writers.image_classifier.metadata_info.TensorMd -* tflite_support.metadata_writers.image_classifier.metadata_info.writer_utils -* tflite_support.metadata_writers.image_classifier.metadata_info.writer_utils.compute_flat_size -* tflite_support.metadata_writers.image_classifier.metadata_info.writer_utils.get_input_tensor_names -* tflite_support.metadata_writers.image_classifier.metadata_info.writer_utils.get_input_tensor_shape -* tflite_support.metadata_writers.image_classifier.metadata_info.writer_utils.get_input_tensor_types -* tflite_support.metadata_writers.image_classifier.metadata_info.writer_utils.get_output_tensor_names -* tflite_support.metadata_writers.image_classifier.metadata_info.writer_utils.get_output_tensor_types -* tflite_support.metadata_writers.image_classifier.metadata_info.writer_utils.get_tokenizer_associated_files -* tflite_support.metadata_writers.image_classifier.metadata_info.writer_utils.load_file -* tflite_support.metadata_writers.image_classifier.metadata_info.writer_utils.save_file -* tflite_support.metadata_writers.image_classifier.metadata_writer -* tflite_support.metadata_writers.image_classifier.metadata_writer.MetadataWriter -* tflite_support.metadata_writers.image_classifier.metadata_writer.metadata_info -* tflite_support.metadata_writers.image_classifier.metadata_writer.metadata_info.AssociatedFileMd -* tflite_support.metadata_writers.image_classifier.metadata_writer.metadata_info.BertInputTensorsMd -* tflite_support.metadata_writers.image_classifier.metadata_writer.metadata_info.BertTokenizerMd -* tflite_support.metadata_writers.image_classifier.metadata_writer.metadata_info.CategoryTensorMd -* tflite_support.metadata_writers.image_classifier.metadata_writer.metadata_info.ClassificationTensorMd -* tflite_support.metadata_writers.image_classifier.metadata_writer.metadata_info.GeneralMd -* tflite_support.metadata_writers.image_classifier.metadata_writer.metadata_info.InputAudioTensorMd -* tflite_support.metadata_writers.image_classifier.metadata_writer.metadata_info.InputImageTensorMd -* tflite_support.metadata_writers.image_classifier.metadata_writer.metadata_info.InputTextTensorMd -* tflite_support.metadata_writers.image_classifier.metadata_writer.metadata_info.LabelFileMd -* tflite_support.metadata_writers.image_classifier.metadata_writer.metadata_info.RegexTokenizerMd -* tflite_support.metadata_writers.image_classifier.metadata_writer.metadata_info.ScoreCalibrationMd -* tflite_support.metadata_writers.image_classifier.metadata_writer.metadata_info.SentencePieceTokenizerMd -* tflite_support.metadata_writers.image_classifier.metadata_writer.metadata_info.TensorMd -* tflite_support.metadata_writers.image_classifier.metadata_writer.metadata_info.writer_utils -* tflite_support.metadata_writers.image_classifier.metadata_writer.metadata_info.writer_utils.compute_flat_size -* tflite_support.metadata_writers.image_classifier.metadata_writer.metadata_info.writer_utils.get_input_tensor_names -* tflite_support.metadata_writers.image_classifier.metadata_writer.metadata_info.writer_utils.get_input_tensor_shape -* tflite_support.metadata_writers.image_classifier.metadata_writer.metadata_info.writer_utils.get_input_tensor_types -* tflite_support.metadata_writers.image_classifier.metadata_writer.metadata_info.writer_utils.get_output_tensor_names -* tflite_support.metadata_writers.image_classifier.metadata_writer.metadata_info.writer_utils.get_output_tensor_types -* tflite_support.metadata_writers.image_classifier.metadata_writer.metadata_info.writer_utils.get_tokenizer_associated_files -* tflite_support.metadata_writers.image_classifier.metadata_writer.metadata_info.writer_utils.load_file -* tflite_support.metadata_writers.image_classifier.metadata_writer.metadata_info.writer_utils.save_file -* tflite_support.metadata_writers.image_classifier.metadata_writer.writer_utils -* tflite_support.metadata_writers.image_classifier.metadata_writer.writer_utils.compute_flat_size -* tflite_support.metadata_writers.image_classifier.metadata_writer.writer_utils.get_input_tensor_names -* tflite_support.metadata_writers.image_classifier.metadata_writer.writer_utils.get_input_tensor_shape -* tflite_support.metadata_writers.image_classifier.metadata_writer.writer_utils.get_input_tensor_types -* tflite_support.metadata_writers.image_classifier.metadata_writer.writer_utils.get_output_tensor_names -* tflite_support.metadata_writers.image_classifier.metadata_writer.writer_utils.get_output_tensor_types -* tflite_support.metadata_writers.image_classifier.metadata_writer.writer_utils.get_tokenizer_associated_files -* tflite_support.metadata_writers.image_classifier.metadata_writer.writer_utils.load_file -* tflite_support.metadata_writers.image_classifier.metadata_writer.writer_utils.save_file -* tflite_support.metadata_writers.image_classifier.writer_utils -* tflite_support.metadata_writers.image_classifier.writer_utils.compute_flat_size -* tflite_support.metadata_writers.image_classifier.writer_utils.get_input_tensor_names -* tflite_support.metadata_writers.image_classifier.writer_utils.get_input_tensor_shape -* tflite_support.metadata_writers.image_classifier.writer_utils.get_input_tensor_types -* tflite_support.metadata_writers.image_classifier.writer_utils.get_output_tensor_names -* tflite_support.metadata_writers.image_classifier.writer_utils.get_output_tensor_types -* tflite_support.metadata_writers.image_classifier.writer_utils.get_tokenizer_associated_files -* tflite_support.metadata_writers.image_classifier.writer_utils.load_file -* tflite_support.metadata_writers.image_classifier.writer_utils.save_file -* tflite_support.metadata_writers.image_segmenter -* tflite_support.metadata_writers.image_segmenter.MetadataWriter -* tflite_support.metadata_writers.image_segmenter.metadata_info -* tflite_support.metadata_writers.image_segmenter.metadata_info.AssociatedFileMd -* tflite_support.metadata_writers.image_segmenter.metadata_info.BertInputTensorsMd -* tflite_support.metadata_writers.image_segmenter.metadata_info.BertTokenizerMd -* tflite_support.metadata_writers.image_segmenter.metadata_info.CategoryTensorMd -* tflite_support.metadata_writers.image_segmenter.metadata_info.ClassificationTensorMd -* tflite_support.metadata_writers.image_segmenter.metadata_info.GeneralMd -* tflite_support.metadata_writers.image_segmenter.metadata_info.InputAudioTensorMd -* tflite_support.metadata_writers.image_segmenter.metadata_info.InputImageTensorMd -* tflite_support.metadata_writers.image_segmenter.metadata_info.InputTextTensorMd -* tflite_support.metadata_writers.image_segmenter.metadata_info.LabelFileMd -* tflite_support.metadata_writers.image_segmenter.metadata_info.RegexTokenizerMd -* tflite_support.metadata_writers.image_segmenter.metadata_info.ScoreCalibrationMd -* tflite_support.metadata_writers.image_segmenter.metadata_info.SentencePieceTokenizerMd -* tflite_support.metadata_writers.image_segmenter.metadata_info.TensorMd -* tflite_support.metadata_writers.image_segmenter.metadata_info.writer_utils -* tflite_support.metadata_writers.image_segmenter.metadata_info.writer_utils.compute_flat_size -* tflite_support.metadata_writers.image_segmenter.metadata_info.writer_utils.get_input_tensor_names -* tflite_support.metadata_writers.image_segmenter.metadata_info.writer_utils.get_input_tensor_shape -* tflite_support.metadata_writers.image_segmenter.metadata_info.writer_utils.get_input_tensor_types -* tflite_support.metadata_writers.image_segmenter.metadata_info.writer_utils.get_output_tensor_names -* tflite_support.metadata_writers.image_segmenter.metadata_info.writer_utils.get_output_tensor_types -* tflite_support.metadata_writers.image_segmenter.metadata_info.writer_utils.get_tokenizer_associated_files -* tflite_support.metadata_writers.image_segmenter.metadata_info.writer_utils.load_file -* tflite_support.metadata_writers.image_segmenter.metadata_info.writer_utils.save_file -* tflite_support.metadata_writers.image_segmenter.metadata_writer -* tflite_support.metadata_writers.image_segmenter.metadata_writer.MetadataWriter -* tflite_support.metadata_writers.image_segmenter.metadata_writer.metadata_info -* tflite_support.metadata_writers.image_segmenter.metadata_writer.metadata_info.AssociatedFileMd -* tflite_support.metadata_writers.image_segmenter.metadata_writer.metadata_info.BertInputTensorsMd -* tflite_support.metadata_writers.image_segmenter.metadata_writer.metadata_info.BertTokenizerMd -* tflite_support.metadata_writers.image_segmenter.metadata_writer.metadata_info.CategoryTensorMd -* tflite_support.metadata_writers.image_segmenter.metadata_writer.metadata_info.ClassificationTensorMd -* tflite_support.metadata_writers.image_segmenter.metadata_writer.metadata_info.GeneralMd -* tflite_support.metadata_writers.image_segmenter.metadata_writer.metadata_info.InputAudioTensorMd -* tflite_support.metadata_writers.image_segmenter.metadata_writer.metadata_info.InputImageTensorMd -* tflite_support.metadata_writers.image_segmenter.metadata_writer.metadata_info.InputTextTensorMd -* tflite_support.metadata_writers.image_segmenter.metadata_writer.metadata_info.LabelFileMd -* tflite_support.metadata_writers.image_segmenter.metadata_writer.metadata_info.RegexTokenizerMd -* tflite_support.metadata_writers.image_segmenter.metadata_writer.metadata_info.ScoreCalibrationMd -* tflite_support.metadata_writers.image_segmenter.metadata_writer.metadata_info.SentencePieceTokenizerMd -* tflite_support.metadata_writers.image_segmenter.metadata_writer.metadata_info.TensorMd -* tflite_support.metadata_writers.image_segmenter.metadata_writer.metadata_info.writer_utils -* tflite_support.metadata_writers.image_segmenter.metadata_writer.metadata_info.writer_utils.compute_flat_size -* tflite_support.metadata_writers.image_segmenter.metadata_writer.metadata_info.writer_utils.get_input_tensor_names -* tflite_support.metadata_writers.image_segmenter.metadata_writer.metadata_info.writer_utils.get_input_tensor_shape -* tflite_support.metadata_writers.image_segmenter.metadata_writer.metadata_info.writer_utils.get_input_tensor_types -* tflite_support.metadata_writers.image_segmenter.metadata_writer.metadata_info.writer_utils.get_output_tensor_names -* tflite_support.metadata_writers.image_segmenter.metadata_writer.metadata_info.writer_utils.get_output_tensor_types -* tflite_support.metadata_writers.image_segmenter.metadata_writer.metadata_info.writer_utils.get_tokenizer_associated_files -* tflite_support.metadata_writers.image_segmenter.metadata_writer.metadata_info.writer_utils.load_file -* tflite_support.metadata_writers.image_segmenter.metadata_writer.metadata_info.writer_utils.save_file -* tflite_support.metadata_writers.image_segmenter.metadata_writer.writer_utils -* tflite_support.metadata_writers.image_segmenter.metadata_writer.writer_utils.compute_flat_size -* tflite_support.metadata_writers.image_segmenter.metadata_writer.writer_utils.get_input_tensor_names -* tflite_support.metadata_writers.image_segmenter.metadata_writer.writer_utils.get_input_tensor_shape -* tflite_support.metadata_writers.image_segmenter.metadata_writer.writer_utils.get_input_tensor_types -* tflite_support.metadata_writers.image_segmenter.metadata_writer.writer_utils.get_output_tensor_names -* tflite_support.metadata_writers.image_segmenter.metadata_writer.writer_utils.get_output_tensor_types -* tflite_support.metadata_writers.image_segmenter.metadata_writer.writer_utils.get_tokenizer_associated_files -* tflite_support.metadata_writers.image_segmenter.metadata_writer.writer_utils.load_file -* tflite_support.metadata_writers.image_segmenter.metadata_writer.writer_utils.save_file -* tflite_support.metadata_writers.image_segmenter.writer_utils -* tflite_support.metadata_writers.image_segmenter.writer_utils.compute_flat_size -* tflite_support.metadata_writers.image_segmenter.writer_utils.get_input_tensor_names -* tflite_support.metadata_writers.image_segmenter.writer_utils.get_input_tensor_shape -* tflite_support.metadata_writers.image_segmenter.writer_utils.get_input_tensor_types -* tflite_support.metadata_writers.image_segmenter.writer_utils.get_output_tensor_names -* tflite_support.metadata_writers.image_segmenter.writer_utils.get_output_tensor_types -* tflite_support.metadata_writers.image_segmenter.writer_utils.get_tokenizer_associated_files -* tflite_support.metadata_writers.image_segmenter.writer_utils.load_file -* tflite_support.metadata_writers.image_segmenter.writer_utils.save_file -* tflite_support.metadata_writers.metadata_info -* tflite_support.metadata_writers.metadata_info.AssociatedFileMd -* tflite_support.metadata_writers.metadata_info.BertInputTensorsMd -* tflite_support.metadata_writers.metadata_info.BertTokenizerMd -* tflite_support.metadata_writers.metadata_info.CategoryTensorMd -* tflite_support.metadata_writers.metadata_info.ClassificationTensorMd -* tflite_support.metadata_writers.metadata_info.GeneralMd -* tflite_support.metadata_writers.metadata_info.InputAudioTensorMd -* tflite_support.metadata_writers.metadata_info.InputImageTensorMd -* tflite_support.metadata_writers.metadata_info.InputTextTensorMd -* tflite_support.metadata_writers.metadata_info.LabelFileMd -* tflite_support.metadata_writers.metadata_info.RegexTokenizerMd -* tflite_support.metadata_writers.metadata_info.ScoreCalibrationMd -* tflite_support.metadata_writers.metadata_info.SentencePieceTokenizerMd -* tflite_support.metadata_writers.metadata_info.TensorMd -* tflite_support.metadata_writers.metadata_info.writer_utils -* tflite_support.metadata_writers.metadata_info.writer_utils.compute_flat_size -* tflite_support.metadata_writers.metadata_info.writer_utils.get_input_tensor_names -* tflite_support.metadata_writers.metadata_info.writer_utils.get_input_tensor_shape -* tflite_support.metadata_writers.metadata_info.writer_utils.get_input_tensor_types -* tflite_support.metadata_writers.metadata_info.writer_utils.get_output_tensor_names -* tflite_support.metadata_writers.metadata_info.writer_utils.get_output_tensor_types -* tflite_support.metadata_writers.metadata_info.writer_utils.get_tokenizer_associated_files -* tflite_support.metadata_writers.metadata_info.writer_utils.load_file -* tflite_support.metadata_writers.metadata_info.writer_utils.save_file -* tflite_support.metadata_writers.nl_classifier -* tflite_support.metadata_writers.nl_classifier.MetadataWriter -* tflite_support.metadata_writers.nl_classifier.metadata_info -* tflite_support.metadata_writers.nl_classifier.metadata_info.AssociatedFileMd -* tflite_support.metadata_writers.nl_classifier.metadata_info.BertInputTensorsMd -* tflite_support.metadata_writers.nl_classifier.metadata_info.BertTokenizerMd -* tflite_support.metadata_writers.nl_classifier.metadata_info.CategoryTensorMd -* tflite_support.metadata_writers.nl_classifier.metadata_info.ClassificationTensorMd -* tflite_support.metadata_writers.nl_classifier.metadata_info.GeneralMd -* tflite_support.metadata_writers.nl_classifier.metadata_info.InputAudioTensorMd -* tflite_support.metadata_writers.nl_classifier.metadata_info.InputImageTensorMd -* tflite_support.metadata_writers.nl_classifier.metadata_info.InputTextTensorMd -* tflite_support.metadata_writers.nl_classifier.metadata_info.LabelFileMd -* tflite_support.metadata_writers.nl_classifier.metadata_info.RegexTokenizerMd -* tflite_support.metadata_writers.nl_classifier.metadata_info.ScoreCalibrationMd -* tflite_support.metadata_writers.nl_classifier.metadata_info.SentencePieceTokenizerMd -* tflite_support.metadata_writers.nl_classifier.metadata_info.TensorMd -* tflite_support.metadata_writers.nl_classifier.metadata_info.writer_utils -* tflite_support.metadata_writers.nl_classifier.metadata_info.writer_utils.compute_flat_size -* tflite_support.metadata_writers.nl_classifier.metadata_info.writer_utils.get_input_tensor_names -* tflite_support.metadata_writers.nl_classifier.metadata_info.writer_utils.get_input_tensor_shape -* tflite_support.metadata_writers.nl_classifier.metadata_info.writer_utils.get_input_tensor_types -* tflite_support.metadata_writers.nl_classifier.metadata_info.writer_utils.get_output_tensor_names -* tflite_support.metadata_writers.nl_classifier.metadata_info.writer_utils.get_output_tensor_types -* tflite_support.metadata_writers.nl_classifier.metadata_info.writer_utils.get_tokenizer_associated_files -* tflite_support.metadata_writers.nl_classifier.metadata_info.writer_utils.load_file -* tflite_support.metadata_writers.nl_classifier.metadata_info.writer_utils.save_file -* tflite_support.metadata_writers.nl_classifier.metadata_writer -* tflite_support.metadata_writers.nl_classifier.metadata_writer.MetadataWriter -* tflite_support.metadata_writers.nl_classifier.metadata_writer.metadata_info -* tflite_support.metadata_writers.nl_classifier.metadata_writer.metadata_info.AssociatedFileMd -* tflite_support.metadata_writers.nl_classifier.metadata_writer.metadata_info.BertInputTensorsMd -* tflite_support.metadata_writers.nl_classifier.metadata_writer.metadata_info.BertTokenizerMd -* tflite_support.metadata_writers.nl_classifier.metadata_writer.metadata_info.CategoryTensorMd -* tflite_support.metadata_writers.nl_classifier.metadata_writer.metadata_info.ClassificationTensorMd -* tflite_support.metadata_writers.nl_classifier.metadata_writer.metadata_info.GeneralMd -* tflite_support.metadata_writers.nl_classifier.metadata_writer.metadata_info.InputAudioTensorMd -* tflite_support.metadata_writers.nl_classifier.metadata_writer.metadata_info.InputImageTensorMd -* tflite_support.metadata_writers.nl_classifier.metadata_writer.metadata_info.InputTextTensorMd -* tflite_support.metadata_writers.nl_classifier.metadata_writer.metadata_info.LabelFileMd -* tflite_support.metadata_writers.nl_classifier.metadata_writer.metadata_info.RegexTokenizerMd -* tflite_support.metadata_writers.nl_classifier.metadata_writer.metadata_info.ScoreCalibrationMd -* tflite_support.metadata_writers.nl_classifier.metadata_writer.metadata_info.SentencePieceTokenizerMd -* tflite_support.metadata_writers.nl_classifier.metadata_writer.metadata_info.TensorMd -* tflite_support.metadata_writers.nl_classifier.metadata_writer.metadata_info.writer_utils -* tflite_support.metadata_writers.nl_classifier.metadata_writer.metadata_info.writer_utils.compute_flat_size -* tflite_support.metadata_writers.nl_classifier.metadata_writer.metadata_info.writer_utils.get_input_tensor_names -* tflite_support.metadata_writers.nl_classifier.metadata_writer.metadata_info.writer_utils.get_input_tensor_shape -* tflite_support.metadata_writers.nl_classifier.metadata_writer.metadata_info.writer_utils.get_input_tensor_types -* tflite_support.metadata_writers.nl_classifier.metadata_writer.metadata_info.writer_utils.get_output_tensor_names -* tflite_support.metadata_writers.nl_classifier.metadata_writer.metadata_info.writer_utils.get_output_tensor_types -* tflite_support.metadata_writers.nl_classifier.metadata_writer.metadata_info.writer_utils.get_tokenizer_associated_files -* tflite_support.metadata_writers.nl_classifier.metadata_writer.metadata_info.writer_utils.load_file -* tflite_support.metadata_writers.nl_classifier.metadata_writer.metadata_info.writer_utils.save_file -* tflite_support.metadata_writers.nl_classifier.metadata_writer.writer_utils -* tflite_support.metadata_writers.nl_classifier.metadata_writer.writer_utils.compute_flat_size -* tflite_support.metadata_writers.nl_classifier.metadata_writer.writer_utils.get_input_tensor_names -* tflite_support.metadata_writers.nl_classifier.metadata_writer.writer_utils.get_input_tensor_shape -* tflite_support.metadata_writers.nl_classifier.metadata_writer.writer_utils.get_input_tensor_types -* tflite_support.metadata_writers.nl_classifier.metadata_writer.writer_utils.get_output_tensor_names -* tflite_support.metadata_writers.nl_classifier.metadata_writer.writer_utils.get_output_tensor_types -* tflite_support.metadata_writers.nl_classifier.metadata_writer.writer_utils.get_tokenizer_associated_files -* tflite_support.metadata_writers.nl_classifier.metadata_writer.writer_utils.load_file -* tflite_support.metadata_writers.nl_classifier.metadata_writer.writer_utils.save_file -* tflite_support.metadata_writers.nl_classifier.writer_utils -* tflite_support.metadata_writers.nl_classifier.writer_utils.compute_flat_size -* tflite_support.metadata_writers.nl_classifier.writer_utils.get_input_tensor_names -* tflite_support.metadata_writers.nl_classifier.writer_utils.get_input_tensor_shape -* tflite_support.metadata_writers.nl_classifier.writer_utils.get_input_tensor_types -* tflite_support.metadata_writers.nl_classifier.writer_utils.get_output_tensor_names -* tflite_support.metadata_writers.nl_classifier.writer_utils.get_output_tensor_types -* tflite_support.metadata_writers.nl_classifier.writer_utils.get_tokenizer_associated_files -* tflite_support.metadata_writers.nl_classifier.writer_utils.load_file -* tflite_support.metadata_writers.nl_classifier.writer_utils.save_file -* tflite_support.metadata_writers.object_detector -* tflite_support.metadata_writers.object_detector.MetadataWriter -* tflite_support.metadata_writers.object_detector.metadata_info -* tflite_support.metadata_writers.object_detector.metadata_info.AssociatedFileMd -* tflite_support.metadata_writers.object_detector.metadata_info.BertInputTensorsMd -* tflite_support.metadata_writers.object_detector.metadata_info.BertTokenizerMd -* tflite_support.metadata_writers.object_detector.metadata_info.CategoryTensorMd -* tflite_support.metadata_writers.object_detector.metadata_info.ClassificationTensorMd -* tflite_support.metadata_writers.object_detector.metadata_info.GeneralMd -* tflite_support.metadata_writers.object_detector.metadata_info.InputAudioTensorMd -* tflite_support.metadata_writers.object_detector.metadata_info.InputImageTensorMd -* tflite_support.metadata_writers.object_detector.metadata_info.InputTextTensorMd -* tflite_support.metadata_writers.object_detector.metadata_info.LabelFileMd -* tflite_support.metadata_writers.object_detector.metadata_info.RegexTokenizerMd -* tflite_support.metadata_writers.object_detector.metadata_info.ScoreCalibrationMd -* tflite_support.metadata_writers.object_detector.metadata_info.SentencePieceTokenizerMd -* tflite_support.metadata_writers.object_detector.metadata_info.TensorMd -* tflite_support.metadata_writers.object_detector.metadata_info.writer_utils -* tflite_support.metadata_writers.object_detector.metadata_info.writer_utils.compute_flat_size -* tflite_support.metadata_writers.object_detector.metadata_info.writer_utils.get_input_tensor_names -* tflite_support.metadata_writers.object_detector.metadata_info.writer_utils.get_input_tensor_shape -* tflite_support.metadata_writers.object_detector.metadata_info.writer_utils.get_input_tensor_types -* tflite_support.metadata_writers.object_detector.metadata_info.writer_utils.get_output_tensor_names -* tflite_support.metadata_writers.object_detector.metadata_info.writer_utils.get_output_tensor_types -* tflite_support.metadata_writers.object_detector.metadata_info.writer_utils.get_tokenizer_associated_files -* tflite_support.metadata_writers.object_detector.metadata_info.writer_utils.load_file -* tflite_support.metadata_writers.object_detector.metadata_info.writer_utils.save_file -* tflite_support.metadata_writers.object_detector.metadata_writer -* tflite_support.metadata_writers.object_detector.metadata_writer.MetadataWriter -* tflite_support.metadata_writers.object_detector.metadata_writer.metadata_info -* tflite_support.metadata_writers.object_detector.metadata_writer.metadata_info.AssociatedFileMd -* tflite_support.metadata_writers.object_detector.metadata_writer.metadata_info.BertInputTensorsMd -* tflite_support.metadata_writers.object_detector.metadata_writer.metadata_info.BertTokenizerMd -* tflite_support.metadata_writers.object_detector.metadata_writer.metadata_info.CategoryTensorMd -* tflite_support.metadata_writers.object_detector.metadata_writer.metadata_info.ClassificationTensorMd -* tflite_support.metadata_writers.object_detector.metadata_writer.metadata_info.GeneralMd -* tflite_support.metadata_writers.object_detector.metadata_writer.metadata_info.InputAudioTensorMd -* tflite_support.metadata_writers.object_detector.metadata_writer.metadata_info.InputImageTensorMd -* tflite_support.metadata_writers.object_detector.metadata_writer.metadata_info.InputTextTensorMd -* tflite_support.metadata_writers.object_detector.metadata_writer.metadata_info.LabelFileMd -* tflite_support.metadata_writers.object_detector.metadata_writer.metadata_info.RegexTokenizerMd -* tflite_support.metadata_writers.object_detector.metadata_writer.metadata_info.ScoreCalibrationMd -* tflite_support.metadata_writers.object_detector.metadata_writer.metadata_info.SentencePieceTokenizerMd -* tflite_support.metadata_writers.object_detector.metadata_writer.metadata_info.TensorMd -* tflite_support.metadata_writers.object_detector.metadata_writer.metadata_info.writer_utils -* tflite_support.metadata_writers.object_detector.metadata_writer.metadata_info.writer_utils.compute_flat_size -* tflite_support.metadata_writers.object_detector.metadata_writer.metadata_info.writer_utils.get_input_tensor_names -* tflite_support.metadata_writers.object_detector.metadata_writer.metadata_info.writer_utils.get_input_tensor_shape -* tflite_support.metadata_writers.object_detector.metadata_writer.metadata_info.writer_utils.get_input_tensor_types -* tflite_support.metadata_writers.object_detector.metadata_writer.metadata_info.writer_utils.get_output_tensor_names -* tflite_support.metadata_writers.object_detector.metadata_writer.metadata_info.writer_utils.get_output_tensor_types -* tflite_support.metadata_writers.object_detector.metadata_writer.metadata_info.writer_utils.get_tokenizer_associated_files -* tflite_support.metadata_writers.object_detector.metadata_writer.metadata_info.writer_utils.load_file -* tflite_support.metadata_writers.object_detector.metadata_writer.metadata_info.writer_utils.save_file -* tflite_support.metadata_writers.object_detector.metadata_writer.writer_utils -* tflite_support.metadata_writers.object_detector.metadata_writer.writer_utils.compute_flat_size -* tflite_support.metadata_writers.object_detector.metadata_writer.writer_utils.get_input_tensor_names -* tflite_support.metadata_writers.object_detector.metadata_writer.writer_utils.get_input_tensor_shape -* tflite_support.metadata_writers.object_detector.metadata_writer.writer_utils.get_input_tensor_types -* tflite_support.metadata_writers.object_detector.metadata_writer.writer_utils.get_output_tensor_names -* tflite_support.metadata_writers.object_detector.metadata_writer.writer_utils.get_output_tensor_types -* tflite_support.metadata_writers.object_detector.metadata_writer.writer_utils.get_tokenizer_associated_files -* tflite_support.metadata_writers.object_detector.metadata_writer.writer_utils.load_file -* tflite_support.metadata_writers.object_detector.metadata_writer.writer_utils.save_file -* tflite_support.metadata_writers.object_detector.writer_utils -* tflite_support.metadata_writers.object_detector.writer_utils.compute_flat_size -* tflite_support.metadata_writers.object_detector.writer_utils.get_input_tensor_names -* tflite_support.metadata_writers.object_detector.writer_utils.get_input_tensor_shape -* tflite_support.metadata_writers.object_detector.writer_utils.get_input_tensor_types -* tflite_support.metadata_writers.object_detector.writer_utils.get_output_tensor_names -* tflite_support.metadata_writers.object_detector.writer_utils.get_output_tensor_types -* tflite_support.metadata_writers.object_detector.writer_utils.get_tokenizer_associated_files -* tflite_support.metadata_writers.object_detector.writer_utils.load_file -* tflite_support.metadata_writers.object_detector.writer_utils.save_file -* tflite_support.metadata_writers.writer_utils -* tflite_support.metadata_writers.writer_utils.compute_flat_size -* tflite_support.metadata_writers.writer_utils.get_input_tensor_names -* tflite_support.metadata_writers.writer_utils.get_input_tensor_shape -* tflite_support.metadata_writers.writer_utils.get_input_tensor_types -* tflite_support.metadata_writers.writer_utils.get_output_tensor_names -* tflite_support.metadata_writers.writer_utils.get_output_tensor_types -* tflite_support.metadata_writers.writer_utils.get_tokenizer_associated_files -* tflite_support.metadata_writers.writer_utils.load_file -* tflite_support.metadata_writers.writer_utils.save_file -* tflite_support.task -* tflite_support.task.audio -* tflite_support.task.audio.AudioClassifier -* tflite_support.task.audio.AudioClassifierOptions -* tflite_support.task.audio.AudioEmbedder -* tflite_support.task.audio.AudioEmbedderOptions -* tflite_support.task.audio.AudioFormat -* tflite_support.task.audio.AudioRecord -* tflite_support.task.audio.TensorAudio -* tflite_support.task.core -* tflite_support.task.core.BaseOptions -* tflite_support.task.processor -* tflite_support.task.processor.BertCluAnnotationOptions -* tflite_support.task.processor.BoundingBox -* tflite_support.task.processor.CategoricalSlot -* tflite_support.task.processor.Category -* tflite_support.task.processor.ClassificationOptions -* tflite_support.task.processor.ClassificationResult -* tflite_support.task.processor.Classifications -* tflite_support.task.processor.CluRequest -* tflite_support.task.processor.CluResponse -* tflite_support.task.processor.ColoredLabel -* tflite_support.task.processor.ConfidenceMask -* tflite_support.task.processor.Detection -* tflite_support.task.processor.DetectionOptions -* tflite_support.task.processor.DetectionResult -* tflite_support.task.processor.Embedding -* tflite_support.task.processor.EmbeddingOptions -* tflite_support.task.processor.EmbeddingResult -* tflite_support.task.processor.FeatureVector -* tflite_support.task.processor.Mention -* tflite_support.task.processor.MentionedSlot -* tflite_support.task.processor.NearestNeighbor -* tflite_support.task.processor.OutputType -* tflite_support.task.processor.Pos -* tflite_support.task.processor.QaAnswer -* tflite_support.task.processor.QuestionAnswererResult -* tflite_support.task.processor.SearchOptions -* tflite_support.task.processor.SearchResult -* tflite_support.task.processor.Segmentation -* tflite_support.task.processor.SegmentationOptions -* tflite_support.task.processor.SegmentationResult -* tflite_support.task.text -* tflite_support.task.text.BertCluAnnotator -* tflite_support.task.text.BertCluAnnotatorOptions -* tflite_support.task.text.BertNLClassifier -* tflite_support.task.text.BertNLClassifierOptions -* tflite_support.task.text.BertQuestionAnswerer -* tflite_support.task.text.BertQuestionAnswererOptions -* tflite_support.task.text.NLClassifier -* tflite_support.task.text.NLClassifierOptions -* tflite_support.task.text.TextEmbedder -* tflite_support.task.text.TextEmbedderOptions -* tflite_support.task.text.TextSearcher -* tflite_support.task.text.TextSearcherOptions -* tflite_support.task.vision -* tflite_support.task.vision.ImageClassifier -* tflite_support.task.vision.ImageClassifierOptions -* tflite_support.task.vision.ImageEmbedder -* tflite_support.task.vision.ImageEmbedderOptions -* tflite_support.task.vision.ImageSearcher -* tflite_support.task.vision.ImageSearcherOptions -* tflite_support.task.vision.ImageSegmenter -* tflite_support.task.vision.ImageSegmenterOptions -* tflite_support.task.vision.ObjectDetector -* tflite_support.task.vision.ObjectDetectorOptions -* tflite_support.task.vision.TensorImage diff --git a/site/en/lite/api_docs/python/tflite_support/metadata.md b/site/en/lite/api_docs/python/tflite_support/metadata.md deleted file mode 100644 index 5785c8c933..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata.md +++ /dev/null @@ -1,45 +0,0 @@ -page_type: reference -description: TensorFlow Lite metadata tools. - - - - - - -
- - -
- -# Module: tflite_support.metadata - - - - - - - - - -TensorFlow Lite metadata tools. - - - -## Classes - -[`class MetadataDisplayer`](../tflite_support/metadata/MetadataDisplayer): Displays metadata and associated file info in human-readable format. - -[`class MetadataPopulator`](../tflite_support/metadata/MetadataPopulator): Packs metadata and associated files into TensorFlow Lite model file. - -## Functions - -[`convert_to_json(...)`](../tflite_support/metadata/convert_to_json): Converts the metadata into a json string. - -[`get_metadata_buffer(...)`](../tflite_support/metadata/get_metadata_buffer): Returns the metadata in the model file as a buffer. - -[`get_path_to_datafile(...)`](../tflite_support/metadata/get_path_to_datafile): Gets the path to the specified file in the data dependencies. diff --git a/site/en/lite/api_docs/python/tflite_support/metadata/MetadataDisplayer.md b/site/en/lite/api_docs/python/tflite_support/metadata/MetadataDisplayer.md deleted file mode 100644 index 60746e88b8..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata/MetadataDisplayer.md +++ /dev/null @@ -1,300 +0,0 @@ -page_type: reference -description: Displays metadata and associated file info in human-readable format. - - - - - - -
- - - - - - - - - -
- -# tflite_support.metadata.MetadataDisplayer - - - - - - - - - -Displays metadata and associated file info in human-readable format. - - - - - - - - - - - - - - - - - - - - - - - -
-`model_buffer` - -valid buffer of the model file. -
-`metadata_buffer` - -valid buffer of the metadata file. -
-`associated_file_list` - -list of associate files in the model file. -
- - - -## Methods - -

get_associated_file_buffer

- -View source - - - -Get the specified associated file content in bytearray. - - - - - - - - - - - -
Args
-`filename` - -name of the file to be extracted. -
- - - - - - - - - - - -
Returns
-The file content in bytearray. -
- - - - - - - - - - - - -
Raises
-`ValueError` - -if the file does not exist in the model. -
- - - -

get_metadata_buffer

- -View source - - - -Get the metadata buffer in bytearray out from the model. - - -

get_metadata_json

- -View source - - - -Converts the metadata into a json string. - - -

get_packed_associated_file_list

- -View source - - - -Returns a list of associated files that are packed in the model. - - - - - - - - - - -
Returns
-A name list of associated files. -
- - - -

with_model_buffer

- -View source - - - -Creates a MetadataDisplayer object for a file buffer. - - - - - - - - - - - -
Args
-`model_buffer` - -TensorFlow Lite model buffer in bytearray. -
- - - - - - - - - - - -
Returns
-MetadataDisplayer object. -
- - - -

with_model_file

- -View source - - - -Creates a MetadataDisplayer object for the model file. - - - - - - - - - - - -
Args
-`model_file` - -valid path to a TensorFlow Lite model file. -
- - - - - - - - - - - -
Returns
-MetadataDisplayer object. -
- - - - - - - - - - - - - - - -
Raises
-`IOError` - -File not found. -
-`ValueError` - -The model does not have metadata. -
diff --git a/site/en/lite/api_docs/python/tflite_support/metadata/MetadataPopulator.md b/site/en/lite/api_docs/python/tflite_support/metadata/MetadataPopulator.md deleted file mode 100644 index d8cb795e0c..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata/MetadataPopulator.md +++ /dev/null @@ -1,673 +0,0 @@ -page_type: reference -description: Packs metadata and associated files into TensorFlow Lite model file. - - - - - - -
- - - - - - - - - - - - - - - - - -
- -# tflite_support.metadata.MetadataPopulator - - - - - - - - - -Packs metadata and associated files into TensorFlow Lite model file. - - - - - - - -MetadataPopulator can be used to populate metadata and model associated files -into a model file or a model buffer (in bytearray). It can also help to -inspect list of files that have been packed into the model or are supposed to -be packed into the model. - -The metadata file (or buffer) should be generated based on the metadata -schema: -third_party/tensorflow/lite/schema/metadata_schema.fbs - -#### Example usage: - - -Populate matadata and label file into an image classifier model. - -First, based on metadata_schema.fbs, generate the metadata for this image -classifer model using Flatbuffers API. Attach the label file onto the ouput -tensor (the tensor of probabilities) in the metadata. - -Then, pack the metadata and label file into the model as follows. - - ```python - # Populating a metadata file (or a metadta buffer) and associated files to - a model file: - populator = MetadataPopulator.with_model_file(model_file) - # For metadata buffer (bytearray read from the metadata file), use: - # populator.load_metadata_buffer(metadata_buf) - populator.load_metadata_file(metadata_file) - populator.load_associated_files([label.txt]) - # For associated file buffer (bytearray read from the file), use: - # populator.load_associated_file_buffers({"label.txt": b"file content"}) - populator.populate() - - # Populating a metadata file (or a metadta buffer) and associated files to - a model buffer: - populator = MetadataPopulator.with_model_buffer(model_buf) - populator.load_metadata_file(metadata_file) - populator.load_associated_files([label.txt]) - populator.populate() - # Writing the updated model buffer into a file. - updated_model_buf = populator.get_model_buffer() - with open("updated_model.tflite", "wb") as f: - f.write(updated_model_buf) - - # Transferring metadata and associated files from another TFLite model: - populator = MetadataPopulator.with_model_buffer(model_buf) - populator_dst.load_metadata_and_associated_files(src_model_buf) - populator_dst.populate() - updated_model_buf = populator.get_model_buffer() - with open("updated_model.tflite", "wb") as f: - f.write(updated_model_buf) - ``` - -Note that existing metadata buffer (if applied) will be overridden by the new -metadata buffer. - - - - - - - - - - -
-`model_file` - -valid path to a TensorFlow Lite model file. -
- - - - - - - - - - - - - - - -
-`IOError` - -File not found. -
-`ValueError` - -the model does not have the expected flatbuffer identifer. -
- - - -## Methods - -

get_model_buffer

- -View source - - - -Gets the buffer of the model with packed metadata and associated files. - - - - - - - - - - -
Returns
-Model buffer (in bytearray). -
- - - -

get_packed_associated_file_list

- -View source - - - -Gets a list of associated files packed to the model file. - - - - - - - - - - -
Returns
-List of packed associated files. -
- - - -

get_recorded_associated_file_list

- -View source - - - -Gets a list of associated files recorded in metadata of the model file. - -Associated files may be attached to a model, a subgraph, or an input/output -tensor. - - - - - - - - - -
Returns
-List of recorded associated files. -
- - - -

load_associated_file_buffers

- -View source - - - -Loads the associated file buffers (in bytearray) to be populated. - - - - - - - - - - - -
Args
-`associated_files` - -a dictionary of associated file names and corresponding -file buffers, such as {"file.txt": b"file content"}. If pass in file - paths for the file name, only the basename will be populated. -
- - - -

load_associated_files

- -View source - - - -Loads associated files that to be concatenated after the model file. - - - - - - - - - - - -
Args
-`associated_files` - -list of file paths. -
- - - - - - - - - - - - -
Raises
-`IOError` - - File not found. -
- - - -

load_metadata_and_associated_files

- -View source - - - -Loads the metadata and associated files from another model buffer. - - - - - - - - - - - -
Args
-`src_model_buf` - -source model buffer (in bytearray) with metadata and -associated files. -
- - - -

load_metadata_buffer

- -View source - - - -Loads the metadata buffer (in bytearray) to be populated. - - - - - - - - - - - -
Args
-`metadata_buf` - -metadata buffer (in bytearray) to be populated. -
- - - - - - - - - - - - - - - - - - - - - - - - -
Raises
-`ValueError` - -The metadata to be populated is empty. -
-`ValueError` - -The metadata does not have the expected flatbuffer identifer. -
-`ValueError` - -Cannot get minimum metadata parser version. -
-`ValueError` - -The number of SubgraphMetadata is not 1. -
-`ValueError` - -The number of input/output tensors does not match the number -of input/output tensor metadata. -
- - - -

load_metadata_file

- -View source - - - -Loads the metadata file to be populated. - - - - - - - - - - - -
Args
-`metadata_file` - -path to the metadata file to be populated. -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Raises
-`IOError` - -File not found. -
-`ValueError` - -The metadata to be populated is empty. -
-`ValueError` - -The metadata does not have the expected flatbuffer identifer. -
-`ValueError` - -Cannot get minimum metadata parser version. -
-`ValueError` - -The number of SubgraphMetadata is not 1. -
-`ValueError` - -The number of input/output tensors does not match the number -of input/output tensor metadata. -
- - - -

populate

- -View source - - - -Populates loaded metadata and associated files into the model file. - - -

with_model_buffer

- -View source - - - -Creates a MetadataPopulator object that populates data to a model buffer. - - - - - - - - - - - -
Args
-`model_buf` - -TensorFlow Lite model buffer in bytearray. -
- - - - - - - - - - - -
Returns
-A MetadataPopulator(_MetadataPopulatorWithBuffer) object. -
- - - - - - - - - - - - -
Raises
-`ValueError` - -the model does not have the expected flatbuffer identifer. -
- - - -

with_model_file

- -View source - - - -Creates a MetadataPopulator object that populates data to a model file. - - - - - - - - - - - -
Args
-`model_file` - -valid path to a TensorFlow Lite model file. -
- - - - - - - - - - - -
Returns
-MetadataPopulator object. -
- - - - - - - - - - - - - - - -
Raises
-`IOError` - -File not found. -
-`ValueError` - -the model does not have the expected flatbuffer identifer. -
- - - - - - - - - - - - - - - - - - - - - - -
-METADATA_FIELD_NAME - -`'TFLITE_METADATA'` -
-METADATA_FILE_IDENTIFIER - -`b'M001'` -
-TFLITE_FILE_IDENTIFIER - -`b'TFL3'` -
diff --git a/site/en/lite/api_docs/python/tflite_support/metadata/convert_to_json.md b/site/en/lite/api_docs/python/tflite_support/metadata/convert_to_json.md deleted file mode 100644 index 2feb5b276b..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata/convert_to_json.md +++ /dev/null @@ -1,87 +0,0 @@ -page_type: reference -description: Converts the metadata into a json string. - - - - - - -
- - -
- -# tflite_support.metadata.convert_to_json - - - - - - - - - -Converts the metadata into a json string. - - - - - - - - - - - - - - - - - - -
-`metadata_buffer` - -valid metadata buffer in bytes. -
- - - - - - - - - - - -
-Metadata in JSON format. -
- - - - - - - - - - - - -
-`ValueError` - -error occured when parsing the metadata schema file. -
diff --git a/site/en/lite/api_docs/python/tflite_support/metadata/get_metadata_buffer.md b/site/en/lite/api_docs/python/tflite_support/metadata/get_metadata_buffer.md deleted file mode 100644 index a737a5d56e..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata/get_metadata_buffer.md +++ /dev/null @@ -1,70 +0,0 @@ -page_type: reference -description: Returns the metadata in the model file as a buffer. - - - - - - -
- - -
- -# tflite_support.metadata.get_metadata_buffer - - - - - - - - - -Returns the metadata in the model file as a buffer. - - - - - - - - - - - - - - - - - - -
-`model_buf` - -valid buffer of the model file. -
- - - - - - - - - - - -
-Metadata buffer. Returns `None` if the model does not have metadata. -
diff --git a/site/en/lite/api_docs/python/tflite_support/metadata/get_path_to_datafile.md b/site/en/lite/api_docs/python/tflite_support/metadata/get_path_to_datafile.md deleted file mode 100644 index e5b29803b0..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata/get_path_to_datafile.md +++ /dev/null @@ -1,75 +0,0 @@ -page_type: reference -description: Gets the path to the specified file in the data dependencies. - - - - - - -
- - -
- -# tflite_support.metadata.get_path_to_datafile - - - - - - - - - -Gets the path to the specified file in the data dependencies. - - - - - - - - -The path is relative to the file calling the function. - -It's a simple replacement of -"tensorflow.python.platform.resource_loader.get_path_to_datafile". - - - - - - - - - - -
-`path` - -a string resource path relative to the calling file. -
- - - - - - - - - - - -
-The path to the specified file present in the data attribute of py_test -or py_binary. -
diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated.md deleted file mode 100644 index e55d4dfccb..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated.md +++ /dev/null @@ -1,393 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# Module: tflite_support.metadata_schema_py_generated - - - - - - - - - - - - - -## Classes - -[`class AssociatedFile`](../tflite_support/metadata_schema_py_generated/AssociatedFile) - -[`class AssociatedFileT`](../tflite_support/metadata_schema_py_generated/AssociatedFileT) - -[`class AssociatedFileType`](../tflite_support/metadata_schema_py_generated/AssociatedFileType) - -[`class AudioProperties`](../tflite_support/metadata_schema_py_generated/AudioProperties) - -[`class AudioPropertiesT`](../tflite_support/metadata_schema_py_generated/AudioPropertiesT) - -[`class BertTokenizerOptions`](../tflite_support/metadata_schema_py_generated/BertTokenizerOptions) - -[`class BertTokenizerOptionsT`](../tflite_support/metadata_schema_py_generated/BertTokenizerOptionsT) - -[`class BoundingBoxProperties`](../tflite_support/metadata_schema_py_generated/BoundingBoxProperties) - -[`class BoundingBoxPropertiesT`](../tflite_support/metadata_schema_py_generated/BoundingBoxPropertiesT) - -[`class BoundingBoxType`](../tflite_support/metadata_schema_py_generated/BoundingBoxType) - -[`class ColorSpaceType`](../tflite_support/metadata_schema_py_generated/ColorSpaceType) - -[`class Content`](../tflite_support/metadata_schema_py_generated/Content) - -[`class ContentProperties`](../tflite_support/metadata_schema_py_generated/ContentProperties) - -[`class ContentT`](../tflite_support/metadata_schema_py_generated/ContentT) - -[`class CoordinateType`](../tflite_support/metadata_schema_py_generated/CoordinateType) - -[`class CustomMetadata`](../tflite_support/metadata_schema_py_generated/CustomMetadata) - -[`class CustomMetadataT`](../tflite_support/metadata_schema_py_generated/CustomMetadataT) - -[`class FeatureProperties`](../tflite_support/metadata_schema_py_generated/FeatureProperties) - -[`class FeaturePropertiesT`](../tflite_support/metadata_schema_py_generated/FeaturePropertiesT) - -[`class ImageProperties`](../tflite_support/metadata_schema_py_generated/ImageProperties) - -[`class ImagePropertiesT`](../tflite_support/metadata_schema_py_generated/ImagePropertiesT) - -[`class ImageSize`](../tflite_support/metadata_schema_py_generated/ImageSize) - -[`class ImageSizeT`](../tflite_support/metadata_schema_py_generated/ImageSizeT) - -[`class ModelMetadata`](../tflite_support/metadata_schema_py_generated/ModelMetadata) - -[`class ModelMetadataT`](../tflite_support/metadata_schema_py_generated/ModelMetadataT) - -[`class NormalizationOptions`](../tflite_support/metadata_schema_py_generated/NormalizationOptions) - -[`class NormalizationOptionsT`](../tflite_support/metadata_schema_py_generated/NormalizationOptionsT) - -[`class ProcessUnit`](../tflite_support/metadata_schema_py_generated/ProcessUnit) - -[`class ProcessUnitOptions`](../tflite_support/metadata_schema_py_generated/ProcessUnitOptions) - -[`class ProcessUnitT`](../tflite_support/metadata_schema_py_generated/ProcessUnitT) - -[`class RegexTokenizerOptions`](../tflite_support/metadata_schema_py_generated/RegexTokenizerOptions) - -[`class RegexTokenizerOptionsT`](../tflite_support/metadata_schema_py_generated/RegexTokenizerOptionsT) - -[`class ScoreCalibrationOptions`](../tflite_support/metadata_schema_py_generated/ScoreCalibrationOptions) - -[`class ScoreCalibrationOptionsT`](../tflite_support/metadata_schema_py_generated/ScoreCalibrationOptionsT) - -[`class ScoreThresholdingOptions`](../tflite_support/metadata_schema_py_generated/ScoreThresholdingOptions) - -[`class ScoreThresholdingOptionsT`](../tflite_support/metadata_schema_py_generated/ScoreThresholdingOptionsT) - -[`class ScoreTransformationType`](../tflite_support/metadata_schema_py_generated/ScoreTransformationType) - -[`class SentencePieceTokenizerOptions`](../tflite_support/metadata_schema_py_generated/SentencePieceTokenizerOptions) - -[`class SentencePieceTokenizerOptionsT`](../tflite_support/metadata_schema_py_generated/SentencePieceTokenizerOptionsT) - -[`class Stats`](../tflite_support/metadata_schema_py_generated/Stats) - -[`class StatsT`](../tflite_support/metadata_schema_py_generated/StatsT) - -[`class SubGraphMetadata`](../tflite_support/metadata_schema_py_generated/SubGraphMetadata) - -[`class SubGraphMetadataT`](../tflite_support/metadata_schema_py_generated/SubGraphMetadataT) - -[`class TensorGroup`](../tflite_support/metadata_schema_py_generated/TensorGroup) - -[`class TensorGroupT`](../tflite_support/metadata_schema_py_generated/TensorGroupT) - -[`class TensorMetadata`](../tflite_support/metadata_schema_py_generated/TensorMetadata) - -[`class TensorMetadataT`](../tflite_support/metadata_schema_py_generated/TensorMetadataT) - -[`class ValueRange`](../tflite_support/metadata_schema_py_generated/ValueRange) - -[`class ValueRangeT`](../tflite_support/metadata_schema_py_generated/ValueRangeT) - -## Functions - -[`AssociatedFileAddDescription(...)`](../tflite_support/metadata_schema_py_generated/AssociatedFileAddDescription) - -[`AssociatedFileAddLocale(...)`](../tflite_support/metadata_schema_py_generated/AssociatedFileAddLocale) - -[`AssociatedFileAddName(...)`](../tflite_support/metadata_schema_py_generated/AssociatedFileAddName) - -[`AssociatedFileAddType(...)`](../tflite_support/metadata_schema_py_generated/AssociatedFileAddType) - -[`AssociatedFileAddVersion(...)`](../tflite_support/metadata_schema_py_generated/AssociatedFileAddVersion) - -[`AssociatedFileEnd(...)`](../tflite_support/metadata_schema_py_generated/AssociatedFileEnd) - -[`AssociatedFileStart(...)`](../tflite_support/metadata_schema_py_generated/AssociatedFileStart) - -[`AudioPropertiesAddChannels(...)`](../tflite_support/metadata_schema_py_generated/AudioPropertiesAddChannels) - -[`AudioPropertiesAddSampleRate(...)`](../tflite_support/metadata_schema_py_generated/AudioPropertiesAddSampleRate) - -[`AudioPropertiesEnd(...)`](../tflite_support/metadata_schema_py_generated/AudioPropertiesEnd) - -[`AudioPropertiesStart(...)`](../tflite_support/metadata_schema_py_generated/AudioPropertiesStart) - -[`BertTokenizerOptionsAddVocabFile(...)`](../tflite_support/metadata_schema_py_generated/BertTokenizerOptionsAddVocabFile) - -[`BertTokenizerOptionsEnd(...)`](../tflite_support/metadata_schema_py_generated/BertTokenizerOptionsEnd) - -[`BertTokenizerOptionsStart(...)`](../tflite_support/metadata_schema_py_generated/BertTokenizerOptionsStart) - -[`BertTokenizerOptionsStartVocabFileVector(...)`](../tflite_support/metadata_schema_py_generated/BertTokenizerOptionsStartVocabFileVector) - -[`BoundingBoxPropertiesAddCoordinateType(...)`](../tflite_support/metadata_schema_py_generated/BoundingBoxPropertiesAddCoordinateType) - -[`BoundingBoxPropertiesAddIndex(...)`](../tflite_support/metadata_schema_py_generated/BoundingBoxPropertiesAddIndex) - -[`BoundingBoxPropertiesAddType(...)`](../tflite_support/metadata_schema_py_generated/BoundingBoxPropertiesAddType) - -[`BoundingBoxPropertiesEnd(...)`](../tflite_support/metadata_schema_py_generated/BoundingBoxPropertiesEnd) - -[`BoundingBoxPropertiesStart(...)`](../tflite_support/metadata_schema_py_generated/BoundingBoxPropertiesStart) - -[`BoundingBoxPropertiesStartIndexVector(...)`](../tflite_support/metadata_schema_py_generated/BoundingBoxPropertiesStartIndexVector) - -[`ContentAddContentProperties(...)`](../tflite_support/metadata_schema_py_generated/ContentAddContentProperties) - -[`ContentAddContentPropertiesType(...)`](../tflite_support/metadata_schema_py_generated/ContentAddContentPropertiesType) - -[`ContentAddRange(...)`](../tflite_support/metadata_schema_py_generated/ContentAddRange) - -[`ContentEnd(...)`](../tflite_support/metadata_schema_py_generated/ContentEnd) - -[`ContentPropertiesCreator(...)`](../tflite_support/metadata_schema_py_generated/ContentPropertiesCreator) - -[`ContentStart(...)`](../tflite_support/metadata_schema_py_generated/ContentStart) - -[`CustomMetadataAddData(...)`](../tflite_support/metadata_schema_py_generated/CustomMetadataAddData) - -[`CustomMetadataAddName(...)`](../tflite_support/metadata_schema_py_generated/CustomMetadataAddName) - -[`CustomMetadataEnd(...)`](../tflite_support/metadata_schema_py_generated/CustomMetadataEnd) - -[`CustomMetadataStart(...)`](../tflite_support/metadata_schema_py_generated/CustomMetadataStart) - -[`CustomMetadataStartDataVector(...)`](../tflite_support/metadata_schema_py_generated/CustomMetadataStartDataVector) - -[`FeaturePropertiesEnd(...)`](../tflite_support/metadata_schema_py_generated/FeaturePropertiesEnd) - -[`FeaturePropertiesStart(...)`](../tflite_support/metadata_schema_py_generated/FeaturePropertiesStart) - -[`ImagePropertiesAddColorSpace(...)`](../tflite_support/metadata_schema_py_generated/ImagePropertiesAddColorSpace) - -[`ImagePropertiesAddDefaultSize(...)`](../tflite_support/metadata_schema_py_generated/ImagePropertiesAddDefaultSize) - -[`ImagePropertiesEnd(...)`](../tflite_support/metadata_schema_py_generated/ImagePropertiesEnd) - -[`ImagePropertiesStart(...)`](../tflite_support/metadata_schema_py_generated/ImagePropertiesStart) - -[`ImageSizeAddHeight(...)`](../tflite_support/metadata_schema_py_generated/ImageSizeAddHeight) - -[`ImageSizeAddWidth(...)`](../tflite_support/metadata_schema_py_generated/ImageSizeAddWidth) - -[`ImageSizeEnd(...)`](../tflite_support/metadata_schema_py_generated/ImageSizeEnd) - -[`ImageSizeStart(...)`](../tflite_support/metadata_schema_py_generated/ImageSizeStart) - -[`ModelMetadataAddAssociatedFiles(...)`](../tflite_support/metadata_schema_py_generated/ModelMetadataAddAssociatedFiles) - -[`ModelMetadataAddAuthor(...)`](../tflite_support/metadata_schema_py_generated/ModelMetadataAddAuthor) - -[`ModelMetadataAddDescription(...)`](../tflite_support/metadata_schema_py_generated/ModelMetadataAddDescription) - -[`ModelMetadataAddLicense(...)`](../tflite_support/metadata_schema_py_generated/ModelMetadataAddLicense) - -[`ModelMetadataAddMinParserVersion(...)`](../tflite_support/metadata_schema_py_generated/ModelMetadataAddMinParserVersion) - -[`ModelMetadataAddName(...)`](../tflite_support/metadata_schema_py_generated/ModelMetadataAddName) - -[`ModelMetadataAddSubgraphMetadata(...)`](../tflite_support/metadata_schema_py_generated/ModelMetadataAddSubgraphMetadata) - -[`ModelMetadataAddVersion(...)`](../tflite_support/metadata_schema_py_generated/ModelMetadataAddVersion) - -[`ModelMetadataEnd(...)`](../tflite_support/metadata_schema_py_generated/ModelMetadataEnd) - -[`ModelMetadataStart(...)`](../tflite_support/metadata_schema_py_generated/ModelMetadataStart) - -[`ModelMetadataStartAssociatedFilesVector(...)`](../tflite_support/metadata_schema_py_generated/ModelMetadataStartAssociatedFilesVector) - -[`ModelMetadataStartSubgraphMetadataVector(...)`](../tflite_support/metadata_schema_py_generated/ModelMetadataStartSubgraphMetadataVector) - -[`NormalizationOptionsAddMean(...)`](../tflite_support/metadata_schema_py_generated/NormalizationOptionsAddMean) - -[`NormalizationOptionsAddStd(...)`](../tflite_support/metadata_schema_py_generated/NormalizationOptionsAddStd) - -[`NormalizationOptionsEnd(...)`](../tflite_support/metadata_schema_py_generated/NormalizationOptionsEnd) - -[`NormalizationOptionsStart(...)`](../tflite_support/metadata_schema_py_generated/NormalizationOptionsStart) - -[`NormalizationOptionsStartMeanVector(...)`](../tflite_support/metadata_schema_py_generated/NormalizationOptionsStartMeanVector) - -[`NormalizationOptionsStartStdVector(...)`](../tflite_support/metadata_schema_py_generated/NormalizationOptionsStartStdVector) - -[`ProcessUnitAddOptions(...)`](../tflite_support/metadata_schema_py_generated/ProcessUnitAddOptions) - -[`ProcessUnitAddOptionsType(...)`](../tflite_support/metadata_schema_py_generated/ProcessUnitAddOptionsType) - -[`ProcessUnitEnd(...)`](../tflite_support/metadata_schema_py_generated/ProcessUnitEnd) - -[`ProcessUnitOptionsCreator(...)`](../tflite_support/metadata_schema_py_generated/ProcessUnitOptionsCreator) - -[`ProcessUnitStart(...)`](../tflite_support/metadata_schema_py_generated/ProcessUnitStart) - -[`RegexTokenizerOptionsAddDelimRegexPattern(...)`](../tflite_support/metadata_schema_py_generated/RegexTokenizerOptionsAddDelimRegexPattern) - -[`RegexTokenizerOptionsAddVocabFile(...)`](../tflite_support/metadata_schema_py_generated/RegexTokenizerOptionsAddVocabFile) - -[`RegexTokenizerOptionsEnd(...)`](../tflite_support/metadata_schema_py_generated/RegexTokenizerOptionsEnd) - -[`RegexTokenizerOptionsStart(...)`](../tflite_support/metadata_schema_py_generated/RegexTokenizerOptionsStart) - -[`RegexTokenizerOptionsStartVocabFileVector(...)`](../tflite_support/metadata_schema_py_generated/RegexTokenizerOptionsStartVocabFileVector) - -[`ScoreCalibrationOptionsAddDefaultScore(...)`](../tflite_support/metadata_schema_py_generated/ScoreCalibrationOptionsAddDefaultScore) - -[`ScoreCalibrationOptionsAddScoreTransformation(...)`](../tflite_support/metadata_schema_py_generated/ScoreCalibrationOptionsAddScoreTransformation) - -[`ScoreCalibrationOptionsEnd(...)`](../tflite_support/metadata_schema_py_generated/ScoreCalibrationOptionsEnd) - -[`ScoreCalibrationOptionsStart(...)`](../tflite_support/metadata_schema_py_generated/ScoreCalibrationOptionsStart) - -[`ScoreThresholdingOptionsAddGlobalScoreThreshold(...)`](../tflite_support/metadata_schema_py_generated/ScoreThresholdingOptionsAddGlobalScoreThreshold) - -[`ScoreThresholdingOptionsEnd(...)`](../tflite_support/metadata_schema_py_generated/ScoreThresholdingOptionsEnd) - -[`ScoreThresholdingOptionsStart(...)`](../tflite_support/metadata_schema_py_generated/ScoreThresholdingOptionsStart) - -[`SentencePieceTokenizerOptionsAddSentencePieceModel(...)`](../tflite_support/metadata_schema_py_generated/SentencePieceTokenizerOptionsAddSentencePieceModel) - -[`SentencePieceTokenizerOptionsAddVocabFile(...)`](../tflite_support/metadata_schema_py_generated/SentencePieceTokenizerOptionsAddVocabFile) - -[`SentencePieceTokenizerOptionsEnd(...)`](../tflite_support/metadata_schema_py_generated/SentencePieceTokenizerOptionsEnd) - -[`SentencePieceTokenizerOptionsStart(...)`](../tflite_support/metadata_schema_py_generated/SentencePieceTokenizerOptionsStart) - -[`SentencePieceTokenizerOptionsStartSentencePieceModelVector(...)`](../tflite_support/metadata_schema_py_generated/SentencePieceTokenizerOptionsStartSentencePieceModelVector) - -[`SentencePieceTokenizerOptionsStartVocabFileVector(...)`](../tflite_support/metadata_schema_py_generated/SentencePieceTokenizerOptionsStartVocabFileVector) - -[`StatsAddMax(...)`](../tflite_support/metadata_schema_py_generated/StatsAddMax) - -[`StatsAddMin(...)`](../tflite_support/metadata_schema_py_generated/StatsAddMin) - -[`StatsEnd(...)`](../tflite_support/metadata_schema_py_generated/StatsEnd) - -[`StatsStart(...)`](../tflite_support/metadata_schema_py_generated/StatsStart) - -[`StatsStartMaxVector(...)`](../tflite_support/metadata_schema_py_generated/StatsStartMaxVector) - -[`StatsStartMinVector(...)`](../tflite_support/metadata_schema_py_generated/StatsStartMinVector) - -[`SubGraphMetadataAddAssociatedFiles(...)`](../tflite_support/metadata_schema_py_generated/SubGraphMetadataAddAssociatedFiles) - -[`SubGraphMetadataAddCustomMetadata(...)`](../tflite_support/metadata_schema_py_generated/SubGraphMetadataAddCustomMetadata) - -[`SubGraphMetadataAddDescription(...)`](../tflite_support/metadata_schema_py_generated/SubGraphMetadataAddDescription) - -[`SubGraphMetadataAddInputProcessUnits(...)`](../tflite_support/metadata_schema_py_generated/SubGraphMetadataAddInputProcessUnits) - -[`SubGraphMetadataAddInputTensorGroups(...)`](../tflite_support/metadata_schema_py_generated/SubGraphMetadataAddInputTensorGroups) - -[`SubGraphMetadataAddInputTensorMetadata(...)`](../tflite_support/metadata_schema_py_generated/SubGraphMetadataAddInputTensorMetadata) - -[`SubGraphMetadataAddName(...)`](../tflite_support/metadata_schema_py_generated/SubGraphMetadataAddName) - -[`SubGraphMetadataAddOutputProcessUnits(...)`](../tflite_support/metadata_schema_py_generated/SubGraphMetadataAddOutputProcessUnits) - -[`SubGraphMetadataAddOutputTensorGroups(...)`](../tflite_support/metadata_schema_py_generated/SubGraphMetadataAddOutputTensorGroups) - -[`SubGraphMetadataAddOutputTensorMetadata(...)`](../tflite_support/metadata_schema_py_generated/SubGraphMetadataAddOutputTensorMetadata) - -[`SubGraphMetadataEnd(...)`](../tflite_support/metadata_schema_py_generated/SubGraphMetadataEnd) - -[`SubGraphMetadataStart(...)`](../tflite_support/metadata_schema_py_generated/SubGraphMetadataStart) - -[`SubGraphMetadataStartAssociatedFilesVector(...)`](../tflite_support/metadata_schema_py_generated/SubGraphMetadataStartAssociatedFilesVector) - -[`SubGraphMetadataStartCustomMetadataVector(...)`](../tflite_support/metadata_schema_py_generated/SubGraphMetadataStartCustomMetadataVector) - -[`SubGraphMetadataStartInputProcessUnitsVector(...)`](../tflite_support/metadata_schema_py_generated/SubGraphMetadataStartInputProcessUnitsVector) - -[`SubGraphMetadataStartInputTensorGroupsVector(...)`](../tflite_support/metadata_schema_py_generated/SubGraphMetadataStartInputTensorGroupsVector) - -[`SubGraphMetadataStartInputTensorMetadataVector(...)`](../tflite_support/metadata_schema_py_generated/SubGraphMetadataStartInputTensorMetadataVector) - -[`SubGraphMetadataStartOutputProcessUnitsVector(...)`](../tflite_support/metadata_schema_py_generated/SubGraphMetadataStartOutputProcessUnitsVector) - -[`SubGraphMetadataStartOutputTensorGroupsVector(...)`](../tflite_support/metadata_schema_py_generated/SubGraphMetadataStartOutputTensorGroupsVector) - -[`SubGraphMetadataStartOutputTensorMetadataVector(...)`](../tflite_support/metadata_schema_py_generated/SubGraphMetadataStartOutputTensorMetadataVector) - -[`TensorGroupAddName(...)`](../tflite_support/metadata_schema_py_generated/TensorGroupAddName) - -[`TensorGroupAddTensorNames(...)`](../tflite_support/metadata_schema_py_generated/TensorGroupAddTensorNames) - -[`TensorGroupEnd(...)`](../tflite_support/metadata_schema_py_generated/TensorGroupEnd) - -[`TensorGroupStart(...)`](../tflite_support/metadata_schema_py_generated/TensorGroupStart) - -[`TensorGroupStartTensorNamesVector(...)`](../tflite_support/metadata_schema_py_generated/TensorGroupStartTensorNamesVector) - -[`TensorMetadataAddAssociatedFiles(...)`](../tflite_support/metadata_schema_py_generated/TensorMetadataAddAssociatedFiles) - -[`TensorMetadataAddContent(...)`](../tflite_support/metadata_schema_py_generated/TensorMetadataAddContent) - -[`TensorMetadataAddDescription(...)`](../tflite_support/metadata_schema_py_generated/TensorMetadataAddDescription) - -[`TensorMetadataAddDimensionNames(...)`](../tflite_support/metadata_schema_py_generated/TensorMetadataAddDimensionNames) - -[`TensorMetadataAddName(...)`](../tflite_support/metadata_schema_py_generated/TensorMetadataAddName) - -[`TensorMetadataAddProcessUnits(...)`](../tflite_support/metadata_schema_py_generated/TensorMetadataAddProcessUnits) - -[`TensorMetadataAddStats(...)`](../tflite_support/metadata_schema_py_generated/TensorMetadataAddStats) - -[`TensorMetadataEnd(...)`](../tflite_support/metadata_schema_py_generated/TensorMetadataEnd) - -[`TensorMetadataStart(...)`](../tflite_support/metadata_schema_py_generated/TensorMetadataStart) - -[`TensorMetadataStartAssociatedFilesVector(...)`](../tflite_support/metadata_schema_py_generated/TensorMetadataStartAssociatedFilesVector) - -[`TensorMetadataStartDimensionNamesVector(...)`](../tflite_support/metadata_schema_py_generated/TensorMetadataStartDimensionNamesVector) - -[`TensorMetadataStartProcessUnitsVector(...)`](../tflite_support/metadata_schema_py_generated/TensorMetadataStartProcessUnitsVector) - -[`ValueRangeAddMax(...)`](../tflite_support/metadata_schema_py_generated/ValueRangeAddMax) - -[`ValueRangeAddMin(...)`](../tflite_support/metadata_schema_py_generated/ValueRangeAddMin) - -[`ValueRangeEnd(...)`](../tflite_support/metadata_schema_py_generated/ValueRangeEnd) - -[`ValueRangeStart(...)`](../tflite_support/metadata_schema_py_generated/ValueRangeStart) - -[`import_numpy(...)`](../tflite_support/metadata_schema_py_generated/import_numpy): Returns the numpy module if it exists on the system, otherwise returns None. diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AssociatedFile.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AssociatedFile.md deleted file mode 100644 index 6a72e44909..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AssociatedFile.md +++ /dev/null @@ -1,148 +0,0 @@ -page_type: reference - - - - - -
- - - - - - - - - - - -
- -# tflite_support.metadata_schema_py_generated.AssociatedFile - - - - - - - - - - - - - - -## Methods - -

AssociatedFileBufferHasIdentifier

- -View source - - - - - - -

Description

- -View source - - - - - - -

GetRootAs

- -View source - - - - - - -

GetRootAsAssociatedFile

- -View source - - - -This method is deprecated. Please switch to GetRootAs. - - -

Init

- -View source - - - - - - -

Locale

- -View source - - - - - - -

Name

- -View source - - - - - - -

Type

- -View source - - - - - - -

Version

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AssociatedFileAddDescription.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AssociatedFileAddDescription.md deleted file mode 100644 index 6893628e0e..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AssociatedFileAddDescription.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.AssociatedFileAddDescription - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AssociatedFileAddLocale.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AssociatedFileAddLocale.md deleted file mode 100644 index 7c35148261..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AssociatedFileAddLocale.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.AssociatedFileAddLocale - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AssociatedFileAddName.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AssociatedFileAddName.md deleted file mode 100644 index be093f8f0b..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AssociatedFileAddName.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.AssociatedFileAddName - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AssociatedFileAddType.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AssociatedFileAddType.md deleted file mode 100644 index f46131c485..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AssociatedFileAddType.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.AssociatedFileAddType - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AssociatedFileAddVersion.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AssociatedFileAddVersion.md deleted file mode 100644 index 4b1b132dd9..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AssociatedFileAddVersion.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.AssociatedFileAddVersion - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AssociatedFileEnd.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AssociatedFileEnd.md deleted file mode 100644 index afebd1e442..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AssociatedFileEnd.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.AssociatedFileEnd - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AssociatedFileStart.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AssociatedFileStart.md deleted file mode 100644 index 9f93629b6f..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AssociatedFileStart.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.AssociatedFileStart - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AssociatedFileT.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AssociatedFileT.md deleted file mode 100644 index cd6d6b5877..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AssociatedFileT.md +++ /dev/null @@ -1,95 +0,0 @@ -page_type: reference - - - - - -
- - - - - - - -
- -# tflite_support.metadata_schema_py_generated.AssociatedFileT - - - - - - - - - - - - - - - - - - -## Methods - -

InitFromBuf

- -View source - - - - - - -

InitFromObj

- -View source - - - - - - -

InitFromPackedBuf

- -View source - - - - - - -

Pack

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AssociatedFileType.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AssociatedFileType.md deleted file mode 100644 index 5965f2de6b..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AssociatedFileType.md +++ /dev/null @@ -1,96 +0,0 @@ -page_type: reference - - - - - -
- - - - - - - - - -
- -# tflite_support.metadata_schema_py_generated.AssociatedFileType - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-DESCRIPTIONS - -`1` -
-SCANN_INDEX_FILE - -`6` -
-TENSOR_AXIS_LABELS - -`2` -
-TENSOR_AXIS_SCORE_CALIBRATION - -`4` -
-TENSOR_VALUE_LABELS - -`3` -
-UNKNOWN - -`0` -
-VOCABULARY - -`5` -
diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AudioProperties.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AudioProperties.md deleted file mode 100644 index de7b157a31..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AudioProperties.md +++ /dev/null @@ -1,112 +0,0 @@ -page_type: reference - - - - - -
- - - - - - - - -
- -# tflite_support.metadata_schema_py_generated.AudioProperties - - - - - - - - - - - - - - -## Methods - -

AudioPropertiesBufferHasIdentifier

- -View source - - - - - - -

Channels

- -View source - - - - - - -

GetRootAs

- -View source - - - - - - -

GetRootAsAudioProperties

- -View source - - - -This method is deprecated. Please switch to GetRootAs. - - -

Init

- -View source - - - - - - -

SampleRate

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AudioPropertiesAddChannels.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AudioPropertiesAddChannels.md deleted file mode 100644 index 8b640e3d3a..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AudioPropertiesAddChannels.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.AudioPropertiesAddChannels - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AudioPropertiesAddSampleRate.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AudioPropertiesAddSampleRate.md deleted file mode 100644 index 20cf4e0aaa..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AudioPropertiesAddSampleRate.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.AudioPropertiesAddSampleRate - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AudioPropertiesEnd.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AudioPropertiesEnd.md deleted file mode 100644 index d26d7983b8..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AudioPropertiesEnd.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.AudioPropertiesEnd - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AudioPropertiesStart.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AudioPropertiesStart.md deleted file mode 100644 index 08748f7c70..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AudioPropertiesStart.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.AudioPropertiesStart - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AudioPropertiesT.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AudioPropertiesT.md deleted file mode 100644 index b45dd89663..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/AudioPropertiesT.md +++ /dev/null @@ -1,95 +0,0 @@ -page_type: reference - - - - - -
- - - - - - - -
- -# tflite_support.metadata_schema_py_generated.AudioPropertiesT - - - - - - - - - - - - - - - - - - -## Methods - -

InitFromBuf

- -View source - - - - - - -

InitFromObj

- -View source - - - - - - -

InitFromPackedBuf

- -View source - - - - - - -

Pack

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/BertTokenizerOptions.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/BertTokenizerOptions.md deleted file mode 100644 index eb5023a3d4..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/BertTokenizerOptions.md +++ /dev/null @@ -1,126 +0,0 @@ -page_type: reference - - - - - -
- - - - - - - - - -
- -# tflite_support.metadata_schema_py_generated.BertTokenizerOptions - - - - - - - - - - - - - - -## Methods - -

BertTokenizerOptionsBufferHasIdentifier

- -View source - - - - - - -

GetRootAs

- -View source - - - - - - -

GetRootAsBertTokenizerOptions

- -View source - - - -This method is deprecated. Please switch to GetRootAs. - - -

Init

- -View source - - - - - - -

VocabFile

- -View source - - - - - - -

VocabFileIsNone

- -View source - - - - - - -

VocabFileLength

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/BertTokenizerOptionsAddVocabFile.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/BertTokenizerOptionsAddVocabFile.md deleted file mode 100644 index 3a98186b44..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/BertTokenizerOptionsAddVocabFile.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.BertTokenizerOptionsAddVocabFile - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/BertTokenizerOptionsEnd.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/BertTokenizerOptionsEnd.md deleted file mode 100644 index b6a01cf2f2..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/BertTokenizerOptionsEnd.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.BertTokenizerOptionsEnd - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/BertTokenizerOptionsStart.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/BertTokenizerOptionsStart.md deleted file mode 100644 index a2f39981ef..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/BertTokenizerOptionsStart.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.BertTokenizerOptionsStart - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/BertTokenizerOptionsStartVocabFileVector.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/BertTokenizerOptionsStartVocabFileVector.md deleted file mode 100644 index ba37ecde83..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/BertTokenizerOptionsStartVocabFileVector.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.BertTokenizerOptionsStartVocabFileVector - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/BertTokenizerOptionsT.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/BertTokenizerOptionsT.md deleted file mode 100644 index 70afc5f0e8..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/BertTokenizerOptionsT.md +++ /dev/null @@ -1,95 +0,0 @@ -page_type: reference - - - - - -
- - - - - - - -
- -# tflite_support.metadata_schema_py_generated.BertTokenizerOptionsT - - - - - - - - - - - - - - - - - - -## Methods - -

InitFromBuf

- -View source - - - - - - -

InitFromObj

- -View source - - - - - - -

InitFromPackedBuf

- -View source - - - - - - -

Pack

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/BoundingBoxProperties.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/BoundingBoxProperties.md deleted file mode 100644 index 9da30e48c7..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/BoundingBoxProperties.md +++ /dev/null @@ -1,162 +0,0 @@ -page_type: reference - - - - - -
- - - - - - - - - - - - -
- -# tflite_support.metadata_schema_py_generated.BoundingBoxProperties - - - - - - - - - - - - - - -## Methods - -

BoundingBoxPropertiesBufferHasIdentifier

- -View source - - - - - - -

CoordinateType

- -View source - - - - - - -

GetRootAs

- -View source - - - - - - -

GetRootAsBoundingBoxProperties

- -View source - - - -This method is deprecated. Please switch to GetRootAs. - - -

Index

- -View source - - - - - - -

IndexAsNumpy

- -View source - - - - - - -

IndexIsNone

- -View source - - - - - - -

IndexLength

- -View source - - - - - - -

Init

- -View source - - - - - - -

Type

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/BoundingBoxPropertiesAddCoordinateType.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/BoundingBoxPropertiesAddCoordinateType.md deleted file mode 100644 index 984ed84b9f..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/BoundingBoxPropertiesAddCoordinateType.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.BoundingBoxPropertiesAddCoordinateType - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/BoundingBoxPropertiesAddIndex.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/BoundingBoxPropertiesAddIndex.md deleted file mode 100644 index 8f321c9b53..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/BoundingBoxPropertiesAddIndex.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.BoundingBoxPropertiesAddIndex - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/BoundingBoxPropertiesAddType.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/BoundingBoxPropertiesAddType.md deleted file mode 100644 index a612640733..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/BoundingBoxPropertiesAddType.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.BoundingBoxPropertiesAddType - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/BoundingBoxPropertiesEnd.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/BoundingBoxPropertiesEnd.md deleted file mode 100644 index d67007ab3d..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/BoundingBoxPropertiesEnd.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.BoundingBoxPropertiesEnd - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/BoundingBoxPropertiesStart.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/BoundingBoxPropertiesStart.md deleted file mode 100644 index 276fb4ea7f..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/BoundingBoxPropertiesStart.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.BoundingBoxPropertiesStart - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/BoundingBoxPropertiesStartIndexVector.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/BoundingBoxPropertiesStartIndexVector.md deleted file mode 100644 index ed20dcc6e6..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/BoundingBoxPropertiesStartIndexVector.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.BoundingBoxPropertiesStartIndexVector - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/BoundingBoxPropertiesT.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/BoundingBoxPropertiesT.md deleted file mode 100644 index 9a95cadc2e..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/BoundingBoxPropertiesT.md +++ /dev/null @@ -1,95 +0,0 @@ -page_type: reference - - - - - -
- - - - - - - -
- -# tflite_support.metadata_schema_py_generated.BoundingBoxPropertiesT - - - - - - - - - - - - - - - - - - -## Methods - -

InitFromBuf

- -View source - - - - - - -

InitFromObj

- -View source - - - - - - -

InitFromPackedBuf

- -View source - - - - - - -

Pack

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/BoundingBoxType.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/BoundingBoxType.md deleted file mode 100644 index e52c92f5bd..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/BoundingBoxType.md +++ /dev/null @@ -1,72 +0,0 @@ -page_type: reference - - - - - -
- - - - - - -
- -# tflite_support.metadata_schema_py_generated.BoundingBoxType - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-BOUNDARIES - -`1` -
-CENTER - -`3` -
-UNKNOWN - -`0` -
-UPPER_LEFT - -`2` -
diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ColorSpaceType.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ColorSpaceType.md deleted file mode 100644 index 37c691fade..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ColorSpaceType.md +++ /dev/null @@ -1,64 +0,0 @@ -page_type: reference - - - - - -
- - - - - -
- -# tflite_support.metadata_schema_py_generated.ColorSpaceType - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-GRAYSCALE - -`2` -
-RGB - -`1` -
-UNKNOWN - -`0` -
diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/Content.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/Content.md deleted file mode 100644 index a9e70ead09..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/Content.md +++ /dev/null @@ -1,124 +0,0 @@ -page_type: reference - - - - - -
- - - - - - - - - -
- -# tflite_support.metadata_schema_py_generated.Content - - - - - - - - - - - - - - -## Methods - -

ContentBufferHasIdentifier

- -View source - - - - - - -

ContentProperties

- -View source - - - - - - -

ContentPropertiesType

- -View source - - - - - - -

GetRootAs

- -View source - - - - - - -

GetRootAsContent

- -View source - - - -This method is deprecated. Please switch to GetRootAs. - - -

Init

- -View source - - - - - - -

Range

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ContentAddContentProperties.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ContentAddContentProperties.md deleted file mode 100644 index 340d4939f1..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ContentAddContentProperties.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.ContentAddContentProperties - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ContentAddContentPropertiesType.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ContentAddContentPropertiesType.md deleted file mode 100644 index 808df4a851..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ContentAddContentPropertiesType.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.ContentAddContentPropertiesType - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ContentAddRange.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ContentAddRange.md deleted file mode 100644 index be230f33ee..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ContentAddRange.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.ContentAddRange - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ContentEnd.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ContentEnd.md deleted file mode 100644 index c4fffcfb30..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ContentEnd.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.ContentEnd - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ContentProperties.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ContentProperties.md deleted file mode 100644 index 8456b9dbf2..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ContentProperties.md +++ /dev/null @@ -1,80 +0,0 @@ -page_type: reference - - - - - -
- - - - - - - -
- -# tflite_support.metadata_schema_py_generated.ContentProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-AudioProperties - -`4` -
-BoundingBoxProperties - -`3` -
-FeatureProperties - -`1` -
-ImageProperties - -`2` -
-NONE - -`0` -
diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ContentPropertiesCreator.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ContentPropertiesCreator.md deleted file mode 100644 index a3c44673fa..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ContentPropertiesCreator.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.ContentPropertiesCreator - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ContentStart.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ContentStart.md deleted file mode 100644 index a730e26671..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ContentStart.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.ContentStart - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ContentT.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ContentT.md deleted file mode 100644 index 0c00a5c1e9..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ContentT.md +++ /dev/null @@ -1,95 +0,0 @@ -page_type: reference - - - - - -
- - - - - - - -
- -# tflite_support.metadata_schema_py_generated.ContentT - - - - - - - - - - - - - - - - - - -## Methods - -

InitFromBuf

- -View source - - - - - - -

InitFromObj

- -View source - - - - - - -

InitFromPackedBuf

- -View source - - - - - - -

Pack

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/CoordinateType.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/CoordinateType.md deleted file mode 100644 index fe28f1eba9..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/CoordinateType.md +++ /dev/null @@ -1,56 +0,0 @@ -page_type: reference - - - - - -
- - - - -
- -# tflite_support.metadata_schema_py_generated.CoordinateType - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-PIXEL - -`1` -
-RATIO - -`0` -
diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/CustomMetadata.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/CustomMetadata.md deleted file mode 100644 index 6ac31da106..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/CustomMetadata.md +++ /dev/null @@ -1,150 +0,0 @@ -page_type: reference - - - - - -
- - - - - - - - - - - -
- -# tflite_support.metadata_schema_py_generated.CustomMetadata - - - - - - - - - - - - - - -## Methods - -

CustomMetadataBufferHasIdentifier

- -View source - - - - - - -

Data

- -View source - - - - - - -

DataAsNumpy

- -View source - - - - - - -

DataIsNone

- -View source - - - - - - -

DataLength

- -View source - - - - - - -

GetRootAs

- -View source - - - - - - -

GetRootAsCustomMetadata

- -View source - - - -This method is deprecated. Please switch to GetRootAs. - - -

Init

- -View source - - - - - - -

Name

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/CustomMetadataAddData.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/CustomMetadataAddData.md deleted file mode 100644 index b9fbb612a6..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/CustomMetadataAddData.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.CustomMetadataAddData - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/CustomMetadataAddName.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/CustomMetadataAddName.md deleted file mode 100644 index bb67ab8364..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/CustomMetadataAddName.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.CustomMetadataAddName - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/CustomMetadataEnd.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/CustomMetadataEnd.md deleted file mode 100644 index 4f2aed9959..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/CustomMetadataEnd.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.CustomMetadataEnd - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/CustomMetadataStart.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/CustomMetadataStart.md deleted file mode 100644 index eccda52104..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/CustomMetadataStart.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.CustomMetadataStart - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/CustomMetadataStartDataVector.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/CustomMetadataStartDataVector.md deleted file mode 100644 index 0c723a3ca7..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/CustomMetadataStartDataVector.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.CustomMetadataStartDataVector - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/CustomMetadataT.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/CustomMetadataT.md deleted file mode 100644 index 41c44c7ebb..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/CustomMetadataT.md +++ /dev/null @@ -1,95 +0,0 @@ -page_type: reference - - - - - -
- - - - - - - -
- -# tflite_support.metadata_schema_py_generated.CustomMetadataT - - - - - - - - - - - - - - - - - - -## Methods - -

InitFromBuf

- -View source - - - - - - -

InitFromObj

- -View source - - - - - - -

InitFromPackedBuf

- -View source - - - - - - -

Pack

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/FeatureProperties.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/FeatureProperties.md deleted file mode 100644 index f203a766b7..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/FeatureProperties.md +++ /dev/null @@ -1,88 +0,0 @@ -page_type: reference - - - - - -
- - - - - - -
- -# tflite_support.metadata_schema_py_generated.FeatureProperties - - - - - - - - - - - - - - -## Methods - -

FeaturePropertiesBufferHasIdentifier

- -View source - - - - - - -

GetRootAs

- -View source - - - - - - -

GetRootAsFeatureProperties

- -View source - - - -This method is deprecated. Please switch to GetRootAs. - - -

Init

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/FeaturePropertiesEnd.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/FeaturePropertiesEnd.md deleted file mode 100644 index 65300f8693..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/FeaturePropertiesEnd.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.FeaturePropertiesEnd - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/FeaturePropertiesStart.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/FeaturePropertiesStart.md deleted file mode 100644 index 7481c2237d..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/FeaturePropertiesStart.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.FeaturePropertiesStart - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/FeaturePropertiesT.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/FeaturePropertiesT.md deleted file mode 100644 index c8f35305cd..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/FeaturePropertiesT.md +++ /dev/null @@ -1,95 +0,0 @@ -page_type: reference - - - - - -
- - - - - - - -
- -# tflite_support.metadata_schema_py_generated.FeaturePropertiesT - - - - - - - - - - - - - - - - - - -## Methods - -

InitFromBuf

- -View source - - - - - - -

InitFromObj

- -View source - - - - - - -

InitFromPackedBuf

- -View source - - - - - - -

Pack

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImageProperties.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImageProperties.md deleted file mode 100644 index 46b140b5f3..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImageProperties.md +++ /dev/null @@ -1,112 +0,0 @@ -page_type: reference - - - - - -
- - - - - - - - -
- -# tflite_support.metadata_schema_py_generated.ImageProperties - - - - - - - - - - - - - - -## Methods - -

ColorSpace

- -View source - - - - - - -

DefaultSize

- -View source - - - - - - -

GetRootAs

- -View source - - - - - - -

GetRootAsImageProperties

- -View source - - - -This method is deprecated. Please switch to GetRootAs. - - -

ImagePropertiesBufferHasIdentifier

- -View source - - - - - - -

Init

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImagePropertiesAddColorSpace.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImagePropertiesAddColorSpace.md deleted file mode 100644 index 27dc095d1d..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImagePropertiesAddColorSpace.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.ImagePropertiesAddColorSpace - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImagePropertiesAddDefaultSize.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImagePropertiesAddDefaultSize.md deleted file mode 100644 index 4f4781f04d..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImagePropertiesAddDefaultSize.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.ImagePropertiesAddDefaultSize - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImagePropertiesEnd.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImagePropertiesEnd.md deleted file mode 100644 index 3c58facd64..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImagePropertiesEnd.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.ImagePropertiesEnd - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImagePropertiesStart.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImagePropertiesStart.md deleted file mode 100644 index c4cebe5cbf..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImagePropertiesStart.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.ImagePropertiesStart - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImagePropertiesT.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImagePropertiesT.md deleted file mode 100644 index 5c07c316f3..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImagePropertiesT.md +++ /dev/null @@ -1,95 +0,0 @@ -page_type: reference - - - - - -
- - - - - - - -
- -# tflite_support.metadata_schema_py_generated.ImagePropertiesT - - - - - - - - - - - - - - - - - - -## Methods - -

InitFromBuf

- -View source - - - - - - -

InitFromObj

- -View source - - - - - - -

InitFromPackedBuf

- -View source - - - - - - -

Pack

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImageSize.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImageSize.md deleted file mode 100644 index 2b4f305253..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImageSize.md +++ /dev/null @@ -1,112 +0,0 @@ -page_type: reference - - - - - -
- - - - - - - - -
- -# tflite_support.metadata_schema_py_generated.ImageSize - - - - - - - - - - - - - - -## Methods - -

GetRootAs

- -View source - - - - - - -

GetRootAsImageSize

- -View source - - - -This method is deprecated. Please switch to GetRootAs. - - -

Height

- -View source - - - - - - -

ImageSizeBufferHasIdentifier

- -View source - - - - - - -

Init

- -View source - - - - - - -

Width

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImageSizeAddHeight.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImageSizeAddHeight.md deleted file mode 100644 index 095f7fec31..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImageSizeAddHeight.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.ImageSizeAddHeight - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImageSizeAddWidth.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImageSizeAddWidth.md deleted file mode 100644 index b5edb6e563..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImageSizeAddWidth.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.ImageSizeAddWidth - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImageSizeEnd.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImageSizeEnd.md deleted file mode 100644 index ed861c78cb..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImageSizeEnd.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.ImageSizeEnd - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImageSizeStart.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImageSizeStart.md deleted file mode 100644 index 30a49ecf20..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImageSizeStart.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.ImageSizeStart - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImageSizeT.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImageSizeT.md deleted file mode 100644 index df59721342..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ImageSizeT.md +++ /dev/null @@ -1,95 +0,0 @@ -page_type: reference - - - - - -
- - - - - - - -
- -# tflite_support.metadata_schema_py_generated.ImageSizeT - - - - - - - - - - - - - - - - - - -## Methods - -

InitFromBuf

- -View source - - - - - - -

InitFromObj

- -View source - - - - - - -

InitFromPackedBuf

- -View source - - - - - - -

Pack

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadata.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadata.md deleted file mode 100644 index 46813eff64..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadata.md +++ /dev/null @@ -1,236 +0,0 @@ -page_type: reference - - - - - -
- - - - - - - - - - - - - - - - - - -
- -# tflite_support.metadata_schema_py_generated.ModelMetadata - - - - - - - - - - - - - - -## Methods - -

AssociatedFiles

- -View source - - - - - - -

AssociatedFilesIsNone

- -View source - - - - - - -

AssociatedFilesLength

- -View source - - - - - - -

Author

- -View source - - - - - - -

Description

- -View source - - - - - - -

GetRootAs

- -View source - - - - - - -

GetRootAsModelMetadata

- -View source - - - -This method is deprecated. Please switch to GetRootAs. - - -

Init

- -View source - - - - - - -

License

- -View source - - - - - - -

MinParserVersion

- -View source - - - - - - -

ModelMetadataBufferHasIdentifier

- -View source - - - - - - -

Name

- -View source - - - - - - -

SubgraphMetadata

- -View source - - - - - - -

SubgraphMetadataIsNone

- -View source - - - - - - -

SubgraphMetadataLength

- -View source - - - - - - -

Version

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataAddAssociatedFiles.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataAddAssociatedFiles.md deleted file mode 100644 index 4516396d34..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataAddAssociatedFiles.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.ModelMetadataAddAssociatedFiles - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataAddAuthor.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataAddAuthor.md deleted file mode 100644 index 405cca5042..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataAddAuthor.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.ModelMetadataAddAuthor - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataAddDescription.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataAddDescription.md deleted file mode 100644 index d163001c59..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataAddDescription.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.ModelMetadataAddDescription - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataAddLicense.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataAddLicense.md deleted file mode 100644 index 2cc7ce6568..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataAddLicense.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.ModelMetadataAddLicense - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataAddMinParserVersion.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataAddMinParserVersion.md deleted file mode 100644 index bb57da25e4..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataAddMinParserVersion.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.ModelMetadataAddMinParserVersion - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataAddName.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataAddName.md deleted file mode 100644 index 5f8703f7a8..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataAddName.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.ModelMetadataAddName - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataAddSubgraphMetadata.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataAddSubgraphMetadata.md deleted file mode 100644 index 7e16d6acf3..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataAddSubgraphMetadata.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.ModelMetadataAddSubgraphMetadata - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataAddVersion.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataAddVersion.md deleted file mode 100644 index c10323163b..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataAddVersion.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.ModelMetadataAddVersion - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataEnd.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataEnd.md deleted file mode 100644 index 6db972f39b..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataEnd.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.ModelMetadataEnd - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataStart.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataStart.md deleted file mode 100644 index aa79990a75..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataStart.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.ModelMetadataStart - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataStartAssociatedFilesVector.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataStartAssociatedFilesVector.md deleted file mode 100644 index 3679b6355e..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataStartAssociatedFilesVector.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.ModelMetadataStartAssociatedFilesVector - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataStartSubgraphMetadataVector.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataStartSubgraphMetadataVector.md deleted file mode 100644 index c1b3217755..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataStartSubgraphMetadataVector.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.ModelMetadataStartSubgraphMetadataVector - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataT.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataT.md deleted file mode 100644 index 7bacd905fd..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ModelMetadataT.md +++ /dev/null @@ -1,95 +0,0 @@ -page_type: reference - - - - - -
- - - - - - - -
- -# tflite_support.metadata_schema_py_generated.ModelMetadataT - - - - - - - - - - - - - - - - - - -## Methods - -

InitFromBuf

- -View source - - - - - - -

InitFromObj

- -View source - - - - - - -

InitFromPackedBuf

- -View source - - - - - - -

Pack

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/NormalizationOptions.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/NormalizationOptions.md deleted file mode 100644 index d2362183ad..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/NormalizationOptions.md +++ /dev/null @@ -1,188 +0,0 @@ -page_type: reference - - - - - -
- - - - - - - - - - - - - - -
- -# tflite_support.metadata_schema_py_generated.NormalizationOptions - - - - - - - - - - - - - - -## Methods - -

GetRootAs

- -View source - - - - - - -

GetRootAsNormalizationOptions

- -View source - - - -This method is deprecated. Please switch to GetRootAs. - - -

Init

- -View source - - - - - - -

Mean

- -View source - - - - - - -

MeanAsNumpy

- -View source - - - - - - -

MeanIsNone

- -View source - - - - - - -

MeanLength

- -View source - - - - - - -

NormalizationOptionsBufferHasIdentifier

- -View source - - - - - - -

Std

- -View source - - - - - - -

StdAsNumpy

- -View source - - - - - - -

StdIsNone

- -View source - - - - - - -

StdLength

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/NormalizationOptionsAddMean.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/NormalizationOptionsAddMean.md deleted file mode 100644 index de7b6dee16..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/NormalizationOptionsAddMean.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.NormalizationOptionsAddMean - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/NormalizationOptionsAddStd.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/NormalizationOptionsAddStd.md deleted file mode 100644 index ac85ec795a..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/NormalizationOptionsAddStd.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.NormalizationOptionsAddStd - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/NormalizationOptionsEnd.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/NormalizationOptionsEnd.md deleted file mode 100644 index 147688dc8f..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/NormalizationOptionsEnd.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.NormalizationOptionsEnd - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/NormalizationOptionsStart.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/NormalizationOptionsStart.md deleted file mode 100644 index acf56ca215..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/NormalizationOptionsStart.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.NormalizationOptionsStart - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/NormalizationOptionsStartMeanVector.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/NormalizationOptionsStartMeanVector.md deleted file mode 100644 index a681c854d0..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/NormalizationOptionsStartMeanVector.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.NormalizationOptionsStartMeanVector - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/NormalizationOptionsStartStdVector.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/NormalizationOptionsStartStdVector.md deleted file mode 100644 index 57ac8cfb3d..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/NormalizationOptionsStartStdVector.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.NormalizationOptionsStartStdVector - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/NormalizationOptionsT.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/NormalizationOptionsT.md deleted file mode 100644 index 5d1f4dcd3f..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/NormalizationOptionsT.md +++ /dev/null @@ -1,95 +0,0 @@ -page_type: reference - - - - - -
- - - - - - - -
- -# tflite_support.metadata_schema_py_generated.NormalizationOptionsT - - - - - - - - - - - - - - - - - - -## Methods - -

InitFromBuf

- -View source - - - - - - -

InitFromObj

- -View source - - - - - - -

InitFromPackedBuf

- -View source - - - - - - -

Pack

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ProcessUnit.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ProcessUnit.md deleted file mode 100644 index cfd3e8e0e9..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ProcessUnit.md +++ /dev/null @@ -1,112 +0,0 @@ -page_type: reference - - - - - -
- - - - - - - - -
- -# tflite_support.metadata_schema_py_generated.ProcessUnit - - - - - - - - - - - - - - -## Methods - -

GetRootAs

- -View source - - - - - - -

GetRootAsProcessUnit

- -View source - - - -This method is deprecated. Please switch to GetRootAs. - - -

Init

- -View source - - - - - - -

Options

- -View source - - - - - - -

OptionsType

- -View source - - - - - - -

ProcessUnitBufferHasIdentifier

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ProcessUnitAddOptions.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ProcessUnitAddOptions.md deleted file mode 100644 index ca6c47e83e..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ProcessUnitAddOptions.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.ProcessUnitAddOptions - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ProcessUnitAddOptionsType.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ProcessUnitAddOptionsType.md deleted file mode 100644 index 7f8dab0ff2..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ProcessUnitAddOptionsType.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.ProcessUnitAddOptionsType - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ProcessUnitEnd.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ProcessUnitEnd.md deleted file mode 100644 index adfed8fd57..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ProcessUnitEnd.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.ProcessUnitEnd - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ProcessUnitOptions.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ProcessUnitOptions.md deleted file mode 100644 index 317e184635..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ProcessUnitOptions.md +++ /dev/null @@ -1,96 +0,0 @@ -page_type: reference - - - - - -
- - - - - - - - - -
- -# tflite_support.metadata_schema_py_generated.ProcessUnitOptions - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-BertTokenizerOptions - -`4` -
-NONE - -`0` -
-NormalizationOptions - -`1` -
-RegexTokenizerOptions - -`6` -
-ScoreCalibrationOptions - -`2` -
-ScoreThresholdingOptions - -`3` -
-SentencePieceTokenizerOptions - -`5` -
diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ProcessUnitOptionsCreator.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ProcessUnitOptionsCreator.md deleted file mode 100644 index 07ae26a4b6..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ProcessUnitOptionsCreator.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.ProcessUnitOptionsCreator - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ProcessUnitStart.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ProcessUnitStart.md deleted file mode 100644 index 8849fef1f6..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ProcessUnitStart.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.ProcessUnitStart - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ProcessUnitT.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ProcessUnitT.md deleted file mode 100644 index e903c57cc5..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ProcessUnitT.md +++ /dev/null @@ -1,95 +0,0 @@ -page_type: reference - - - - - -
- - - - - - - -
- -# tflite_support.metadata_schema_py_generated.ProcessUnitT - - - - - - - - - - - - - - - - - - -## Methods - -

InitFromBuf

- -View source - - - - - - -

InitFromObj

- -View source - - - - - - -

InitFromPackedBuf

- -View source - - - - - - -

Pack

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/RegexTokenizerOptions.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/RegexTokenizerOptions.md deleted file mode 100644 index 4290085c16..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/RegexTokenizerOptions.md +++ /dev/null @@ -1,138 +0,0 @@ -page_type: reference - - - - - -
- - - - - - - - - - -
- -# tflite_support.metadata_schema_py_generated.RegexTokenizerOptions - - - - - - - - - - - - - - -## Methods - -

DelimRegexPattern

- -View source - - - - - - -

GetRootAs

- -View source - - - - - - -

GetRootAsRegexTokenizerOptions

- -View source - - - -This method is deprecated. Please switch to GetRootAs. - - -

Init

- -View source - - - - - - -

RegexTokenizerOptionsBufferHasIdentifier

- -View source - - - - - - -

VocabFile

- -View source - - - - - - -

VocabFileIsNone

- -View source - - - - - - -

VocabFileLength

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/RegexTokenizerOptionsAddDelimRegexPattern.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/RegexTokenizerOptionsAddDelimRegexPattern.md deleted file mode 100644 index 9645e626ee..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/RegexTokenizerOptionsAddDelimRegexPattern.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.RegexTokenizerOptionsAddDelimRegexPattern - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/RegexTokenizerOptionsAddVocabFile.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/RegexTokenizerOptionsAddVocabFile.md deleted file mode 100644 index e214584ede..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/RegexTokenizerOptionsAddVocabFile.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.RegexTokenizerOptionsAddVocabFile - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/RegexTokenizerOptionsEnd.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/RegexTokenizerOptionsEnd.md deleted file mode 100644 index 1f9e5a6be0..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/RegexTokenizerOptionsEnd.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.RegexTokenizerOptionsEnd - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/RegexTokenizerOptionsStart.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/RegexTokenizerOptionsStart.md deleted file mode 100644 index 518b5f5511..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/RegexTokenizerOptionsStart.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.RegexTokenizerOptionsStart - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/RegexTokenizerOptionsStartVocabFileVector.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/RegexTokenizerOptionsStartVocabFileVector.md deleted file mode 100644 index 6be8ea43b4..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/RegexTokenizerOptionsStartVocabFileVector.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.RegexTokenizerOptionsStartVocabFileVector - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/RegexTokenizerOptionsT.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/RegexTokenizerOptionsT.md deleted file mode 100644 index f362132553..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/RegexTokenizerOptionsT.md +++ /dev/null @@ -1,95 +0,0 @@ -page_type: reference - - - - - -
- - - - - - - -
- -# tflite_support.metadata_schema_py_generated.RegexTokenizerOptionsT - - - - - - - - - - - - - - - - - - -## Methods - -

InitFromBuf

- -View source - - - - - - -

InitFromObj

- -View source - - - - - - -

InitFromPackedBuf

- -View source - - - - - - -

Pack

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreCalibrationOptions.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreCalibrationOptions.md deleted file mode 100644 index afeca3bb0b..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreCalibrationOptions.md +++ /dev/null @@ -1,112 +0,0 @@ -page_type: reference - - - - - -
- - - - - - - - -
- -# tflite_support.metadata_schema_py_generated.ScoreCalibrationOptions - - - - - - - - - - - - - - -## Methods - -

DefaultScore

- -View source - - - - - - -

GetRootAs

- -View source - - - - - - -

GetRootAsScoreCalibrationOptions

- -View source - - - -This method is deprecated. Please switch to GetRootAs. - - -

Init

- -View source - - - - - - -

ScoreCalibrationOptionsBufferHasIdentifier

- -View source - - - - - - -

ScoreTransformation

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreCalibrationOptionsAddDefaultScore.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreCalibrationOptionsAddDefaultScore.md deleted file mode 100644 index 6bdcf953ab..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreCalibrationOptionsAddDefaultScore.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.ScoreCalibrationOptionsAddDefaultScore - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreCalibrationOptionsAddScoreTransformation.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreCalibrationOptionsAddScoreTransformation.md deleted file mode 100644 index d258efaf74..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreCalibrationOptionsAddScoreTransformation.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.ScoreCalibrationOptionsAddScoreTransformation - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreCalibrationOptionsEnd.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreCalibrationOptionsEnd.md deleted file mode 100644 index 3647b1589b..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreCalibrationOptionsEnd.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.ScoreCalibrationOptionsEnd - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreCalibrationOptionsStart.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreCalibrationOptionsStart.md deleted file mode 100644 index 570aaf0678..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreCalibrationOptionsStart.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.ScoreCalibrationOptionsStart - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreCalibrationOptionsT.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreCalibrationOptionsT.md deleted file mode 100644 index bdfb4cc925..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreCalibrationOptionsT.md +++ /dev/null @@ -1,95 +0,0 @@ -page_type: reference - - - - - -
- - - - - - - -
- -# tflite_support.metadata_schema_py_generated.ScoreCalibrationOptionsT - - - - - - - - - - - - - - - - - - -## Methods - -

InitFromBuf

- -View source - - - - - - -

InitFromObj

- -View source - - - - - - -

InitFromPackedBuf

- -View source - - - - - - -

Pack

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreThresholdingOptions.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreThresholdingOptions.md deleted file mode 100644 index 18cbc886c2..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreThresholdingOptions.md +++ /dev/null @@ -1,100 +0,0 @@ -page_type: reference - - - - - -
- - - - - - - -
- -# tflite_support.metadata_schema_py_generated.ScoreThresholdingOptions - - - - - - - - - - - - - - -## Methods - -

GetRootAs

- -View source - - - - - - -

GetRootAsScoreThresholdingOptions

- -View source - - - -This method is deprecated. Please switch to GetRootAs. - - -

GlobalScoreThreshold

- -View source - - - - - - -

Init

- -View source - - - - - - -

ScoreThresholdingOptionsBufferHasIdentifier

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreThresholdingOptionsAddGlobalScoreThreshold.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreThresholdingOptionsAddGlobalScoreThreshold.md deleted file mode 100644 index a728040e11..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreThresholdingOptionsAddGlobalScoreThreshold.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.ScoreThresholdingOptionsAddGlobalScoreThreshold - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreThresholdingOptionsEnd.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreThresholdingOptionsEnd.md deleted file mode 100644 index 8e9c90d174..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreThresholdingOptionsEnd.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.ScoreThresholdingOptionsEnd - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreThresholdingOptionsStart.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreThresholdingOptionsStart.md deleted file mode 100644 index 6ba9d0b20a..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreThresholdingOptionsStart.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.ScoreThresholdingOptionsStart - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreThresholdingOptionsT.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreThresholdingOptionsT.md deleted file mode 100644 index da8fe81a05..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreThresholdingOptionsT.md +++ /dev/null @@ -1,95 +0,0 @@ -page_type: reference - - - - - -
- - - - - - - -
- -# tflite_support.metadata_schema_py_generated.ScoreThresholdingOptionsT - - - - - - - - - - - - - - - - - - -## Methods - -

InitFromBuf

- -View source - - - - - - -

InitFromObj

- -View source - - - - - - -

InitFromPackedBuf

- -View source - - - - - - -

Pack

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreTransformationType.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreTransformationType.md deleted file mode 100644 index 84c72799cd..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ScoreTransformationType.md +++ /dev/null @@ -1,64 +0,0 @@ -page_type: reference - - - - - -
- - - - - -
- -# tflite_support.metadata_schema_py_generated.ScoreTransformationType - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-IDENTITY - -`0` -
-INVERSE_LOGISTIC - -`2` -
-LOG - -`1` -
diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SentencePieceTokenizerOptions.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SentencePieceTokenizerOptions.md deleted file mode 100644 index ad3738ba6f..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SentencePieceTokenizerOptions.md +++ /dev/null @@ -1,164 +0,0 @@ -page_type: reference - - - - - -
- - - - - - - - - - - - -
- -# tflite_support.metadata_schema_py_generated.SentencePieceTokenizerOptions - - - - - - - - - - - - - - -## Methods - -

GetRootAs

- -View source - - - - - - -

GetRootAsSentencePieceTokenizerOptions

- -View source - - - -This method is deprecated. Please switch to GetRootAs. - - -

Init

- -View source - - - - - - -

SentencePieceModel

- -View source - - - - - - -

SentencePieceModelIsNone

- -View source - - - - - - -

SentencePieceModelLength

- -View source - - - - - - -

SentencePieceTokenizerOptionsBufferHasIdentifier

- -View source - - - - - - -

VocabFile

- -View source - - - - - - -

VocabFileIsNone

- -View source - - - - - - -

VocabFileLength

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SentencePieceTokenizerOptionsAddSentencePieceModel.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SentencePieceTokenizerOptionsAddSentencePieceModel.md deleted file mode 100644 index 963b993546..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SentencePieceTokenizerOptionsAddSentencePieceModel.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.SentencePieceTokenizerOptionsAddSentencePieceModel - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SentencePieceTokenizerOptionsAddVocabFile.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SentencePieceTokenizerOptionsAddVocabFile.md deleted file mode 100644 index b0eec8a5b5..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SentencePieceTokenizerOptionsAddVocabFile.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.SentencePieceTokenizerOptionsAddVocabFile - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SentencePieceTokenizerOptionsEnd.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SentencePieceTokenizerOptionsEnd.md deleted file mode 100644 index 18e984933c..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SentencePieceTokenizerOptionsEnd.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.SentencePieceTokenizerOptionsEnd - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SentencePieceTokenizerOptionsStart.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SentencePieceTokenizerOptionsStart.md deleted file mode 100644 index 5984e9ea27..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SentencePieceTokenizerOptionsStart.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.SentencePieceTokenizerOptionsStart - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SentencePieceTokenizerOptionsStartSentencePieceModelVector.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SentencePieceTokenizerOptionsStartSentencePieceModelVector.md deleted file mode 100644 index b39a394abb..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SentencePieceTokenizerOptionsStartSentencePieceModelVector.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.SentencePieceTokenizerOptionsStartSentencePieceModelVector - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SentencePieceTokenizerOptionsStartVocabFileVector.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SentencePieceTokenizerOptionsStartVocabFileVector.md deleted file mode 100644 index 20effa0f99..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SentencePieceTokenizerOptionsStartVocabFileVector.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.SentencePieceTokenizerOptionsStartVocabFileVector - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SentencePieceTokenizerOptionsT.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SentencePieceTokenizerOptionsT.md deleted file mode 100644 index f6d8924d36..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SentencePieceTokenizerOptionsT.md +++ /dev/null @@ -1,95 +0,0 @@ -page_type: reference - - - - - -
- - - - - - - -
- -# tflite_support.metadata_schema_py_generated.SentencePieceTokenizerOptionsT - - - - - - - - - - - - - - - - - - -## Methods - -

InitFromBuf

- -View source - - - - - - -

InitFromObj

- -View source - - - - - - -

InitFromPackedBuf

- -View source - - - - - - -

Pack

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/Stats.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/Stats.md deleted file mode 100644 index a7c0e583c0..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/Stats.md +++ /dev/null @@ -1,188 +0,0 @@ -page_type: reference - - - - - -
- - - - - - - - - - - - - - -
- -# tflite_support.metadata_schema_py_generated.Stats - - - - - - - - - - - - - - -## Methods - -

GetRootAs

- -View source - - - - - - -

GetRootAsStats

- -View source - - - -This method is deprecated. Please switch to GetRootAs. - - -

Init

- -View source - - - - - - -

Max

- -View source - - - - - - -

MaxAsNumpy

- -View source - - - - - - -

MaxIsNone

- -View source - - - - - - -

MaxLength

- -View source - - - - - - -

Min

- -View source - - - - - - -

MinAsNumpy

- -View source - - - - - - -

MinIsNone

- -View source - - - - - - -

MinLength

- -View source - - - - - - -

StatsBufferHasIdentifier

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/StatsAddMax.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/StatsAddMax.md deleted file mode 100644 index 5ba2a07d74..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/StatsAddMax.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.StatsAddMax - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/StatsAddMin.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/StatsAddMin.md deleted file mode 100644 index edb51cea17..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/StatsAddMin.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.StatsAddMin - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/StatsEnd.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/StatsEnd.md deleted file mode 100644 index 132aace4b6..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/StatsEnd.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.StatsEnd - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/StatsStart.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/StatsStart.md deleted file mode 100644 index e57f5e49cb..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/StatsStart.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.StatsStart - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/StatsStartMaxVector.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/StatsStartMaxVector.md deleted file mode 100644 index f3ec881c7a..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/StatsStartMaxVector.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.StatsStartMaxVector - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/StatsStartMinVector.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/StatsStartMinVector.md deleted file mode 100644 index 30cb8aca5b..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/StatsStartMinVector.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.StatsStartMinVector - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/StatsT.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/StatsT.md deleted file mode 100644 index be1e7fbcf8..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/StatsT.md +++ /dev/null @@ -1,95 +0,0 @@ -page_type: reference - - - - - -
- - - - - - - -
- -# tflite_support.metadata_schema_py_generated.StatsT - - - - - - - - - - - - - - - - - - -## Methods - -

InitFromBuf

- -View source - - - - - - -

InitFromObj

- -View source - - - - - - -

InitFromPackedBuf

- -View source - - - - - - -

Pack

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadata.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadata.md deleted file mode 100644 index b9d41fca38..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadata.md +++ /dev/null @@ -1,416 +0,0 @@ -page_type: reference - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -# tflite_support.metadata_schema_py_generated.SubGraphMetadata - - - - - - - - - - - - - - -## Methods - -

AssociatedFiles

- -View source - - - - - - -

AssociatedFilesIsNone

- -View source - - - - - - -

AssociatedFilesLength

- -View source - - - - - - -

CustomMetadata

- -View source - - - - - - -

CustomMetadataIsNone

- -View source - - - - - - -

CustomMetadataLength

- -View source - - - - - - -

Description

- -View source - - - - - - -

GetRootAs

- -View source - - - - - - -

GetRootAsSubGraphMetadata

- -View source - - - -This method is deprecated. Please switch to GetRootAs. - - -

Init

- -View source - - - - - - -

InputProcessUnits

- -View source - - - - - - -

InputProcessUnitsIsNone

- -View source - - - - - - -

InputProcessUnitsLength

- -View source - - - - - - -

InputTensorGroups

- -View source - - - - - - -

InputTensorGroupsIsNone

- -View source - - - - - - -

InputTensorGroupsLength

- -View source - - - - - - -

InputTensorMetadata

- -View source - - - - - - -

InputTensorMetadataIsNone

- -View source - - - - - - -

InputTensorMetadataLength

- -View source - - - - - - -

Name

- -View source - - - - - - -

OutputProcessUnits

- -View source - - - - - - -

OutputProcessUnitsIsNone

- -View source - - - - - - -

OutputProcessUnitsLength

- -View source - - - - - - -

OutputTensorGroups

- -View source - - - - - - -

OutputTensorGroupsIsNone

- -View source - - - - - - -

OutputTensorGroupsLength

- -View source - - - - - - -

OutputTensorMetadata

- -View source - - - - - - -

OutputTensorMetadataIsNone

- -View source - - - - - - -

OutputTensorMetadataLength

- -View source - - - - - - -

SubGraphMetadataBufferHasIdentifier

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataAddAssociatedFiles.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataAddAssociatedFiles.md deleted file mode 100644 index 4f65b4f356..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataAddAssociatedFiles.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.SubGraphMetadataAddAssociatedFiles - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataAddCustomMetadata.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataAddCustomMetadata.md deleted file mode 100644 index 59c36580fc..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataAddCustomMetadata.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.SubGraphMetadataAddCustomMetadata - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataAddDescription.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataAddDescription.md deleted file mode 100644 index d2b21c7182..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataAddDescription.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.SubGraphMetadataAddDescription - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataAddInputProcessUnits.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataAddInputProcessUnits.md deleted file mode 100644 index bd2b42c828..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataAddInputProcessUnits.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.SubGraphMetadataAddInputProcessUnits - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataAddInputTensorGroups.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataAddInputTensorGroups.md deleted file mode 100644 index 1b24e47900..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataAddInputTensorGroups.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.SubGraphMetadataAddInputTensorGroups - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataAddInputTensorMetadata.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataAddInputTensorMetadata.md deleted file mode 100644 index 330a3134dd..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataAddInputTensorMetadata.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.SubGraphMetadataAddInputTensorMetadata - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataAddName.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataAddName.md deleted file mode 100644 index f69b7634ea..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataAddName.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.SubGraphMetadataAddName - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataAddOutputProcessUnits.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataAddOutputProcessUnits.md deleted file mode 100644 index d560149a9c..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataAddOutputProcessUnits.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.SubGraphMetadataAddOutputProcessUnits - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataAddOutputTensorGroups.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataAddOutputTensorGroups.md deleted file mode 100644 index 715a1e0774..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataAddOutputTensorGroups.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.SubGraphMetadataAddOutputTensorGroups - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataAddOutputTensorMetadata.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataAddOutputTensorMetadata.md deleted file mode 100644 index 773424d52e..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataAddOutputTensorMetadata.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.SubGraphMetadataAddOutputTensorMetadata - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataEnd.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataEnd.md deleted file mode 100644 index d7a3060139..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataEnd.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.SubGraphMetadataEnd - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataStart.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataStart.md deleted file mode 100644 index 004caea3ad..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataStart.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.SubGraphMetadataStart - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataStartAssociatedFilesVector.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataStartAssociatedFilesVector.md deleted file mode 100644 index d74618db63..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataStartAssociatedFilesVector.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.SubGraphMetadataStartAssociatedFilesVector - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataStartCustomMetadataVector.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataStartCustomMetadataVector.md deleted file mode 100644 index b0c3df405f..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataStartCustomMetadataVector.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.SubGraphMetadataStartCustomMetadataVector - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataStartInputProcessUnitsVector.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataStartInputProcessUnitsVector.md deleted file mode 100644 index 0836673fd8..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataStartInputProcessUnitsVector.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.SubGraphMetadataStartInputProcessUnitsVector - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataStartInputTensorGroupsVector.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataStartInputTensorGroupsVector.md deleted file mode 100644 index 524fd4de6a..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataStartInputTensorGroupsVector.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.SubGraphMetadataStartInputTensorGroupsVector - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataStartInputTensorMetadataVector.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataStartInputTensorMetadataVector.md deleted file mode 100644 index 56bf86c825..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataStartInputTensorMetadataVector.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.SubGraphMetadataStartInputTensorMetadataVector - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataStartOutputProcessUnitsVector.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataStartOutputProcessUnitsVector.md deleted file mode 100644 index 4895d55e4c..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataStartOutputProcessUnitsVector.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.SubGraphMetadataStartOutputProcessUnitsVector - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataStartOutputTensorGroupsVector.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataStartOutputTensorGroupsVector.md deleted file mode 100644 index 1e344738bb..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataStartOutputTensorGroupsVector.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.SubGraphMetadataStartOutputTensorGroupsVector - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataStartOutputTensorMetadataVector.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataStartOutputTensorMetadataVector.md deleted file mode 100644 index fc6f3d4d06..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataStartOutputTensorMetadataVector.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.SubGraphMetadataStartOutputTensorMetadataVector - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataT.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataT.md deleted file mode 100644 index dacd8a91f7..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/SubGraphMetadataT.md +++ /dev/null @@ -1,95 +0,0 @@ -page_type: reference - - - - - -
- - - - - - - -
- -# tflite_support.metadata_schema_py_generated.SubGraphMetadataT - - - - - - - - - - - - - - - - - - -## Methods - -

InitFromBuf

- -View source - - - - - - -

InitFromObj

- -View source - - - - - - -

InitFromPackedBuf

- -View source - - - - - - -

Pack

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorGroup.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorGroup.md deleted file mode 100644 index 9e42f9768e..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorGroup.md +++ /dev/null @@ -1,138 +0,0 @@ -page_type: reference - - - - - -
- - - - - - - - - - -
- -# tflite_support.metadata_schema_py_generated.TensorGroup - - - - - - - - - - - - - - -## Methods - -

GetRootAs

- -View source - - - - - - -

GetRootAsTensorGroup

- -View source - - - -This method is deprecated. Please switch to GetRootAs. - - -

Init

- -View source - - - - - - -

Name

- -View source - - - - - - -

TensorGroupBufferHasIdentifier

- -View source - - - - - - -

TensorNames

- -View source - - - - - - -

TensorNamesIsNone

- -View source - - - - - - -

TensorNamesLength

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorGroupAddName.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorGroupAddName.md deleted file mode 100644 index 20d9e9e6e4..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorGroupAddName.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.TensorGroupAddName - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorGroupAddTensorNames.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorGroupAddTensorNames.md deleted file mode 100644 index 9d579be557..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorGroupAddTensorNames.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.TensorGroupAddTensorNames - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorGroupEnd.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorGroupEnd.md deleted file mode 100644 index f991624fa3..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorGroupEnd.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.TensorGroupEnd - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorGroupStart.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorGroupStart.md deleted file mode 100644 index 0f85126a53..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorGroupStart.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.TensorGroupStart - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorGroupStartTensorNamesVector.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorGroupStartTensorNamesVector.md deleted file mode 100644 index 5339618e4f..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorGroupStartTensorNamesVector.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.TensorGroupStartTensorNamesVector - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorGroupT.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorGroupT.md deleted file mode 100644 index 8879471419..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorGroupT.md +++ /dev/null @@ -1,95 +0,0 @@ -page_type: reference - - - - - -
- - - - - - - -
- -# tflite_support.metadata_schema_py_generated.TensorGroupT - - - - - - - - - - - - - - - - - - -## Methods - -

InitFromBuf

- -View source - - - - - - -

InitFromObj

- -View source - - - - - - -

InitFromPackedBuf

- -View source - - - - - - -

Pack

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadata.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadata.md deleted file mode 100644 index 0ab61eddae..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadata.md +++ /dev/null @@ -1,250 +0,0 @@ -page_type: reference - - - - - -
- - - - - - - - - - - - - - - - - - - -
- -# tflite_support.metadata_schema_py_generated.TensorMetadata - - - - - - - - - - - - - - -## Methods - -

AssociatedFiles

- -View source - - - - - - -

AssociatedFilesIsNone

- -View source - - - - - - -

AssociatedFilesLength

- -View source - - - - - - -

Content

- -View source - - - - - - -

Description

- -View source - - - - - - -

DimensionNames

- -View source - - - - - - -

DimensionNamesIsNone

- -View source - - - - - - -

DimensionNamesLength

- -View source - - - - - - -

GetRootAs

- -View source - - - - - - -

GetRootAsTensorMetadata

- -View source - - - -This method is deprecated. Please switch to GetRootAs. - - -

Init

- -View source - - - - - - -

Name

- -View source - - - - - - -

ProcessUnits

- -View source - - - - - - -

ProcessUnitsIsNone

- -View source - - - - - - -

ProcessUnitsLength

- -View source - - - - - - -

Stats

- -View source - - - - - - -

TensorMetadataBufferHasIdentifier

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataAddAssociatedFiles.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataAddAssociatedFiles.md deleted file mode 100644 index 736321331f..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataAddAssociatedFiles.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.TensorMetadataAddAssociatedFiles - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataAddContent.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataAddContent.md deleted file mode 100644 index fc9f599ca5..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataAddContent.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.TensorMetadataAddContent - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataAddDescription.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataAddDescription.md deleted file mode 100644 index 02390d009e..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataAddDescription.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.TensorMetadataAddDescription - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataAddDimensionNames.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataAddDimensionNames.md deleted file mode 100644 index ea9a2b89e4..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataAddDimensionNames.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.TensorMetadataAddDimensionNames - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataAddName.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataAddName.md deleted file mode 100644 index 1ed35aca18..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataAddName.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.TensorMetadataAddName - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataAddProcessUnits.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataAddProcessUnits.md deleted file mode 100644 index baada0c749..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataAddProcessUnits.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.TensorMetadataAddProcessUnits - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataAddStats.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataAddStats.md deleted file mode 100644 index 72245bf4d6..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataAddStats.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.TensorMetadataAddStats - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataEnd.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataEnd.md deleted file mode 100644 index 4a9d621205..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataEnd.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.TensorMetadataEnd - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataStart.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataStart.md deleted file mode 100644 index b2eaf7fc3f..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataStart.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.TensorMetadataStart - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataStartAssociatedFilesVector.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataStartAssociatedFilesVector.md deleted file mode 100644 index 54295c1539..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataStartAssociatedFilesVector.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.TensorMetadataStartAssociatedFilesVector - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataStartDimensionNamesVector.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataStartDimensionNamesVector.md deleted file mode 100644 index 76961f45a9..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataStartDimensionNamesVector.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.TensorMetadataStartDimensionNamesVector - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataStartProcessUnitsVector.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataStartProcessUnitsVector.md deleted file mode 100644 index 0eb06aa51e..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataStartProcessUnitsVector.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.TensorMetadataStartProcessUnitsVector - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataT.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataT.md deleted file mode 100644 index edf43b2646..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/TensorMetadataT.md +++ /dev/null @@ -1,95 +0,0 @@ -page_type: reference - - - - - -
- - - - - - - -
- -# tflite_support.metadata_schema_py_generated.TensorMetadataT - - - - - - - - - - - - - - - - - - -## Methods - -

InitFromBuf

- -View source - - - - - - -

InitFromObj

- -View source - - - - - - -

InitFromPackedBuf

- -View source - - - - - - -

Pack

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ValueRange.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ValueRange.md deleted file mode 100644 index 102c0f2b1a..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ValueRange.md +++ /dev/null @@ -1,112 +0,0 @@ -page_type: reference - - - - - -
- - - - - - - - -
- -# tflite_support.metadata_schema_py_generated.ValueRange - - - - - - - - - - - - - - -## Methods - -

GetRootAs

- -View source - - - - - - -

GetRootAsValueRange

- -View source - - - -This method is deprecated. Please switch to GetRootAs. - - -

Init

- -View source - - - - - - -

Max

- -View source - - - - - - -

Min

- -View source - - - - - - -

ValueRangeBufferHasIdentifier

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ValueRangeAddMax.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ValueRangeAddMax.md deleted file mode 100644 index 911f4334dc..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ValueRangeAddMax.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.ValueRangeAddMax - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ValueRangeAddMin.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ValueRangeAddMin.md deleted file mode 100644 index 54598abb87..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ValueRangeAddMin.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.ValueRangeAddMin - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ValueRangeEnd.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ValueRangeEnd.md deleted file mode 100644 index 0ce6f91fb1..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ValueRangeEnd.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.ValueRangeEnd - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ValueRangeStart.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ValueRangeStart.md deleted file mode 100644 index a9482b7ec7..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ValueRangeStart.md +++ /dev/null @@ -1,38 +0,0 @@ -page_type: reference - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.ValueRangeStart - - - - - - - - - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ValueRangeT.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ValueRangeT.md deleted file mode 100644 index e0fa9844a9..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/ValueRangeT.md +++ /dev/null @@ -1,95 +0,0 @@ -page_type: reference - - - - - -
- - - - - - - -
- -# tflite_support.metadata_schema_py_generated.ValueRangeT - - - - - - - - - - - - - - - - - - -## Methods - -

InitFromBuf

- -View source - - - - - - -

InitFromObj

- -View source - - - - - - -

InitFromPackedBuf

- -View source - - - - - - -

Pack

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/import_numpy.md b/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/import_numpy.md deleted file mode 100644 index 9c21529664..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_schema_py_generated/import_numpy.md +++ /dev/null @@ -1,33 +0,0 @@ -page_type: reference -description: Returns the numpy module if it exists on the system, otherwise returns None. - - - - - - -
- - -
- -# tflite_support.metadata_schema_py_generated.import_numpy - - - - - - - - - -Returns the numpy module if it exists on the system, otherwise returns None. - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_writers.md b/site/en/lite/api_docs/python/tflite_support/metadata_writers.md deleted file mode 100644 index 6e3113f639..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_writers.md +++ /dev/null @@ -1,66 +0,0 @@ -page_type: reference -description: TF Lite Metadata Writer API. - - - - - - -
- - -
- -# Module: tflite_support.metadata_writers - - - - - - - - - -TF Lite Metadata Writer API. - - -This module provides interfaces for writing metadata for common model types -supported by the task library, such as: - - * Image classification - * Object detection - * Image segmentation - * (Bert) Natural language classification - * Audio classification - -It is provided as part of the `tflite-support` package: - -``` -pip install tflite-support -``` - -Learn more about this API in the [metadata writer -tutorial](https://www.tensorflow.org/lite/convert/metadata_writer_tutorial). - -## Modules - -[`audio_classifier`](../tflite_support/metadata_writers/audio_classifier) module: Writes metadata and label file to the audio classifier models. - -[`bert_nl_classifier`](../tflite_support/metadata_writers/bert_nl_classifier) module: Writes metadata and label file to the Bert NL classifier models. - -[`image_classifier`](../tflite_support/metadata_writers/image_classifier) module: Writes metadata and label file to the image classifier models. - -[`image_segmenter`](../tflite_support/metadata_writers/image_segmenter) module: Writes metadata and label file to the image segmenter models. - -[`metadata_info`](../tflite_support/metadata_writers/metadata_info) module: Helper classes for common model metadata information. - -[`nl_classifier`](../tflite_support/metadata_writers/nl_classifier) module: Writes metadata and label file to the NL classifier models. - -[`object_detector`](../tflite_support/metadata_writers/object_detector) module: Writes metadata and label file to the object detector models. - -[`writer_utils`](../tflite_support/metadata_writers/writer_utils) module: Helper methods for writing metadata into TFLite models. diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_writers/audio_classifier.md b/site/en/lite/api_docs/python/tflite_support/metadata_writers/audio_classifier.md deleted file mode 100644 index a16506d8ae..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_writers/audio_classifier.md +++ /dev/null @@ -1,43 +0,0 @@ -page_type: reference -description: Writes metadata and label file to the audio classifier models. - - - - - - -
- - -
- -# Module: tflite_support.metadata_writers.audio_classifier - - - - - - - - - -Writes metadata and label file to the audio classifier models. - - - -## Modules - -[`metadata_info`](../../tflite_support/metadata_writers/metadata_info) module: Helper classes for common model metadata information. - -[`metadata_writer`](../../tflite_support/metadata_writers/audio_classifier/metadata_writer) module: Helper class to write metadata into TFLite models. - -[`writer_utils`](../../tflite_support/metadata_writers/writer_utils) module: Helper methods for writing metadata into TFLite models. - -## Classes - -[`class MetadataWriter`](../../tflite_support/metadata_writers/audio_classifier/MetadataWriter): Writes metadata into an audio classifier. diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/MetadataWriter.md b/site/en/lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/MetadataWriter.md deleted file mode 100644 index 44f4aa4d15..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/MetadataWriter.md +++ /dev/null @@ -1,506 +0,0 @@ -page_type: reference -description: Writes metadata into an audio classifier. - - - - - - -
- - - - - - - - - - -
- -# tflite_support.metadata_writers.audio_classifier.MetadataWriter - - - - - - - - - -Writes metadata into an audio classifier. - -Inherits From: [`MetadataWriter`](../../../tflite_support/metadata_writers/audio_classifier/metadata_writer/MetadataWriter) - - - - - - - - - - - - - - - - - - - - - - - -
-`model_buffer` - -valid buffer of the model file. -
-`metadata_buffer` - -valid buffer of the metadata. -
-`associated_files` - -path to the associated files to be populated. -
- - - -## Methods - -

create_for_inference

- -View source - - - -Creates mandatory metadata for TFLite Support inference. - -The parameters required in this method are mandatory when using TFLite -Support features, such as Task library and Codegen tool (Android Studio ML -Binding). Other metadata fields will be set to default. If other fields need -to be filled, use the method `create_from_metadata_info` to edit them. - - - - - - - - - - - - - - - - - - - - - - -
Args
-`model_buffer` - -valid buffer of the model file. -
-`sample_rate` - -the sample rate in Hz when the audio was captured. -
-`channels` - -the channel count of the audio. -
-`label_file_paths` - -paths to the label files [1] in the classification -tensor. Pass in an empty list if the model does not have any label file. -
-`score_calibration_md` - -information of the score calibration operation [2] - in the classification tensor. Optional if the model does not use score - calibration. -[1]: - https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L95 -[2]: - https://github.com/tensorflow/tflite-support/blob/5e0cdf5460788c481f5cd18aab8728ec36cf9733/tensorflow_lite_support/metadata/metadata_schema.fbs#L434 -
- - - - - - - - - - - -
Returns
-A MetadataWriter object. -
- - - -

create_from_metadata

- -View source - - - -Creates MetadataWriter based on the metadata Flatbuffers Python Objects. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Args
-`model_buffer` - -valid buffer of the model file. -
-`model_metadata` - -general model metadata [1]. The subgraph_metadata will be -refreshed with input_metadata and output_metadata. -
-`input_metadata` - -a list of metadata of the input tensors [2]. -
-`output_metadata` - -a list of metadata of the output tensors [3]. -
-`associated_files` - -path to the associated files to be populated. -
-`input_process_units` - -a lits of metadata of the input process units [4]. -
-`output_process_units` - -a lits of metadata of the output process units [5]. -[1]: - https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L640-L681 -[2]: - https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L590 -[3]: - https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L599 -[4]: - https://github.com/tensorflow/tflite-support/blob/b5cc57c74f7990d8bc055795dfe8d50267064a57/tensorflow_lite_support/metadata/metadata_schema.fbs#L646 -[5]: - https://github.com/tensorflow/tflite-support/blob/b5cc57c74f7990d8bc055795dfe8d50267064a57/tensorflow_lite_support/metadata/metadata_schema.fbs#L650 -
- - - - - - - - - - - -
Returns
-A MetadataWriter Object. -
- - - -

create_from_metadata_info

- -View source - - - -Creates MetadataWriter based on general/input/output information. - - - - - - - - - - - - - - - - - - - - -
Args
-`model_buffer` - -valid buffer of the model file. -
-`general_md` - -general information about the model. If not specified, default -general metadata will be generated. -
-`input_md` - -input audio tensor informaton. If not specified, default input -metadata will be generated. -
-`output_md` - -output classification tensor informaton. If not specified, -default output metadata will be generated. -
- - - - - - - - - - - -
Returns
-A MetadataWriter object. -
- - - -

create_from_metadata_info_for_multihead

- -View source - - - -Creates a MetadataWriter instance for multihead models. - - - - - - - - - - - - - - - - - - - - -
Args
-`model_buffer` - -valid buffer of the model file. -
-`general_md` - -general information about the model. If not specified, default -general metadata will be generated. -
-`input_md` - -input audio tensor informaton. If not specified, default input -metadata will be generated. -
-`output_md_list` - -information of each output tensor head. If not specified, - default metadata will be generated for each output tensor. If - `tensor_name` in each `ClassificationTensorMd` instance is not - specified, elements in `output_md_list` need to have one-to-one mapping - with the output tensors [1] in the TFLite model. -[1]: - https://github.com/tensorflow/tflite-support/blob/b2a509716a2d71dfff706468680a729cc1604cff/tensorflow_lite_support/metadata/metadata_schema.fbs#L605-L612 -
- - - - - - - - - - - -
Returns
-A MetadataWriter object. -
- - - -

get_metadata_json

- -View source - - - -Gets the generated JSON metadata string before populated into model. - -This method returns the metadata buffer before populated into the model. -More fields could be filled by MetadataPopulator, such as -min_parser_version. Use get_populated_metadata_json() if you want to get the -final metadata string. - - - - - - - - - -
Returns
-The generated JSON metadata string before populated into model. -
- - - -

get_populated_metadata_json

- -View source - - - -Gets the generated JSON metadata string after populated into model. - -More fields could be filled by MetadataPopulator, such as -min_parser_version. Use get_metadata_json() if you want to get the -original metadata string. - - - - - - - - - -
Returns
-The generated JSON metadata string after populated into model. -
- - - -

populate

- -View source - - - -Populates the metadata and label file to the model file. - - - - - - - - - - -
Returns
-A new model buffer with the metadata and associated files. -
diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer.md b/site/en/lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer.md deleted file mode 100644 index c9878db114..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer.md +++ /dev/null @@ -1,49 +0,0 @@ -page_type: reference -description: Helper class to write metadata into TFLite models. - - - - - - -
- - -
- -# Module: tflite_support.metadata_writers.audio_classifier.metadata_writer - - - - - - - - - -Helper class to write metadata into TFLite models. - - - - - -## Modules - -[`metadata_info`](../../../tflite_support/metadata_writers/metadata_info) module: Helper classes for common model metadata information. - -[`writer_utils`](../../../tflite_support/metadata_writers/writer_utils) module: Helper methods for writing metadata into TFLite models. - -## Classes - -[`class MetadataWriter`](../../../tflite_support/metadata_writers/audio_classifier/metadata_writer/MetadataWriter): Writes the metadata and associated files into a TFLite model. diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer/MetadataWriter.md b/site/en/lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer/MetadataWriter.md deleted file mode 100644 index 0bde5891bc..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_writers/audio_classifier/metadata_writer/MetadataWriter.md +++ /dev/null @@ -1,368 +0,0 @@ -page_type: reference -description: Writes the metadata and associated files into a TFLite model. - - - - - - -
- - - - - - - - -
- -# tflite_support.metadata_writers.audio_classifier.metadata_writer.MetadataWriter - - - - - - - - - -Writes the metadata and associated files into a TFLite model. - - - - - - - - - - - - - - - - - - - - - - - - - -
-`model_buffer` - -valid buffer of the model file. -
-`metadata_buffer` - -valid buffer of the metadata. -
-`associated_files` - -path to the associated files to be populated. -
- - - -## Methods - -

create_from_metadata

- -View source - - - -Creates MetadataWriter based on the metadata Flatbuffers Python Objects. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Args
-`model_buffer` - -valid buffer of the model file. -
-`model_metadata` - -general model metadata [1]. The subgraph_metadata will be -refreshed with input_metadata and output_metadata. -
-`input_metadata` - -a list of metadata of the input tensors [2]. -
-`output_metadata` - -a list of metadata of the output tensors [3]. -
-`associated_files` - -path to the associated files to be populated. -
-`input_process_units` - -a lits of metadata of the input process units [4]. -
-`output_process_units` - -a lits of metadata of the output process units [5]. -[1]: - https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L640-L681 -[2]: - https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L590 -[3]: - https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L599 -[4]: - https://github.com/tensorflow/tflite-support/blob/b5cc57c74f7990d8bc055795dfe8d50267064a57/tensorflow_lite_support/metadata/metadata_schema.fbs#L646 -[5]: - https://github.com/tensorflow/tflite-support/blob/b5cc57c74f7990d8bc055795dfe8d50267064a57/tensorflow_lite_support/metadata/metadata_schema.fbs#L650 -
- - - - - - - - - - - -
Returns
-A MetadataWriter Object. -
- - - -

create_from_metadata_info

- -View source - - - -Creates MetadataWriter based on the metadata information. - - - - - - - - - - - - - - - - - - - - - - - -
Args
-`model_buffer` - -valid buffer of the model file. -
-`general_md` - -general information about the model. -
-`input_md` - -metadata information of the input tensors. -
-`output_md` - -metadata information of the output tensors. -
-`associated_files` - -path to the associated files to be populated. -
- - - - - - - - - - - -
Returns
-A MetadataWriter Object. -
- - - - - - - - - - - - -
Raises
-`ValueError` - -if the tensor names from `input_md` and `output_md` do not -match the tensor names read from the model. -
- - - -

get_metadata_json

- -View source - - - -Gets the generated JSON metadata string before populated into model. - -This method returns the metadata buffer before populated into the model. -More fields could be filled by MetadataPopulator, such as -min_parser_version. Use get_populated_metadata_json() if you want to get the -final metadata string. - - - - - - - - - -
Returns
-The generated JSON metadata string before populated into model. -
- - - -

get_populated_metadata_json

- -View source - - - -Gets the generated JSON metadata string after populated into model. - -More fields could be filled by MetadataPopulator, such as -min_parser_version. Use get_metadata_json() if you want to get the -original metadata string. - - - - - - - - - -
Returns
-The generated JSON metadata string after populated into model. -
- - - -

populate

- -View source - - - -Populates the metadata and label file to the model file. - - - - - - - - - - -
Returns
-A new model buffer with the metadata and associated files. -
diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier.md b/site/en/lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier.md deleted file mode 100644 index f3869c5e7b..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier.md +++ /dev/null @@ -1,43 +0,0 @@ -page_type: reference -description: Writes metadata and label file to the Bert NL classifier models. - - - - - - -
- - -
- -# Module: tflite_support.metadata_writers.bert_nl_classifier - - - - - - - - - -Writes metadata and label file to the Bert NL classifier models. - - - -## Modules - -[`metadata_info`](../../tflite_support/metadata_writers/metadata_info) module: Helper classes for common model metadata information. - -[`metadata_writer`](../../tflite_support/metadata_writers/audio_classifier/metadata_writer) module: Helper class to write metadata into TFLite models. - -[`writer_utils`](../../tflite_support/metadata_writers/writer_utils) module: Helper methods for writing metadata into TFLite models. - -## Classes - -[`class MetadataWriter`](../../tflite_support/metadata_writers/bert_nl_classifier/MetadataWriter): Writes metadata into the Bert NL classifier. diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/MetadataWriter.md b/site/en/lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/MetadataWriter.md deleted file mode 100644 index e9008e9522..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_writers/bert_nl_classifier/MetadataWriter.md +++ /dev/null @@ -1,448 +0,0 @@ -page_type: reference -description: Writes metadata into the Bert NL classifier. - - - - - - -
- - - - - - - - - -
- -# tflite_support.metadata_writers.bert_nl_classifier.MetadataWriter - - - - - - - - - -Writes metadata into the Bert NL classifier. - -Inherits From: [`MetadataWriter`](../../../tflite_support/metadata_writers/audio_classifier/metadata_writer/MetadataWriter) - - - - - - - - - - - - - - - - - - - - - - - -
-`model_buffer` - -valid buffer of the model file. -
-`metadata_buffer` - -valid buffer of the metadata. -
-`associated_files` - -path to the associated files to be populated. -
- - - -## Methods - -

create_for_inference

- -View source - - - -Creates mandatory metadata for TFLite Support inference. - -The parameters required in this method are mandatory when using TFLite -Support features, such as Task library and Codegen tool (Android Studio ML -Binding). Other metadata fields will be set to default. If other fields need -to be filled, use the method `create_from_metadata_info` to edit them. - -`ids_name`, `mask_name`, and `segment_name` correspond to the Tensor.name -in the TFLite schema, which help to determine the tensor order when -populating metadata. The default values come from Model Maker. - - - - - - - - - - - - - - - - - - - - - - - - - -
Args
-`model_buffer` - -valid buffer of the model file. -
-`tokenizer_md` - -information of the tokenizer used to process the input -string, if any. Supported tokenziers are: `BertTokenizer` [1] and - `SentencePieceTokenizer` [2]. If the tokenizer is `RegexTokenizer` - [3], refer to nl_classifier.MetadataWriter. -[1]: -https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L436 -[2]: -https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L473 -[3]: -https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L475 -
-`label_file_paths` - -paths to the label files [4] in the classification -tensor. Pass in an empty list if the model does not have any label file. -[4]: -https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L95 -
-`ids_name` - -name of the ids tensor, which represents the tokenized ids of -the input text. -
-`mask_name` - -name of the mask tensor, which represents the mask with 1 for -real tokens and 0 for padding tokens. -
-`segment_name` - -name of the segment ids tensor, where `0` stands for the -first sequence, and `1` stands for the second sequence if exists. -
- - - - - - - - - - - -
Returns
-A MetadataWriter object. -
- - - -

create_from_metadata

- -View source - - - -Creates MetadataWriter based on the metadata Flatbuffers Python Objects. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Args
-`model_buffer` - -valid buffer of the model file. -
-`model_metadata` - -general model metadata [1]. The subgraph_metadata will be -refreshed with input_metadata and output_metadata. -
-`input_metadata` - -a list of metadata of the input tensors [2]. -
-`output_metadata` - -a list of metadata of the output tensors [3]. -
-`associated_files` - -path to the associated files to be populated. -
-`input_process_units` - -a lits of metadata of the input process units [4]. -
-`output_process_units` - -a lits of metadata of the output process units [5]. -[1]: - https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L640-L681 -[2]: - https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L590 -[3]: - https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L599 -[4]: - https://github.com/tensorflow/tflite-support/blob/b5cc57c74f7990d8bc055795dfe8d50267064a57/tensorflow_lite_support/metadata/metadata_schema.fbs#L646 -[5]: - https://github.com/tensorflow/tflite-support/blob/b5cc57c74f7990d8bc055795dfe8d50267064a57/tensorflow_lite_support/metadata/metadata_schema.fbs#L650 -
- - - - - - - - - - - -
Returns
-A MetadataWriter Object. -
- - - -

create_from_metadata_info

- -View source - - - -Creates MetadataWriter based on general/input/output information. - - - - - - - - - - - - - - - - - - - - -
Args
-`model_buffer` - -valid buffer of the model file. -
-`general_md` - -general information about the model. If not specified, default -general metadata will be generated. -
-`input_md` - -input tensor information. If not specified, default input -metadata will be generated. -
-`output_md` - -output classification tensor informaton. If not specified, -default output metadata will be generated. -
- - - - - - - - - - - -
Returns
-A MetadataWriter object. -
- - - -

get_metadata_json

- -View source - - - -Gets the generated JSON metadata string before populated into model. - -This method returns the metadata buffer before populated into the model. -More fields could be filled by MetadataPopulator, such as -min_parser_version. Use get_populated_metadata_json() if you want to get the -final metadata string. - - - - - - - - - -
Returns
-The generated JSON metadata string before populated into model. -
- - - -

get_populated_metadata_json

- -View source - - - -Gets the generated JSON metadata string after populated into model. - -More fields could be filled by MetadataPopulator, such as -min_parser_version. Use get_metadata_json() if you want to get the -original metadata string. - - - - - - - - - -
Returns
-The generated JSON metadata string after populated into model. -
- - - -

populate

- -View source - - - -Populates the metadata and label file to the model file. - - - - - - - - - - -
Returns
-A new model buffer with the metadata and associated files. -
diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_writers/image_classifier.md b/site/en/lite/api_docs/python/tflite_support/metadata_writers/image_classifier.md deleted file mode 100644 index 5762416cff..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_writers/image_classifier.md +++ /dev/null @@ -1,94 +0,0 @@ -page_type: reference -description: Writes metadata and label file to the image classifier models. - - - - - - -
- - - - - - - -
- -# Module: tflite_support.metadata_writers.image_classifier - - - - - - - - - -Writes metadata and label file to the image classifier models. - - - -## Modules - -[`metadata_info`](../../tflite_support/metadata_writers/metadata_info) module: Helper classes for common model metadata information. - -[`metadata_writer`](../../tflite_support/metadata_writers/audio_classifier/metadata_writer) module: Helper class to write metadata into TFLite models. - -[`writer_utils`](../../tflite_support/metadata_writers/writer_utils) module: Helper methods for writing metadata into TFLite models. - -## Classes - -[`class MetadataWriter`](../../tflite_support/metadata_writers/image_classifier/MetadataWriter): Writes metadata into an image classifier. - - - - - - - - - - - - - - - - - - - - - - - - -
-INPUT_DESCRIPTION - -`'Input image to be classified.'` -
-INPUT_NAME - -`'image'` -
-MODEL_DESCRIPTION - -`('Identify the most prominent object in the image from a known set of ' - 'categories.')` -
-OUTPUT_DESCRIPTION - -`'Probabilities of the labels respectively.'` -
-OUTPUT_NAME - -`'probability'` -
diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_writers/image_classifier/MetadataWriter.md b/site/en/lite/api_docs/python/tflite_support/metadata_writers/image_classifier/MetadataWriter.md deleted file mode 100644 index f72c9c80c5..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_writers/image_classifier/MetadataWriter.md +++ /dev/null @@ -1,431 +0,0 @@ -page_type: reference -description: Writes metadata into an image classifier. - - - - - - -
- - - - - - - - - -
- -# tflite_support.metadata_writers.image_classifier.MetadataWriter - - - - - - - - - -Writes metadata into an image classifier. - -Inherits From: [`MetadataWriter`](../../../tflite_support/metadata_writers/audio_classifier/metadata_writer/MetadataWriter) - - - - - - - - - - - - - - - - - - - - - - - -
-`model_buffer` - -valid buffer of the model file. -
-`metadata_buffer` - -valid buffer of the metadata. -
-`associated_files` - -path to the associated files to be populated. -
- - - -## Methods - -

create_for_inference

- -View source - - - -Creates mandatory metadata for TFLite Support inference. - -The parameters required in this method are mandatory when using TFLite -Support features, such as Task library and Codegen tool (Android Studio ML -Binding). Other metadata fields will be set to default. If other fields need -to be filled, use the method `create_from_metadata_info` to edit them. - - - - - - - - - - - - - - - - - - - - - - -
Args
-`model_buffer` - -valid buffer of the model file. -
-`input_norm_mean` - -the mean value used in the input tensor normalization -[1]. -
-`input_norm_std` - -the std value used in the input tensor normalizarion [1]. -
-`label_file_paths` - -paths to the label files [2] in the classification -tensor. Pass in an empty list if the model does not have any label file. -
-`score_calibration_md` - -information of the score calibration operation [3] - in the classification tensor. Optional if the model does not use score - calibration. -[1]: - https://www.tensorflow.org/lite/convert/metadata#normalization_and_quantization_parameters -[2]: - https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L95 -[3]: - https://github.com/tensorflow/tflite-support/blob/5e0cdf5460788c481f5cd18aab8728ec36cf9733/tensorflow_lite_support/metadata/metadata_schema.fbs#L434 -
- - - - - - - - - - - -
Returns
-A MetadataWriter object. -
- - - -

create_from_metadata

- -View source - - - -Creates MetadataWriter based on the metadata Flatbuffers Python Objects. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Args
-`model_buffer` - -valid buffer of the model file. -
-`model_metadata` - -general model metadata [1]. The subgraph_metadata will be -refreshed with input_metadata and output_metadata. -
-`input_metadata` - -a list of metadata of the input tensors [2]. -
-`output_metadata` - -a list of metadata of the output tensors [3]. -
-`associated_files` - -path to the associated files to be populated. -
-`input_process_units` - -a lits of metadata of the input process units [4]. -
-`output_process_units` - -a lits of metadata of the output process units [5]. -[1]: - https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L640-L681 -[2]: - https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L590 -[3]: - https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L599 -[4]: - https://github.com/tensorflow/tflite-support/blob/b5cc57c74f7990d8bc055795dfe8d50267064a57/tensorflow_lite_support/metadata/metadata_schema.fbs#L646 -[5]: - https://github.com/tensorflow/tflite-support/blob/b5cc57c74f7990d8bc055795dfe8d50267064a57/tensorflow_lite_support/metadata/metadata_schema.fbs#L650 -
- - - - - - - - - - - -
Returns
-A MetadataWriter Object. -
- - - -

create_from_metadata_info

- -View source - - - -Creates MetadataWriter based on general/input/output information. - - - - - - - - - - - - - - - - - - - - -
Args
-`model_buffer` - -valid buffer of the model file. -
-`general_md` - -general information about the model. If not specified, default -general metadata will be generated. -
-`input_md` - -input image tensor informaton, if not specified, default input -metadata will be generated. -
-`output_md` - -output classification tensor informaton, if not specified, -default output metadata will be generated. -
- - - - - - - - - - - -
Returns
-A MetadataWriter object. -
- - - -

get_metadata_json

- -View source - - - -Gets the generated JSON metadata string before populated into model. - -This method returns the metadata buffer before populated into the model. -More fields could be filled by MetadataPopulator, such as -min_parser_version. Use get_populated_metadata_json() if you want to get the -final metadata string. - - - - - - - - - -
Returns
-The generated JSON metadata string before populated into model. -
- - - -

get_populated_metadata_json

- -View source - - - -Gets the generated JSON metadata string after populated into model. - -More fields could be filled by MetadataPopulator, such as -min_parser_version. Use get_metadata_json() if you want to get the -original metadata string. - - - - - - - - - -
Returns
-The generated JSON metadata string after populated into model. -
- - - -

populate

- -View source - - - -Populates the metadata and label file to the model file. - - - - - - - - - - -
Returns
-A new model buffer with the metadata and associated files. -
diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_writers/image_segmenter.md b/site/en/lite/api_docs/python/tflite_support/metadata_writers/image_segmenter.md deleted file mode 100644 index 04e5b9bdf7..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_writers/image_segmenter.md +++ /dev/null @@ -1,43 +0,0 @@ -page_type: reference -description: Writes metadata and label file to the image segmenter models. - - - - - - -
- - -
- -# Module: tflite_support.metadata_writers.image_segmenter - - - - - - - - - -Writes metadata and label file to the image segmenter models. - - - -## Modules - -[`metadata_info`](../../tflite_support/metadata_writers/metadata_info) module: Helper classes for common model metadata information. - -[`metadata_writer`](../../tflite_support/metadata_writers/audio_classifier/metadata_writer) module: Helper class to write metadata into TFLite models. - -[`writer_utils`](../../tflite_support/metadata_writers/writer_utils) module: Helper methods for writing metadata into TFLite models. - -## Classes - -[`class MetadataWriter`](../../tflite_support/metadata_writers/image_segmenter/MetadataWriter): Writes metadata into an image segmenter. diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/MetadataWriter.md b/site/en/lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/MetadataWriter.md deleted file mode 100644 index 0f0d48f02a..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_writers/image_segmenter/MetadataWriter.md +++ /dev/null @@ -1,420 +0,0 @@ -page_type: reference -description: Writes metadata into an image segmenter. - - - - - - -
- - - - - - - - - -
- -# tflite_support.metadata_writers.image_segmenter.MetadataWriter - - - - - - - - - -Writes metadata into an image segmenter. - -Inherits From: [`MetadataWriter`](../../../tflite_support/metadata_writers/audio_classifier/metadata_writer/MetadataWriter) - - - - - - - - - - - - - - - - - - - - - - - -
-`model_buffer` - -valid buffer of the model file. -
-`metadata_buffer` - -valid buffer of the metadata. -
-`associated_files` - -path to the associated files to be populated. -
- - - -## Methods - -

create_for_inference

- -View source - - - -Creates mandatory metadata for TFLite Support inference. - -The parameters required in this method are mandatory when using TFLite -Support features, such as Task library and Codegen tool (Android Studio ML -Binding). Other metadata fields will be set to default. If other fields need -to be filled, use the method `create_from_metadata_info` to edit them. - - - - - - - - - - - - - - - - - - - -
Args
-`model_buffer` - -valid buffer of the model file. -
-`input_norm_mean` - -the mean value used in the input tensor normalization -[1]. -
-`input_norm_std` - -the std value used in the input tensor normalizarion [1]. -
-`label_file_paths` - -paths to the label files [2] in the category tensor. - Pass in an empty list If the model does not have any label file. -[1]: - https://www.tensorflow.org/lite/convert/metadata#normalization_and_quantization_parameters -[2]: - https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L108 -
- - - - - - - - - - - -
Returns
-A MetadataWriter object. -
- - - -

create_from_metadata

- -View source - - - -Creates MetadataWriter based on the metadata Flatbuffers Python Objects. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Args
-`model_buffer` - -valid buffer of the model file. -
-`model_metadata` - -general model metadata [1]. The subgraph_metadata will be -refreshed with input_metadata and output_metadata. -
-`input_metadata` - -a list of metadata of the input tensors [2]. -
-`output_metadata` - -a list of metadata of the output tensors [3]. -
-`associated_files` - -path to the associated files to be populated. -
-`input_process_units` - -a lits of metadata of the input process units [4]. -
-`output_process_units` - -a lits of metadata of the output process units [5]. -[1]: - https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L640-L681 -[2]: - https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L590 -[3]: - https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L599 -[4]: - https://github.com/tensorflow/tflite-support/blob/b5cc57c74f7990d8bc055795dfe8d50267064a57/tensorflow_lite_support/metadata/metadata_schema.fbs#L646 -[5]: - https://github.com/tensorflow/tflite-support/blob/b5cc57c74f7990d8bc055795dfe8d50267064a57/tensorflow_lite_support/metadata/metadata_schema.fbs#L650 -
- - - - - - - - - - - -
Returns
-A MetadataWriter Object. -
- - - -

create_from_metadata_info

- -View source - - - -Creates MetadataWriter based on general/input/outputs information. - - - - - - - - - - - - - - - - - - - - -
Args
-`model_buffer` - -valid buffer of the model file. -
-`general_md` - -general information about the model. -
-`input_md` - -input image tensor informaton. -
-`output_md` - -output segmentation mask tensor informaton. This tensor is a -multidimensional array of [1 x mask_height x mask_width x num_classes], -where mask_width and mask_height are the dimensions of the segmentation -masks produced by the model, and num_classes is the number of classes -supported by the model. -
- - - - - - - - - - - -
Returns
-A MetadataWriter object. -
- - - -

get_metadata_json

- -View source - - - -Gets the generated JSON metadata string before populated into model. - -This method returns the metadata buffer before populated into the model. -More fields could be filled by MetadataPopulator, such as -min_parser_version. Use get_populated_metadata_json() if you want to get the -final metadata string. - - - - - - - - - -
Returns
-The generated JSON metadata string before populated into model. -
- - - -

get_populated_metadata_json

- -View source - - - -Gets the generated JSON metadata string after populated into model. - -More fields could be filled by MetadataPopulator, such as -min_parser_version. Use get_metadata_json() if you want to get the -original metadata string. - - - - - - - - - -
Returns
-The generated JSON metadata string after populated into model. -
- - - -

populate

- -View source - - - -Populates the metadata and label file to the model file. - - - - - - - - - - -
Returns
-A new model buffer with the metadata and associated files. -
diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_writers/metadata_info.md b/site/en/lite/api_docs/python/tflite_support/metadata_writers/metadata_info.md deleted file mode 100644 index c1424b13d2..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_writers/metadata_info.md +++ /dev/null @@ -1,73 +0,0 @@ -page_type: reference -description: Helper classes for common model metadata information. - - - - - - -
- - -
- -# Module: tflite_support.metadata_writers.metadata_info - - - - - - - - - -Helper classes for common model metadata information. - - - - - -## Modules - -[`writer_utils`](../../tflite_support/metadata_writers/writer_utils) module: Helper methods for writing metadata into TFLite models. - -## Classes - -[`class AssociatedFileMd`](../../tflite_support/metadata_writers/metadata_info/AssociatedFileMd): A container for common associated file metadata information. - -[`class BertInputTensorsMd`](../../tflite_support/metadata_writers/metadata_info/BertInputTensorsMd): A container for the input tensor metadata information of Bert models. - -[`class BertTokenizerMd`](../../tflite_support/metadata_writers/metadata_info/BertTokenizerMd): A container for the Bert tokenizer [1] metadata information. - -[`class CategoryTensorMd`](../../tflite_support/metadata_writers/metadata_info/CategoryTensorMd): A container for the category tensor metadata information. - -[`class ClassificationTensorMd`](../../tflite_support/metadata_writers/metadata_info/ClassificationTensorMd): A container for the classification tensor metadata information. - -[`class GeneralMd`](../../tflite_support/metadata_writers/metadata_info/GeneralMd): A container for common metadata information of a model. - -[`class InputAudioTensorMd`](../../tflite_support/metadata_writers/metadata_info/InputAudioTensorMd): A container for the input audio tensor metadata information. - -[`class InputImageTensorMd`](../../tflite_support/metadata_writers/metadata_info/InputImageTensorMd): A container for input image tensor metadata information. - -[`class InputTextTensorMd`](../../tflite_support/metadata_writers/metadata_info/InputTextTensorMd): A container for the input text tensor metadata information. - -[`class LabelFileMd`](../../tflite_support/metadata_writers/metadata_info/LabelFileMd): A container for label file metadata information. - -[`class RegexTokenizerMd`](../../tflite_support/metadata_writers/metadata_info/RegexTokenizerMd): A container for the Regex tokenizer [1] metadata information. - -[`class ScoreCalibrationMd`](../../tflite_support/metadata_writers/metadata_info/ScoreCalibrationMd): A container for score calibration [1] metadata information. - -[`class SentencePieceTokenizerMd`](../../tflite_support/metadata_writers/metadata_info/SentencePieceTokenizerMd): A container for the sentence piece tokenizer [1] metadata information. - -[`class TensorMd`](../../tflite_support/metadata_writers/metadata_info/TensorMd): A container for common tensor metadata information. diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/AssociatedFileMd.md b/site/en/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/AssociatedFileMd.md deleted file mode 100644 index 7b2562555b..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/AssociatedFileMd.md +++ /dev/null @@ -1,122 +0,0 @@ -page_type: reference -description: A container for common associated file metadata information. - - - - - - -
- - - - -
- -# tflite_support.metadata_writers.metadata_info.AssociatedFileMd - - - - - - - - - -A container for common associated file metadata information. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`file_path` - -path to the associated file. -
-`description` - -description of the associated file. -
-`file_type` - -file type of the associated file [1]. -
-`locale` - -locale of the associated file [2]. -[1]: - https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L77 -[2]: - https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L154 -
- - - -## Methods - -

create_metadata

- -View source - - - -Creates the associated file metadata. - - - - - - - - - - -
Returns
-A Flatbuffers Python object of the associated file metadata. -
diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/BertInputTensorsMd.md b/site/en/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/BertInputTensorsMd.md deleted file mode 100644 index 0b97030174..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/BertInputTensorsMd.md +++ /dev/null @@ -1,171 +0,0 @@ -page_type: reference -description: A container for the input tensor metadata information of Bert models. - - - - - - -
- - - - - - -
- -# tflite_support.metadata_writers.metadata_info.BertInputTensorsMd - - - - - - - - - -A container for the input tensor metadata information of Bert models. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`model_buffer` - -valid buffer of the model file. -
-`ids_name` - -name of the ids tensor, which represents the tokenized ids of -the input text. -
-`mask_name` - -name of the mask tensor, which represents the mask with 1 for -real tokens and 0 for padding tokens. -
-`segment_name` - -name of the segment ids tensor, where `0` stands for the -first sequence, and `1` stands for the second sequence if exists. -
-`ids_md` - -input ids tensor informaton. -
-`mask_md` - -input mask tensor informaton. -
-`segment_ids_md` - -input segment tensor informaton. -
-`tokenizer_md` - -information of the tokenizer used to process the input -string, if any. Supported tokenziers are: `BertTokenizer` [1] and - `SentencePieceTokenizer` [2]. If the tokenizer is `RegexTokenizer` - [3], refer to nl_classifier.MetadataWriter. -[1]: -https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L436 -[2]: -https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L473 -[3]: -https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L475 -
- - - -## Methods - -

create_input_process_unit_metadata

- -View source - - - -Creates the input process unit metadata. - - -

create_input_tesnor_metadata

- -View source - - - -Creates the input metadata for the three input tesnors. - - -

get_tokenizer_associated_files

- -View source - - - -Gets the associated files that are packed in the tokenizer. diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/BertTokenizerMd.md b/site/en/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/BertTokenizerMd.md deleted file mode 100644 index 08fc00e35c..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/BertTokenizerMd.md +++ /dev/null @@ -1,94 +0,0 @@ -page_type: reference -description: A container for the Bert tokenizer [1] metadata information. - - - - - - -
- - - - -
- -# tflite_support.metadata_writers.metadata_info.BertTokenizerMd - - - - - - - - - -A container for the Bert tokenizer [1] metadata information. - - - - - - - - - -[1]: - https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L436 - - - - - - - - - - -
-`vocab_file_path` - -path to the vocabulary file. -
- - - -## Methods - -

create_metadata

- -View source - - - -Creates the Bert tokenizer metadata based on the information. - - - - - - - - - - -
Returns
-A Flatbuffers Python object of the Bert tokenizer metadata. -
diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/CategoryTensorMd.md b/site/en/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/CategoryTensorMd.md deleted file mode 100644 index a2fc782d59..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/CategoryTensorMd.md +++ /dev/null @@ -1,112 +0,0 @@ -page_type: reference -description: A container for the category tensor metadata information. - - - - - - -
- - - - -
- -# tflite_support.metadata_writers.metadata_info.CategoryTensorMd - - - - - - - - - -A container for the category tensor metadata information. - -Inherits From: [`TensorMd`](../../../tflite_support/metadata_writers/metadata_info/TensorMd) - - - - - - - - - - - - - - - - - - - - - - - - - -
-`name` - -name of the tensor. -
-`description` - -description of what the tensor is. -
-`label_files` - -information of the label files [1] in the category tensor. -[1]: - https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L108 -
- - - -## Methods - -

create_metadata

- -View source - - - -Creates the input tensor metadata based on the information. - - - - - - - - - - -
Returns
-A Flatbuffers Python object of the input metadata. -
diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/ClassificationTensorMd.md b/site/en/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/ClassificationTensorMd.md deleted file mode 100644 index d434e5a19b..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/ClassificationTensorMd.md +++ /dev/null @@ -1,165 +0,0 @@ -page_type: reference -description: A container for the classification tensor metadata information. - - - - - - -
- - - - -
- -# tflite_support.metadata_writers.metadata_info.ClassificationTensorMd - - - - - - - - - -A container for the classification tensor metadata information. - -Inherits From: [`TensorMd`](../../../tflite_support/metadata_writers/metadata_info/TensorMd) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`name` - -name of the tensor. -
-`description` - -description of what the tensor is. -
-`label_files` - -information of the label files [1] in the classification -tensor. -
-`tensor_type` - -data type of the tensor. -
-`score_calibration_md` - -information of the score calibration files operation -[2] in the classification tensor. -
-`tensor_name` - -name of the corresponding tensor [3] in the TFLite model. It - is used to locate the corresponding classification tensor and decide the - order of the tensor metadata [4] when populating model metadata. -[1]: - https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L95 -[2]: - https://github.com/tensorflow/tflite-support/blob/5e0cdf5460788c481f5cd18aab8728ec36cf9733/tensorflow_lite_support/metadata/metadata_schema.fbs#L434 -[3]: - https://github.com/tensorflow/tensorflow/blob/cb67fef35567298b40ac166b0581cd8ad68e5a3a/tensorflow/lite/schema/schema.fbs#L1129-L1136 -[4]: - https://github.com/tensorflow/tflite-support/blob/b2a509716a2d71dfff706468680a729cc1604cff/tensorflow_lite_support/metadata/metadata_schema.fbs#L595-L612 -
- - - - - - - - - - - - - - - - - -
-`label_files` - -information of the label files [1] in the classification -tensor. -
-`score_calibration_md` - -information of the score calibration operation [2] in - the classification tensor. -[1]: - https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L95 -[2]: - https://github.com/tensorflow/tflite-support/blob/5e0cdf5460788c481f5cd18aab8728ec36cf9733/tensorflow_lite_support/metadata/metadata_schema.fbs#L434 -
- - - -## Methods - -

create_metadata

- -View source - - - -Creates the classification tensor metadata based on the information. diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/GeneralMd.md b/site/en/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/GeneralMd.md deleted file mode 100644 index 3bbeaa58bf..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/GeneralMd.md +++ /dev/null @@ -1,126 +0,0 @@ -page_type: reference -description: A container for common metadata information of a model. - - - - - - -
- - - - -
- -# tflite_support.metadata_writers.metadata_info.GeneralMd - - - - - - - - - -A container for common metadata information of a model. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`name` - -name of the model. -
-`version` - -version of the model. -
-`description` - -description of what the model does. -
-`author` - -author of the model. -
-`licenses` - -licenses of the model. -
- - - -## Methods - -

create_metadata

- -View source - - - -Creates the model metadata based on the general model information. - - - - - - - - - - -
Returns
-A Flatbuffers Python object of the model metadata. -
diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputAudioTensorMd.md b/site/en/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputAudioTensorMd.md deleted file mode 100644 index 0bd7479a75..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputAudioTensorMd.md +++ /dev/null @@ -1,161 +0,0 @@ -page_type: reference -description: A container for the input audio tensor metadata information. - - - - - - -
- - - - -
- -# tflite_support.metadata_writers.metadata_info.InputAudioTensorMd - - - - - - - - - -A container for the input audio tensor metadata information. - -Inherits From: [`TensorMd`](../../../tflite_support/metadata_writers/metadata_info/TensorMd) - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`name` - -name of the tensor. -
-`description` - -description of what the tensor is. -
-`sample_rate` - -the sample rate in Hz when the audio was captured. -
-`channels` - -the channel count of the audio. -
- - - - - - - - - - - - - - - - - -
-`sample_rate` - -the sample rate in Hz when the audio was captured. -
-`channels` - -the channel count of the audio. -
- - - -## Methods - -

create_metadata

- -View source - - - -Creates the input audio metadata based on the information. - - - - - - - - - - -
Returns
-A Flatbuffers Python object of the input audio metadata. -
- - - - - - - - - - - - -
Raises
-`ValueError` - -if any value of sample_rate, channels is negative. -
diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputImageTensorMd.md b/site/en/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputImageTensorMd.md deleted file mode 100644 index 1c6143734f..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputImageTensorMd.md +++ /dev/null @@ -1,194 +0,0 @@ -page_type: reference -description: A container for input image tensor metadata information. - - - - - - -
- - - - -
- -# tflite_support.metadata_writers.metadata_info.InputImageTensorMd - - - - - - - - - -A container for input image tensor metadata information. - -Inherits From: [`TensorMd`](../../../tflite_support/metadata_writers/metadata_info/TensorMd) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`name` - -name of the tensor. -
-`description` - -description of what the tensor is. -
-`norm_mean` - -the mean value used in tensor normalization [1]. -
-`norm_std` - -the std value used in the tensor normalization [1]. norm_mean -and norm_std must have the same dimension. -
-`color_space_type` - -the color space type of the input image [2]. -
-`tensor_type` - -data type of the tensor. -[1]: - https://www.tensorflow.org/lite/convert/metadata#normalization_and_quantization_parameters -[2]: -https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L172 -
- - - - - - - - - - - - -
-`ValueError` - -if norm_mean and norm_std have different dimensions. -
- - - - - - - - - - - - - - - - - - - - -
-`norm_mean` - -the mean value used in tensor normalization [1]. -
-`norm_std` - -the std value used in the tensor normalization [1]. norm_mean and -norm_std must have the same dimension. -
-`color_space_type` - -the color space type of the input image [2]. -[1]: - https://www.tensorflow.org/lite/convert/metadata#normalization_and_quantization_parameters -[2]: - https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L172 -
- - - -## Methods - -

create_metadata

- -View source - - - -Creates the input image metadata based on the information. - - - - - - - - - - -
Returns
-A Flatbuffers Python object of the input image metadata. -
diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputTextTensorMd.md b/site/en/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputTextTensorMd.md deleted file mode 100644 index c4dcf486b5..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/InputTextTensorMd.md +++ /dev/null @@ -1,155 +0,0 @@ -page_type: reference -description: A container for the input text tensor metadata information. - - - - - - -
- - - - -
- -# tflite_support.metadata_writers.metadata_info.InputTextTensorMd - - - - - - - - - -A container for the input text tensor metadata information. - -Inherits From: [`TensorMd`](../../../tflite_support/metadata_writers/metadata_info/TensorMd) - - - - - - - - - - - - - - - - - - - - - - - - - -
-`name` - -name of the tensor. -
-`description` - -description of what the tensor is. -
-`tokenizer_md` - -information of the tokenizer in the input text tensor, if -any. Only `RegexTokenizer` [1] is currenly supported. If the tokenizer -is `BertTokenizer` [2] or `SentencePieceTokenizer` [3], refer to -bert_nl_classifier.MetadataWriter. -[1]: -https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L475 -[2]: -https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L436 -[3]: -https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L473 -
- - - - - - - - - - - - - - -
-`tokenizer_md` - -information of the tokenizer in the input text tensor, if any. -
- - - -## Methods - -

create_metadata

- -View source - - - -Creates the input text metadata based on the information. - - - - - - - - - - -
Returns
-A Flatbuffers Python object of the input text metadata. -
- - - - - - - - - - - - -
Raises
-`ValueError` - -if the type of tokenizer_md is unsupported. -
diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/LabelFileMd.md b/site/en/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/LabelFileMd.md deleted file mode 100644 index ab64e6f485..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/LabelFileMd.md +++ /dev/null @@ -1,103 +0,0 @@ -page_type: reference -description: A container for label file metadata information. - - - - - - -
- - - - -
- -# tflite_support.metadata_writers.metadata_info.LabelFileMd - - - - - - - - - -A container for label file metadata information. - -Inherits From: [`AssociatedFileMd`](../../../tflite_support/metadata_writers/metadata_info/AssociatedFileMd) - - - - - - - - - - - - - - - - - - - - - - -
-`file_path` - -file_path of the label file. -
-`locale` - -locale of the label file [1]. -[1]: -https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L154 -
- - - -## Methods - -

create_metadata

- -View source - - - -Creates the associated file metadata. - - - - - - - - - - -
Returns
-A Flatbuffers Python object of the associated file metadata. -
diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/RegexTokenizerMd.md b/site/en/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/RegexTokenizerMd.md deleted file mode 100644 index 294f94f193..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/RegexTokenizerMd.md +++ /dev/null @@ -1,102 +0,0 @@ -page_type: reference -description: A container for the Regex tokenizer [1] metadata information. - - - - - - -
- - - - -
- -# tflite_support.metadata_writers.metadata_info.RegexTokenizerMd - - - - - - - - - -A container for the Regex tokenizer [1] metadata information. - - - - - - - - - -[1]: - https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L459 - - - - - - - - - - - - - -
-`delim_regex_pattern` - -the regular expression to segment strings and create -tokens. -
-`vocab_file_path` - -path to the vocabulary file. -
- - - -## Methods - -

create_metadata

- -View source - - - -Creates the Bert tokenizer metadata based on the information. - - - - - - - - - - -
Returns
-A Flatbuffers Python object of the Bert tokenizer metadata. -
diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/ScoreCalibrationMd.md b/site/en/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/ScoreCalibrationMd.md deleted file mode 100644 index 9a6b2dcbed..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/ScoreCalibrationMd.md +++ /dev/null @@ -1,143 +0,0 @@ -page_type: reference -description: A container for score calibration [1] metadata information. - - - - - - -
- - - - - -
- -# tflite_support.metadata_writers.metadata_info.ScoreCalibrationMd - - - - - - - - - -A container for score calibration [1] metadata information. - - - - - - - - - -[1]: - https://github.com/tensorflow/tflite-support/blob/5e0cdf5460788c481f5cd18aab8728ec36cf9733/tensorflow_lite_support/metadata/metadata_schema.fbs#L434 - - - - - - - - - - - - - - - - -
-`score_transformation_type` - -type of the function used for transforming the -uncalibrated score before applying score calibration. -
-`default_score` - -the default calibrated score to apply if the uncalibrated -score is below min_score or if no parameters were specified for a given -index. -
-`file_path` - -file_path of the score calibration file [1]. -[1]: - https://github.com/tensorflow/tflite-support/blob/5e0cdf5460788c481f5cd18aab8728ec36cf9733/tensorflow_lite_support/metadata/metadata_schema.fbs#L122 -
- - - - - - - - - - - - -
-`ValueError` - -if the score_calibration file is malformed. -
- - - -## Methods - -

create_metadata

- -View source - - - -Creates the score calibration metadata based on the information. - - - - - - - - - - -
Returns
-A Flatbuffers Python object of the score calibration metadata. -
- - - -

create_score_calibration_file_md

- -View source - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/SentencePieceTokenizerMd.md b/site/en/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/SentencePieceTokenizerMd.md deleted file mode 100644 index a4c697cdf4..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/SentencePieceTokenizerMd.md +++ /dev/null @@ -1,101 +0,0 @@ -page_type: reference -description: A container for the sentence piece tokenizer [1] metadata information. - - - - - - -
- - - - -
- -# tflite_support.metadata_writers.metadata_info.SentencePieceTokenizerMd - - - - - - - - - -A container for the sentence piece tokenizer [1] metadata information. - - - - - - - - - -[1]: - https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L473 - - - - - - - - - - - - - -
-`sentence_piece_model_path` - -path to the sentence piece model file. -
-`vocab_file_path` - -path to the vocabulary file. -
- - - -## Methods - -

create_metadata

- -View source - - - -Creates the sentence piece tokenizer metadata based on the information. - - - - - - - - - - -
Returns
-A Flatbuffers Python object of the sentence piece tokenizer metadata. -
diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/TensorMd.md b/site/en/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/TensorMd.md deleted file mode 100644 index 0a0cb58419..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/TensorMd.md +++ /dev/null @@ -1,148 +0,0 @@ -page_type: reference -description: A container for common tensor metadata information. - - - - - - -
- - - - -
- -# tflite_support.metadata_writers.metadata_info.TensorMd - - - - - - - - - -A container for common tensor metadata information. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`name` - -name of the tensor. -
-`description` - -description of what the tensor is. -
-`min_values` - -per-channel minimum value of the tensor. -
-`max_values` - -per-channel maximum value of the tensor. -
-`content_type` - -content_type of the tensor. -
-`associated_files` - -information of the associated files in the tensor. -
-`tensor_name` - -name of the corresponding tensor [1] in the TFLite model. It is - used to locate the corresponding tensor and decide the order of the tensor - metadata [2] when populating model metadata. -[1]: - https://github.com/tensorflow/tensorflow/blob/cb67fef35567298b40ac166b0581cd8ad68e5a3a/tensorflow/lite/schema/schema.fbs#L1129-L1136 -[2]: - https://github.com/tensorflow/tflite-support/blob/b2a509716a2d71dfff706468680a729cc1604cff/tensorflow_lite_support/metadata/metadata_schema.fbs#L595-L612 -
- - - -## Methods - -

create_metadata

- -View source - - - -Creates the input tensor metadata based on the information. - - - - - - - - - - -
Returns
-A Flatbuffers Python object of the input metadata. -
diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_writers/nl_classifier.md b/site/en/lite/api_docs/python/tflite_support/metadata_writers/nl_classifier.md deleted file mode 100644 index b8117d3dca..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_writers/nl_classifier.md +++ /dev/null @@ -1,43 +0,0 @@ -page_type: reference -description: Writes metadata and label file to the NL classifier models. - - - - - - -
- - -
- -# Module: tflite_support.metadata_writers.nl_classifier - - - - - - - - - -Writes metadata and label file to the NL classifier models. - - - -## Modules - -[`metadata_info`](../../tflite_support/metadata_writers/metadata_info) module: Helper classes for common model metadata information. - -[`metadata_writer`](../../tflite_support/metadata_writers/audio_classifier/metadata_writer) module: Helper class to write metadata into TFLite models. - -[`writer_utils`](../../tflite_support/metadata_writers/writer_utils) module: Helper methods for writing metadata into TFLite models. - -## Classes - -[`class MetadataWriter`](../../tflite_support/metadata_writers/nl_classifier/MetadataWriter): Writes metadata into the NL classifier. diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/MetadataWriter.md b/site/en/lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/MetadataWriter.md deleted file mode 100644 index c28618a793..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_writers/nl_classifier/MetadataWriter.md +++ /dev/null @@ -1,418 +0,0 @@ -page_type: reference -description: Writes metadata into the NL classifier. - - - - - - -
- - - - - - - - - -
- -# tflite_support.metadata_writers.nl_classifier.MetadataWriter - - - - - - - - - -Writes metadata into the NL classifier. - -Inherits From: [`MetadataWriter`](../../../tflite_support/metadata_writers/audio_classifier/metadata_writer/MetadataWriter) - - - - - - - - - - - - - - - - - - - - - - - -
-`model_buffer` - -valid buffer of the model file. -
-`metadata_buffer` - -valid buffer of the metadata. -
-`associated_files` - -path to the associated files to be populated. -
- - - -## Methods - -

create_for_inference

- -View source - - - -Creates mandatory metadata for TFLite Support inference. - -The parameters required in this method are mandatory when using TFLite -Support features, such as Task library and Codegen tool (Android Studio ML -Binding). Other metadata fields will be set to default. If other fields need -to be filled, use the method `create_from_metadata_info` to edit them. - - - - - - - - - - - - - - - - -
Args
-`model_buffer` - -valid buffer of the model file. -
-`tokenizer_md` - -information of the tokenizer used to process the input -string, if any. Only `RegexTokenizer` [1] is currently supported. If the -tokenizer is `BertTokenizer` [2] or `SentencePieceTokenizer` [3], refer -to bert_nl_classifier.MetadataWriter. -[1]: -https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L475 -[2]: -https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L436 -[3]: -https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L473 -
-`label_file_paths` - -paths to the label files [4] in the classification -tensor. Pass in an empty list if the model does not have any label -file. -[4]: -https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L95 -
- - - - - - - - - - - -
Returns
-A MetadataWriter object. -
- - - -

create_from_metadata

- -View source - - - -Creates MetadataWriter based on the metadata Flatbuffers Python Objects. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Args
-`model_buffer` - -valid buffer of the model file. -
-`model_metadata` - -general model metadata [1]. The subgraph_metadata will be -refreshed with input_metadata and output_metadata. -
-`input_metadata` - -a list of metadata of the input tensors [2]. -
-`output_metadata` - -a list of metadata of the output tensors [3]. -
-`associated_files` - -path to the associated files to be populated. -
-`input_process_units` - -a lits of metadata of the input process units [4]. -
-`output_process_units` - -a lits of metadata of the output process units [5]. -[1]: - https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L640-L681 -[2]: - https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L590 -[3]: - https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L599 -[4]: - https://github.com/tensorflow/tflite-support/blob/b5cc57c74f7990d8bc055795dfe8d50267064a57/tensorflow_lite_support/metadata/metadata_schema.fbs#L646 -[5]: - https://github.com/tensorflow/tflite-support/blob/b5cc57c74f7990d8bc055795dfe8d50267064a57/tensorflow_lite_support/metadata/metadata_schema.fbs#L650 -
- - - - - - - - - - - -
Returns
-A MetadataWriter Object. -
- - - -

create_from_metadata_info

- -View source - - - -Creates MetadataWriter based on general/input/output information. - - - - - - - - - - - - - - - - - - - - -
Args
-`model_buffer` - -valid buffer of the model file. -
-`general_md` - -general information about the model. If not specified, default -general metadata will be generated. -
-`input_md` - -input text tensor information, if not specified, default input -metadata will be generated. -
-`output_md` - -output classification tensor information, if not specified, -default output metadata will be generated. -
- - - - - - - - - - - -
Returns
-A MetadataWriter object. -
- - - -

get_metadata_json

- -View source - - - -Gets the generated JSON metadata string before populated into model. - -This method returns the metadata buffer before populated into the model. -More fields could be filled by MetadataPopulator, such as -min_parser_version. Use get_populated_metadata_json() if you want to get the -final metadata string. - - - - - - - - - -
Returns
-The generated JSON metadata string before populated into model. -
- - - -

get_populated_metadata_json

- -View source - - - -Gets the generated JSON metadata string after populated into model. - -More fields could be filled by MetadataPopulator, such as -min_parser_version. Use get_metadata_json() if you want to get the -original metadata string. - - - - - - - - - -
Returns
-The generated JSON metadata string after populated into model. -
- - - -

populate

- -View source - - - -Populates the metadata and label file to the model file. - - - - - - - - - - -
Returns
-A new model buffer with the metadata and associated files. -
diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_writers/object_detector.md b/site/en/lite/api_docs/python/tflite_support/metadata_writers/object_detector.md deleted file mode 100644 index 279497b6e8..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_writers/object_detector.md +++ /dev/null @@ -1,43 +0,0 @@ -page_type: reference -description: Writes metadata and label file to the object detector models. - - - - - - -
- - -
- -# Module: tflite_support.metadata_writers.object_detector - - - - - - - - - -Writes metadata and label file to the object detector models. - - - -## Modules - -[`metadata_info`](../../tflite_support/metadata_writers/metadata_info) module: Helper classes for common model metadata information. - -[`metadata_writer`](../../tflite_support/metadata_writers/audio_classifier/metadata_writer) module: Helper class to write metadata into TFLite models. - -[`writer_utils`](../../tflite_support/metadata_writers/writer_utils) module: Helper methods for writing metadata into TFLite models. - -## Classes - -[`class MetadataWriter`](../../tflite_support/metadata_writers/object_detector/MetadataWriter): Writes metadata into an object detector. diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_writers/object_detector/MetadataWriter.md b/site/en/lite/api_docs/python/tflite_support/metadata_writers/object_detector/MetadataWriter.md deleted file mode 100644 index fdafb87959..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_writers/object_detector/MetadataWriter.md +++ /dev/null @@ -1,461 +0,0 @@ -page_type: reference -description: Writes metadata into an object detector. - - - - - - -
- - - - - - - - - -
- -# tflite_support.metadata_writers.object_detector.MetadataWriter - - - - - - - - - -Writes metadata into an object detector. - -Inherits From: [`MetadataWriter`](../../../tflite_support/metadata_writers/audio_classifier/metadata_writer/MetadataWriter) - - - - - - - - - - - - - - - - - - - - - - - -
-`model_buffer` - -valid buffer of the model file. -
-`metadata_buffer` - -valid buffer of the metadata. -
-`associated_files` - -path to the associated files to be populated. -
- - - -## Methods - -

create_for_inference

- -View source - - - -Creates mandatory metadata for TFLite Support inference. - -The parameters required in this method are mandatory when using TFLite -Support features, such as Task library and Codegen tool (Android Studio ML -Binding). Other metadata fields will be set to default. If other fields need -to be filled, use the method `create_from_metadata_info` to edit them. - - - - - - - - - - - - - - - - - - - - - - -
Args
-`model_buffer` - -valid buffer of the model file. -
-`input_norm_mean` - -the mean value used in the input tensor normalization -[1]. -
-`input_norm_std` - -the std value used in the input tensor normalizarion [1]. -
-`label_file_paths` - -paths to the label files [2] in the category tensor. -Pass in an empty list, If the model does not have any label file. -
-`score_calibration_md` - -information of the score calibration operation [3] - in the classification tensor. Optional if the model does not use score - calibration. -[1]: - https://www.tensorflow.org/lite/convert/metadata#normalization_and_quantization_parameters -[2]: - https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L108 -[3]: - https://github.com/tensorflow/tflite-support/blob/5e0cdf5460788c481f5cd18aab8728ec36cf9733/tensorflow_lite_support/metadata/metadata_schema.fbs#L434 -
- - - - - - - - - - - -
Returns
-A MetadataWriter object. -
- - - -

create_from_metadata

- -View source - - - -Creates MetadataWriter based on the metadata Flatbuffers Python Objects. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Args
-`model_buffer` - -valid buffer of the model file. -
-`model_metadata` - -general model metadata [1]. The subgraph_metadata will be -refreshed with input_metadata and output_metadata. -
-`input_metadata` - -a list of metadata of the input tensors [2]. -
-`output_metadata` - -a list of metadata of the output tensors [3]. -
-`associated_files` - -path to the associated files to be populated. -
-`input_process_units` - -a lits of metadata of the input process units [4]. -
-`output_process_units` - -a lits of metadata of the output process units [5]. -[1]: - https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L640-L681 -[2]: - https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L590 -[3]: - https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L599 -[4]: - https://github.com/tensorflow/tflite-support/blob/b5cc57c74f7990d8bc055795dfe8d50267064a57/tensorflow_lite_support/metadata/metadata_schema.fbs#L646 -[5]: - https://github.com/tensorflow/tflite-support/blob/b5cc57c74f7990d8bc055795dfe8d50267064a57/tensorflow_lite_support/metadata/metadata_schema.fbs#L650 -
- - - - - - - - - - - -
Returns
-A MetadataWriter Object. -
- - - -

create_from_metadata_info

- -View source - - - -Creates MetadataWriter based on general/input/outputs information. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Args
-`model_buffer` - -valid buffer of the model file. -
-`general_md` - -general information about the model. -
-`input_md` - -input image tensor informaton. -
-`output_location_md` - -output location tensor informaton. The location tensor -is a multidimensional array of [N][4] floating point values between 0 -and 1, the inner arrays representing bounding boxes in the form [top, -left, bottom, right]. -
-`output_category_md` - -output category tensor information. The category -tensor is an array of N integers (output as floating point values) each -indicating the index of a class label from the labels file. -
-`output_score_md` - -output score tensor information. The score tensor is an -array of N floating point values between 0 and 1 representing -probability that a class was detected. Use ClassificationTensorMd to -calibrate score. -
-`output_number_md` - -output number of detections tensor information. This -tensor is an integer value of N. -
- - - - - - - - - - - -
Returns
-A MetadataWriter object. -
- - - -

get_metadata_json

- -View source - - - -Gets the generated JSON metadata string before populated into model. - -This method returns the metadata buffer before populated into the model. -More fields could be filled by MetadataPopulator, such as -min_parser_version. Use get_populated_metadata_json() if you want to get the -final metadata string. - - - - - - - - - -
Returns
-The generated JSON metadata string before populated into model. -
- - - -

get_populated_metadata_json

- -View source - - - -Gets the generated JSON metadata string after populated into model. - -More fields could be filled by MetadataPopulator, such as -min_parser_version. Use get_metadata_json() if you want to get the -original metadata string. - - - - - - - - - -
Returns
-The generated JSON metadata string after populated into model. -
- - - -

populate

- -View source - - - -Populates the metadata and label file to the model file. - - - - - - - - - - -
Returns
-A new model buffer with the metadata and associated files. -
diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_writers/writer_utils.md b/site/en/lite/api_docs/python/tflite_support/metadata_writers/writer_utils.md deleted file mode 100644 index 4e3f4e32dd..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_writers/writer_utils.md +++ /dev/null @@ -1,59 +0,0 @@ -page_type: reference -description: Helper methods for writing metadata into TFLite models. - - - - - - -
- - -
- -# Module: tflite_support.metadata_writers.writer_utils - - - - - - - - - -Helper methods for writing metadata into TFLite models. - - - - - -## Functions - -[`compute_flat_size(...)`](../../tflite_support/metadata_writers/writer_utils/compute_flat_size): Computes the flat size (number of elements) of tensor shape. - -[`get_input_tensor_names(...)`](../../tflite_support/metadata_writers/writer_utils/get_input_tensor_names): Gets a list of the input tensor names. - -[`get_input_tensor_shape(...)`](../../tflite_support/metadata_writers/writer_utils/get_input_tensor_shape): Gets the shape of the specified input tensor. - -[`get_input_tensor_types(...)`](../../tflite_support/metadata_writers/writer_utils/get_input_tensor_types): Gets a list of the input tensor types. - -[`get_output_tensor_names(...)`](../../tflite_support/metadata_writers/writer_utils/get_output_tensor_names): Gets a list of the output tensor names. - -[`get_output_tensor_types(...)`](../../tflite_support/metadata_writers/writer_utils/get_output_tensor_types): Gets a list of the output tensor types. - -[`get_tokenizer_associated_files(...)`](../../tflite_support/metadata_writers/writer_utils/get_tokenizer_associated_files): Gets a list of associated files packed in the tokenzier_options. - -[`load_file(...)`](../../tflite_support/metadata_writers/writer_utils/load_file): Loads file from the file path. - -[`save_file(...)`](../../tflite_support/metadata_writers/writer_utils/save_file): Loads file from the file path. diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_writers/writer_utils/compute_flat_size.md b/site/en/lite/api_docs/python/tflite_support/metadata_writers/writer_utils/compute_flat_size.md deleted file mode 100644 index a9b8b2e45d..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_writers/writer_utils/compute_flat_size.md +++ /dev/null @@ -1,78 +0,0 @@ -page_type: reference -description: Computes the flat size (number of elements) of tensor shape. - - - - - - -
- - -
- -# tflite_support.metadata_writers.writer_utils.compute_flat_size - - - - - - - - - -Computes the flat size (number of elements) of tensor shape. - - - - - - - - - - - - - - - - - - - - -
-`tensor_shape` - -an array of the tensor shape values. -
- - - - - - - - - - - -
-The flat size of the tensor shape. Return 0 if tensor_shape is None. -
diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_names.md b/site/en/lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_names.md deleted file mode 100644 index 0ac01a583b..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_names.md +++ /dev/null @@ -1,48 +0,0 @@ -page_type: reference -description: Gets a list of the input tensor names. - - - - - - -
- - -
- -# tflite_support.metadata_writers.writer_utils.get_input_tensor_names - - - - - - - - - -Gets a list of the input tensor names. - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_shape.md b/site/en/lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_shape.md deleted file mode 100644 index 7210002da8..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_shape.md +++ /dev/null @@ -1,48 +0,0 @@ -page_type: reference -description: Gets the shape of the specified input tensor. - - - - - - -
- - -
- -# tflite_support.metadata_writers.writer_utils.get_input_tensor_shape - - - - - - - - - -Gets the shape of the specified input tensor. - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_types.md b/site/en/lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_types.md deleted file mode 100644 index 76eb163f54..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_input_tensor_types.md +++ /dev/null @@ -1,48 +0,0 @@ -page_type: reference -description: Gets a list of the input tensor types. - - - - - - -
- - -
- -# tflite_support.metadata_writers.writer_utils.get_input_tensor_types - - - - - - - - - -Gets a list of the input tensor types. - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_names.md b/site/en/lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_names.md deleted file mode 100644 index 6e1c5583c5..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_names.md +++ /dev/null @@ -1,48 +0,0 @@ -page_type: reference -description: Gets a list of the output tensor names. - - - - - - -
- - -
- -# tflite_support.metadata_writers.writer_utils.get_output_tensor_names - - - - - - - - - -Gets a list of the output tensor names. - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_types.md b/site/en/lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_types.md deleted file mode 100644 index bdc175ab63..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_output_tensor_types.md +++ /dev/null @@ -1,48 +0,0 @@ -page_type: reference -description: Gets a list of the output tensor types. - - - - - - -
- - -
- -# tflite_support.metadata_writers.writer_utils.get_output_tensor_types - - - - - - - - - -Gets a list of the output tensor types. - - - - - - - - - diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_tokenizer_associated_files.md b/site/en/lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_tokenizer_associated_files.md deleted file mode 100644 index a2215b1e48..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_writers/writer_utils/get_tokenizer_associated_files.md +++ /dev/null @@ -1,87 +0,0 @@ -page_type: reference -description: Gets a list of associated files packed in the tokenzier_options. - - - - - - -
- - -
- -# tflite_support.metadata_writers.writer_utils.get_tokenizer_associated_files - - - - - - - - - -Gets a list of associated files packed in the tokenzier_options. - - - - - - - - - - - - - - - - - - - - -
-`tokenizer_options` - -a tokenizer metadata object. Support the following -tokenizer types: - -1. BertTokenizerOptions: - https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L436 -2. SentencePieceTokenizerOptions: - https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L473 -3. RegexTokenizerOptions: - https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L475 -
- - - - - - - - - - - -
-A list of associated files included in tokenizer_options. -
diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_writers/writer_utils/load_file.md b/site/en/lite/api_docs/python/tflite_support/metadata_writers/writer_utils/load_file.md deleted file mode 100644 index 9b9cbf6761..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_writers/writer_utils/load_file.md +++ /dev/null @@ -1,86 +0,0 @@ -page_type: reference -description: Loads file from the file path. - - - - - - -
- - -
- -# tflite_support.metadata_writers.writer_utils.load_file - - - - - - - - - -Loads file from the file path. - - - - - - - - - - - - - - - - - - - - - - - -
-`file_path` - -valid file path string. -
-`mode` - -a string specifies the model in which the file is opened. Use "rt" for -reading in text mode; use "rb" for reading in binary mode. -
- - - - - - - - - - - -
-The loaded file in str or bytes. -
diff --git a/site/en/lite/api_docs/python/tflite_support/metadata_writers/writer_utils/save_file.md b/site/en/lite/api_docs/python/tflite_support/metadata_writers/writer_utils/save_file.md deleted file mode 100644 index 68dbc617de..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/metadata_writers/writer_utils/save_file.md +++ /dev/null @@ -1,95 +0,0 @@ -page_type: reference -description: Loads file from the file path. - - - - - - -
- - -
- -# tflite_support.metadata_writers.writer_utils.save_file - - - - - - - - - -Loads file from the file path. - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`file_bytes` - -the bytes to be saved to file. -
-`save_to_path` - -valid file path string. -
-`mode` - -a string specifies the model in which the file is opened. Use "wt" for -writing in text mode; use "wb" for writing in binary mode. -
- - - - - - - - - - - -
-The loaded file in str or bytes. -
diff --git a/site/en/lite/api_docs/python/tflite_support/task.md b/site/en/lite/api_docs/python/tflite_support/task.md deleted file mode 100644 index 596729ac75..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task.md +++ /dev/null @@ -1,52 +0,0 @@ -page_type: reference -description: The TensorFlow Lite Task Library. - - - - - - -
- - -
- -# Module: tflite_support.task - - - - - - - - - -The TensorFlow Lite Task Library. - - -TensorFlow Lite Task Library contains a set of powerful and easy-to-use -task-specific libraries for app developers to create ML experiences with -TensorFlow Lite. It provides optimized out-of-box model interfaces for popular -machine learning tasks, such as image and text classification. The model -interfaces are specifically designed for each task to achieve the best -performance and usability. - -Read more in the [Task Library Guide]( -https://tensorflow.org/lite/inference_with_metadata/task_library/overview). - -## Modules - -[`audio`](../tflite_support/task/audio) module: TensorFlow Lite Task Library Audio APIs. - -[`core`](../tflite_support/task/core) module: TensorFlow Lite Task Library's core module. - -[`processor`](../tflite_support/task/processor) module: TensorFlow Lite Task Library's processor module. - -[`text`](../tflite_support/task/text) module: TensorFlow Lite Task Library Text APIs. - -[`vision`](../tflite_support/task/vision) module: TensorFlow Lite Task Library Vision APIs. diff --git a/site/en/lite/api_docs/python/tflite_support/task/audio.md b/site/en/lite/api_docs/python/tflite_support/task/audio.md deleted file mode 100644 index 0506d322d9..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/audio.md +++ /dev/null @@ -1,48 +0,0 @@ -page_type: reference -description: TensorFlow Lite Task Library Audio APIs. - - - - - - -
- - -
- -# Module: tflite_support.task.audio - - - - - - - - - -TensorFlow Lite Task Library Audio APIs. - - -This module provides interface to run TensorFlow Lite audio models. - -## Classes - -[`class AudioClassifier`](../../tflite_support/task/audio/AudioClassifier): Class that performs classification on audio. - -[`class AudioClassifierOptions`](../../tflite_support/task/audio/AudioClassifierOptions): Options for the audio classifier task. - -[`class AudioEmbedder`](../../tflite_support/task/audio/AudioEmbedder): Class that performs dense feature vector extraction on audio. - -[`class AudioEmbedderOptions`](../../tflite_support/task/audio/AudioEmbedderOptions): Options for the audio embedder task. - -[`class AudioFormat`](../../tflite_support/task/audio/AudioFormat) - -[`class AudioRecord`](../../tflite_support/task/audio/AudioRecord): A class to record audio in a streaming basis. - -[`class TensorAudio`](../../tflite_support/task/audio/TensorAudio): A wrapper class to store the input audio. diff --git a/site/en/lite/api_docs/python/tflite_support/task/audio/AudioClassifier.md b/site/en/lite/api_docs/python/tflite_support/task/audio/AudioClassifier.md deleted file mode 100644 index 0c5159acd2..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/audio/AudioClassifier.md +++ /dev/null @@ -1,331 +0,0 @@ -page_type: reference -description: Class that performs classification on audio. - - - - - - -
- - - - - - - - -
- -# tflite_support.task.audio.AudioClassifier - - - - - - - - - -Class that performs classification on audio. - - - - - - - - - - - - - - - - - - - - - - -
-`required_audio_format` - -Gets the required audio format for the model. -
-`required_input_buffer_size` - -Gets the required input buffer size for the model. -
- - - -## Methods - -

classify

- -View source - - - -Performs classification on the provided TensorAudio. - - - - - - - - - - - -
Args
-`audio` - -Tensor audio, used to extract the feature vectors. -
- - - - - - - - - - - -
Returns
-classification result. -
- - - - - - - - - - - - - - - -
Raises
-`ValueError` - -If any of the input arguments is invalid. -
-`RuntimeError` - -If failed to run audio classification. -
- - - -

create_audio_record

- -View source - - - -Creates an AudioRecord instance to record audio. - - - - - - - - - - -
Returns
-An AudioRecord instance. -
- - - -

create_from_file

- -View source - - - -Creates the `AudioClassifier` object from a TensorFlow Lite model. - - - - - - - - - - - -
Args
-`file_path` - -Path to the model. -
- - - - - - - - - - - -
Returns
-`AudioClassifier` object that's created from `options`. -
- - - - - - - - - - - - - - - -
Raises
-`ValueError` - -If failed to create `AudioClassifier` object from the provided -file such as invalid file. -
-`RuntimeError` - -If other types of error occurred. -
- - - -

create_from_options

- -View source - - - -Creates the `AudioClassifier` object from audio classifier options. - - - - - - - - - - - -
Args
-`options` - -Options for the audio classifier task. -
- - - - - - - - - - - -
Returns
-`AudioClassifier` object that's created from `options`. -
- - - - - - - - - - - - - - - -
Raises
-`ValueError` - -If failed to create `AudioClassifier` object from -`AudioClassifierOptions` such as missing the model. -
-`RuntimeError` - -If other types of error occurred. -
- - - -

create_input_tensor_audio

- -View source - - - -Creates a TensorAudio instance to store the audio input. - - - - - - - - - - -
Returns
-A TensorAudio instance. -
diff --git a/site/en/lite/api_docs/python/tflite_support/task/audio/AudioClassifierOptions.md b/site/en/lite/api_docs/python/tflite_support/task/audio/AudioClassifierOptions.md deleted file mode 100644 index 453992f340..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/audio/AudioClassifierOptions.md +++ /dev/null @@ -1,80 +0,0 @@ -page_type: reference -description: Options for the audio classifier task. - - - - - - -
- - - - -
- -# tflite_support.task.audio.AudioClassifierOptions - - - - - - - - - -Options for the audio classifier task. - - - - - - - - - - - - - - - - - - - - - - -
-`base_options` - -Base options for the audio classifier task. -
-`classification_options` - -Classification options for the audio classifier -task. -
- - - -## Methods - -

__eq__

- - diff --git a/site/en/lite/api_docs/python/tflite_support/task/audio/AudioEmbedder.md b/site/en/lite/api_docs/python/tflite_support/task/audio/AudioEmbedder.md deleted file mode 100644 index 0aff88004a..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/audio/AudioEmbedder.md +++ /dev/null @@ -1,399 +0,0 @@ -page_type: reference -description: Class that performs dense feature vector extraction on audio. - - - - - - -
- - - - - - - - - - -
- -# tflite_support.task.audio.AudioEmbedder - - - - - - - - - -Class that performs dense feature vector extraction on audio. - - - - - - - - - - - - - - - - - - - - - - - - - -
-`number_of_output_layers` - -Gets the number of output layers of the model. -
-`required_audio_format` - -Gets the required audio format for the model. -
-`required_input_buffer_size` - -Gets the required input buffer size for the model. -
- - - -## Methods - -

cosine_similarity

- -View source - - - -Computes cosine similarity [1] between two feature vectors. - - -

create_audio_record

- -View source - - - -Creates an AudioRecord instance to record audio. - - - - - - - - - - -
Returns
-An AudioRecord instance. -
- - - -

create_from_file

- -View source - - - -Creates the `AudioEmbedder` object from a TensorFlow Lite model. - - - - - - - - - - - -
Args
-`file_path` - -Path to the model. -
- - - - - - - - - - - -
Returns
-`AudioEmbedder` object that's created from `options`. -
- - - - - - - - - - - - - - - -
Raises
-`ValueError` - -If failed to create `AudioEmbedder` object from the provided -file such as invalid file. -
-`RuntimeError` - -If other types of error occurred. -
- - - -

create_from_options

- -View source - - - -Creates the `AudioEmbedder` object from audio embedder options. - - - - - - - - - - - -
Args
-`options` - -Options for the audio embedder task. -
- - - - - - - - - - - -
Returns
-`AudioEmbedder` object that's created from `options`. -
- - - - - - - - - - - - - - - -
Raises
-`ValueError` - -If failed to create `AudioEmbedder` object from -`AudioEmbedderOptions` such as missing the model. -
-`RuntimeError` - -If other types of error occurred. -
- - - -

create_input_tensor_audio

- -View source - - - -Creates a TensorAudio instance to store the audio input. - - - - - - - - - - -
Returns
-A TensorAudio instance. -
- - - -

embed

- -View source - - - -Performs actual feature vector extraction on the provided audio. - - - - - - - - - - - -
Args
-`audio` - -Tensor audio, used to extract the feature vectors. -
- - - - - - - - - - - -
Returns
-embedding result. -
- - - - - - - - - - - - - - - -
Raises
-`ValueError` - -If any of the input arguments is invalid. -
-`RuntimeError` - -If failed to calculate the embedding vector. -
- - - -

get_embedding_dimension

- -View source - - - -Gets the dimensionality of the embedding output. - - - - - - - - - - - -
Args
-`output_index` - -The output index of output layer. -
- - - - - - - - - - - -
Returns
-Dimensionality of the embedding output by the output_index'th output -layer. Returns -1 if `output_index` is out of bounds. -
diff --git a/site/en/lite/api_docs/python/tflite_support/task/audio/AudioEmbedderOptions.md b/site/en/lite/api_docs/python/tflite_support/task/audio/AudioEmbedderOptions.md deleted file mode 100644 index d50f61a174..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/audio/AudioEmbedderOptions.md +++ /dev/null @@ -1,79 +0,0 @@ -page_type: reference -description: Options for the audio embedder task. - - - - - - -
- - - - -
- -# tflite_support.task.audio.AudioEmbedderOptions - - - - - - - - - -Options for the audio embedder task. - - - - - - - - - - - - - - - - - - - - - - -
-`base_options` - -Base options for the audio embedder task. -
-`embedding_options` - -Embedding options for the audio embedder task. -
- - - -## Methods - -

__eq__

- - diff --git a/site/en/lite/api_docs/python/tflite_support/task/audio/AudioFormat.md b/site/en/lite/api_docs/python/tflite_support/task/audio/AudioFormat.md deleted file mode 100644 index cc3c40efcb..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/audio/AudioFormat.md +++ /dev/null @@ -1,57 +0,0 @@ -page_type: reference - - - - - -
- - - - -
- -# tflite_support.task.audio.AudioFormat - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`channels` - - -
-`sample_rate` - - -
diff --git a/site/en/lite/api_docs/python/tflite_support/task/audio/AudioRecord.md b/site/en/lite/api_docs/python/tflite_support/task/audio/AudioRecord.md deleted file mode 100644 index 02a0449e6a..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/audio/AudioRecord.md +++ /dev/null @@ -1,223 +0,0 @@ -page_type: reference -description: A class to record audio in a streaming basis. - - - - - - -
- - - - - - -
- -# tflite_support.task.audio.AudioRecord - - - - - - - - - -A class to record audio in a streaming basis. - - - - - - - - - - - - - - - - - - - - - - - -
-`channels` - -Number of input channels. -
-`sampling_rate` - -Sampling rate in Hertz. -
-`buffer_size` - -Size of the ring buffer in number of samples. -
- - - - - - - - - - - - - - - - - - -
-`ValueError` - -if any of the arguments is non-positive. -
-`ImportError` - -if failed to import `sounddevice`. -
-`OSError` - -if failed to load `PortAudio`. -
- - - - - - - - - - - - - - - - - - - - -
-`buffer_size` - - -
-`channels` - - -
-`sampling_rate` - - -
- - - -## Methods - -

read

- -View source - - - -Reads the latest audio data captured in the buffer. - - - - - - - - - - - -
Args
-`size` - -Number of samples to read from the buffer. -
- - - - - - - - - - - -
Returns
-A NumPy array containing the audio data. -
- - - - - - - - - - - - -
Raises
-`ValueError` - -Raised if `size` is larger than the buffer size. -
- - - -

start_recording

- -View source - - - -Starts the audio recording. - - -

stop

- -View source - - - -Stops the audio recording. diff --git a/site/en/lite/api_docs/python/tflite_support/task/audio/TensorAudio.md b/site/en/lite/api_docs/python/tflite_support/task/audio/TensorAudio.md deleted file mode 100644 index e71f85546e..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/audio/TensorAudio.md +++ /dev/null @@ -1,320 +0,0 @@ -page_type: reference -description: A wrapper class to store the input audio. - - - - - - -
- - - - - - - -
- -# tflite_support.task.audio.TensorAudio - - - - - - - - - -A wrapper class to store the input audio. - - - - - - - - - - - - - - - - - - - - -
-`audio_format` - -format of the audio. -
-`buffer_size` - -buffer size of the audio. -
- - - - - - - - - - - - - - - - - - - - -
-`buffer` - -Gets the internal buffer. -
-`buffer_size` - -Gets the sample count of the audio. -
-`format` - -Gets the audio format of the audio. -
- - - -## Methods - -

clear

- -View source - - - -Clear the internal buffer and fill it with zeros. - - -

create_from_wav_file

- -View source - - - -Creates `TensorAudio` object from the WAV file. - - - - - - - - - - - - - - - - - -
Args
-`file_name` - -WAV file name. -
-`sample_count` - -The number of samples to read from the WAV file. This value -should match with the input size of the TensorFlow Lite audio model that -will consume the created TensorAudio object. If the WAV file contains -more samples than sample_count, only the samples at the beginning of the -WAV file will be loaded. -
-`offset` - -An optional offset for allowing the user to skip a certain number -samples at the beginning. -
- - - - - - - - - - - -
Returns
-`TensorAudio` object. -
- - - - - - - - - - - - - - - -
Raises
-`ValueError` - -If an input parameter, such as the audio file, is invalid. -
-`RuntimeError` - -If other types of error occurred. -
- - - -

load_from_array

- -View source - - - -Loads the audio data from a NumPy array. - - - - - - - - - - - - - - - - - -
Args
-`src` - -A NumPy source array contains the input audio. -
-`offset` - -An optional offset for loading a slice of the `src` array to the -buffer. -
-`size` - -An optional size parameter denoting the number of samples to load -from the `src` array. -
- - - - - - - - - - - - -
Raises
-`ValueError` - -If the input array has an incorrect shape or if -`offset` + `size` exceeds the length of the `src` array. -
- - - -

load_from_audio_record

- -View source - - - -Loads audio data from an AudioRecord instance. - - - - - - - - - - - -
Args
-`record` - -An AudioRecord instance. -
- - - - - - - - - - - - - - - -
Raises
-`ValueError` - -Raised if the audio record's config is invalid. -
-`RuntimeError` - -Raised if other types of error occurred. -
diff --git a/site/en/lite/api_docs/python/tflite_support/task/core.md b/site/en/lite/api_docs/python/tflite_support/task/core.md deleted file mode 100644 index 84c1a51986..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/core.md +++ /dev/null @@ -1,36 +0,0 @@ -page_type: reference -description: TensorFlow Lite Task Library's core module. - - - - - - -
- - -
- -# Module: tflite_support.task.core - - - - - - - - - -TensorFlow Lite Task Library's core module. - - -This module contains classes used across multiple tasks in the Task Library. - -## Classes - -[`class BaseOptions`](../../tflite_support/task/core/BaseOptions): Base options for TensorFlow Lite Task Library's Python APIs. diff --git a/site/en/lite/api_docs/python/tflite_support/task/core/BaseOptions.md b/site/en/lite/api_docs/python/tflite_support/task/core/BaseOptions.md deleted file mode 100644 index fad988b0bb..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/core/BaseOptions.md +++ /dev/null @@ -1,186 +0,0 @@ -page_type: reference -description: Base options for TensorFlow Lite Task Library's Python APIs. - - - - - - -
- - - - - - - - -
- -# tflite_support.task.core.BaseOptions - - - - - - - - - -Base options for TensorFlow Lite Task Library's Python APIs. - - - - - - - -Represents external files used by the Task APIs (e.g. TF Lite FlatBuffer or -plain-text labels file). The files can be specified by one of the following -two ways: - -(1) file contents loaded in `file_content`. -(2) file path in `file_name`. - -If more than one field of these fields is provided, they are used in this -precedence order. - - - - - - - - - - - - - - - - - - - - - -
-`file_name` - -Path to the index. -
-`file_content` - -The index file contents as bytes. -
-`num_threads` - -Number of thread, the default value is -1 which means -Interpreter will decide what is the most appropriate `num_threads`. -
-`use_coral` - -If true, inference will be delegated to a connected Coral Edge -TPU device. -
- - - -## Methods - -

__eq__

- -View source - - - -Checks if this object is equal to the given object. - - - - - - - - - - - -
Args
-`other` - -The object to be compared with. -
- - - - - - - - - - - -
Returns
-True if the objects are equal. -
- - - - - - - - - - - - - - - - - - - - - - - - - -
-file_content - -`None` -
-file_name - -`None` -
-num_threads - -`-1` -
-use_coral - -`None` -
diff --git a/site/en/lite/api_docs/python/tflite_support/task/processor.md b/site/en/lite/api_docs/python/tflite_support/task/processor.md deleted file mode 100644 index a850d6b54d..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/processor.md +++ /dev/null @@ -1,95 +0,0 @@ -page_type: reference -description: TensorFlow Lite Task Library's processor module. - - - - - - -
- - -
- -# Module: tflite_support.task.processor - - - - - - - - - -TensorFlow Lite Task Library's processor module. - - -This module contains classes related to the pre-processing and post-processing -steps of the Task Library. - -## Classes - -[`class BertCluAnnotationOptions`](../../tflite_support/task/processor/BertCluAnnotationOptions): Options for Bert CLU Annotator processor. - -[`class BoundingBox`](../../tflite_support/task/processor/BoundingBox): An integer bounding box, axis aligned. - -[`class CategoricalSlot`](../../tflite_support/task/processor/CategoricalSlot): Represents a categorical slot whose values are within a finite set. - -[`class Category`](../../tflite_support/task/processor/Category): A classification category. - -[`class ClassificationOptions`](../../tflite_support/task/processor/ClassificationOptions): Options for classification processor. - -[`class ClassificationResult`](../../tflite_support/task/processor/ClassificationResult): Contains one set of results per classifier head. - -[`class Classifications`](../../tflite_support/task/processor/Classifications): List of predicted classes (aka labels) for a given classifier head. - -[`class CluRequest`](../../tflite_support/task/processor/CluRequest): The input to CLU (Conversational Language Understanding). - -[`class CluResponse`](../../tflite_support/task/processor/CluResponse): The output of CLU. - -[`class ColoredLabel`](../../tflite_support/task/processor/ColoredLabel): Defines a label associated with an RGB color, for display purposes. - -[`class ConfidenceMask`](../../tflite_support/task/processor/ConfidenceMask): 2D-array representing the confidence mask in row major order. - -[`class Detection`](../../tflite_support/task/processor/Detection): Represents one detected object in the object detector's results. - -[`class DetectionOptions`](../../tflite_support/task/processor/DetectionOptions): Options for object detection processor. - -[`class DetectionResult`](../../tflite_support/task/processor/DetectionResult): Represents the list of detected objects. - -[`class Embedding`](../../tflite_support/task/processor/Embedding): Result produced by one of the embedder model output layers. - -[`class EmbeddingOptions`](../../tflite_support/task/processor/EmbeddingOptions): Options for embedding processor. - -[`class EmbeddingResult`](../../tflite_support/task/processor/EmbeddingResult): Embeddings produced by the Embedder. - -[`class FeatureVector`](../../tflite_support/task/processor/FeatureVector): A dense feature vector. - -[`class Mention`](../../tflite_support/task/processor/Mention): A single mention result. - -[`class MentionedSlot`](../../tflite_support/task/processor/MentionedSlot): Non-categorical slot whose values are open text extracted from the input text. - -[`class NearestNeighbor`](../../tflite_support/task/processor/NearestNeighbor): A single nearest neighbor. - -[`class OutputType`](../../tflite_support/task/processor/OutputType): An enumeration. - -[`class Pos`](../../tflite_support/task/processor/Pos): Position information of the answer relative to context. - -[`class QaAnswer`](../../tflite_support/task/processor/QaAnswer): Represents the Answer to BertQuestionAnswerer. - -[`class QuestionAnswererResult`](../../tflite_support/task/processor/QuestionAnswererResult): The list of probable answers generated by BertQuestionAnswerer. - -[`class SearchOptions`](../../tflite_support/task/processor/SearchOptions): Options for search processor. - -[`class SearchResult`](../../tflite_support/task/processor/SearchResult): Results from a search as a list of nearest neigbors. - -[`class Segmentation`](../../tflite_support/task/processor/Segmentation): Represents one Segmentation object in the image segmenter's results. - -[`class SegmentationOptions`](../../tflite_support/task/processor/SegmentationOptions): Options for segmentation processor. - -[`class SegmentationResult`](../../tflite_support/task/processor/SegmentationResult): Results of performing image segmentation. diff --git a/site/en/lite/api_docs/python/tflite_support/task/processor/BertCluAnnotationOptions.md b/site/en/lite/api_docs/python/tflite_support/task/processor/BertCluAnnotationOptions.md deleted file mode 100644 index e28e4ea598..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/processor/BertCluAnnotationOptions.md +++ /dev/null @@ -1,192 +0,0 @@ -page_type: reference -description: Options for Bert CLU Annotator processor. - - - - - - -
- - - - - - - - - -
- -# tflite_support.task.processor.BertCluAnnotationOptions - - - - - - - - - -Options for Bert CLU Annotator processor. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`max_history_turns` - -Max number of history turns to encode by the model. -
-`domain_threshold` - -The threshold of domain prediction. -
-`intent_threshold` - -The threshold of intent prediction. -
-`categorical_slot_threshold` - -The threshold of categorical slot prediction. -
-`mentioned_slot_threshold` - -The threshold of mentioned slot -prediction. -
- - - -## Methods - -

__eq__

- -View source - - - -Checks if this object is equal to the given object. - - - - - - - - - - - -
Args
-`other` - -The object to be compared with. -
- - - - - - - - - - - -
Returns
-True if the objects are equal. -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-categorical_slot_threshold - -`0.5` -
-domain_threshold - -`0.5` -
-intent_threshold - -`0.5` -
-max_history_turns - -`5` -
-mentioned_slot_threshold - -`0.5` -
diff --git a/site/en/lite/api_docs/python/tflite_support/task/processor/BoundingBox.md b/site/en/lite/api_docs/python/tflite_support/task/processor/BoundingBox.md deleted file mode 100644 index 7555eb151d..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/processor/BoundingBox.md +++ /dev/null @@ -1,126 +0,0 @@ -page_type: reference -description: An integer bounding box, axis aligned. - - - - - - -
- - - - -
- -# tflite_support.task.processor.BoundingBox - - - - - - - - - -An integer bounding box, axis aligned. - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`origin_x` - -The X coordinate of the top-left corner, in pixels. -
-`origin_y` - -The Y coordinate of the top-left corner, in pixels. -
-`width` - -The width of the bounding box, in pixels. -
-`height` - -The height of the bounding box, in pixels. -
- - - -## Methods - -

__eq__

- -View source - - - -Checks if this object is equal to the given object. - - - - - - - - - - - -
Args
-`other` - -The object to be compared with. -
- - - - - - - - - - - -
Returns
-True if the objects are equal. -
diff --git a/site/en/lite/api_docs/python/tflite_support/task/processor/CategoricalSlot.md b/site/en/lite/api_docs/python/tflite_support/task/processor/CategoricalSlot.md deleted file mode 100644 index 5a39609a32..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/processor/CategoricalSlot.md +++ /dev/null @@ -1,113 +0,0 @@ -page_type: reference -description: Represents a categorical slot whose values are within a finite set. - - - - - - -
- - - - -
- -# tflite_support.task.processor.CategoricalSlot - - - - - - - - - -Represents a categorical slot whose values are within a finite set. - - - - - - - - - - - - - - - - - - - - - - -
-`slot` - -The name of the slot. -
-`prediction` - -The predicted class. -
- - - -## Methods - -

__eq__

- -View source - - - -Checks if this object is equal to the given object. - - - - - - - - - - - -
Args
-`other` - -The object to be compared with. -
- - - - - - - - - - - -
Returns
-True if the objects are equal. -
diff --git a/site/en/lite/api_docs/python/tflite_support/task/processor/Category.md b/site/en/lite/api_docs/python/tflite_support/task/processor/Category.md deleted file mode 100644 index cd8d2220c3..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/processor/Category.md +++ /dev/null @@ -1,131 +0,0 @@ -page_type: reference -description: A classification category. - - - - - - -
- - - - -
- -# tflite_support.task.processor.Category - - - - - - - - - -A classification category. - - - - - - - -Category is a util class, contains a label, its display name, a float -value as score, and the index of the label in the corresponding label file. -Typically it's used as the result of classification tasks. - - - - - - - - - - - - - - - - - - - - - -
-`index` - -The index of the label in the corresponding label file. -
-`score` - -The probability score of this label category. -
-`display_name` - -The display name of the label, which may be translated for -different locales. For example, a label, "apple", may be translated into -Spanish for display purpose, so that the `display_name` is "manzana". -
-`category_name` - -The label of this category object. -
- - - -## Methods - -

__eq__

- -View source - - - -Checks if this object is equal to the given object. - - - - - - - - - - - -
Args
-`other` - -The object to be compared with. -
- - - - - - - - - - - -
Returns
-True if the objects are equal. -
diff --git a/site/en/lite/api_docs/python/tflite_support/task/processor/ClassificationOptions.md b/site/en/lite/api_docs/python/tflite_support/task/processor/ClassificationOptions.md deleted file mode 100644 index 71daf1366b..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/processor/ClassificationOptions.md +++ /dev/null @@ -1,198 +0,0 @@ -page_type: reference -description: Options for classification processor. - - - - - - -
- - - - - - - - - -
- -# tflite_support.task.processor.ClassificationOptions - - - - - - - - - -Options for classification processor. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`display_names_locale` - -The locale to use for display names specified through -the TFLite Model Metadata. -
-`max_results` - -The maximum number of top-scored classification results to -return. -
-`score_threshold` - -Overrides the ones provided in the model metadata. Results -below this value are rejected. -
-`category_name_allowlist` - -If non-empty, classifications whose class name is -not in this set will be filtered out. Duplicate or unknown class names are -ignored. Mutually exclusive with `category_name_denylist`. -
-`category_name_denylist` - -If non-empty, classifications whose class name is in -this set will be filtered out. Duplicate or unknown class names are -ignored. Mutually exclusive with `category_name_allowlist`. -
- - - -## Methods - -

__eq__

- -View source - - - -Checks if this object is equal to the given object. - - - - - - - - - - - -
Args
-`other` - -The object to be compared with. -
- - - - - - - - - - - -
Returns
-True if the objects are equal. -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-category_name_allowlist - -`None` -
-category_name_denylist - -`None` -
-display_names_locale - -`None` -
-max_results - -`None` -
-score_threshold - -`None` -
diff --git a/site/en/lite/api_docs/python/tflite_support/task/processor/ClassificationResult.md b/site/en/lite/api_docs/python/tflite_support/task/processor/ClassificationResult.md deleted file mode 100644 index a31f7bb964..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/processor/ClassificationResult.md +++ /dev/null @@ -1,105 +0,0 @@ -page_type: reference -description: Contains one set of results per classifier head. - - - - - - -
- - - - -
- -# tflite_support.task.processor.ClassificationResult - - - - - - - - - -Contains one set of results per classifier head. - - - - - - - - - - - - - - - - - - - -
-`classifications` - -A list of `Classifications` objects. -
- - - -## Methods - -

__eq__

- -View source - - - -Checks if this object is equal to the given object. - - - - - - - - - - - -
Args
-`other` - -The object to be compared with. -
- - - - - - - - - - - -
Returns
-True if the objects are equal. -
diff --git a/site/en/lite/api_docs/python/tflite_support/task/processor/Classifications.md b/site/en/lite/api_docs/python/tflite_support/task/processor/Classifications.md deleted file mode 100644 index 18c6ea1fa8..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/processor/Classifications.md +++ /dev/null @@ -1,124 +0,0 @@ -page_type: reference -description: List of predicted classes (aka labels) for a given classifier head. - - - - - - -
- - - - -
- -# tflite_support.task.processor.Classifications - - - - - - - - - -List of predicted classes (aka labels) for a given classifier head. - - - - - - - - - - - - - - - - - - - - - - - - - -
-`categories` - -The array of predicted categories, usually sorted by descending -scores (e.g. from high to low probability). -
-`head_index` - -The index of the classifier head these categories refer to. This -is useful for multi-head models. -
-`head_name` - -The name of the classifier head, which is the corresponding -tensor metadata. -
- - - -## Methods - -

__eq__

- -View source - - - -Checks if this object is equal to the given object. - - - - - - - - - - - -
Args
-`other` - -The object to be compared with. -
- - - - - - - - - - - -
Returns
-True if the objects are equal. -
diff --git a/site/en/lite/api_docs/python/tflite_support/task/processor/CluRequest.md b/site/en/lite/api_docs/python/tflite_support/task/processor/CluRequest.md deleted file mode 100644 index 46b4e80d22..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/processor/CluRequest.md +++ /dev/null @@ -1,106 +0,0 @@ -page_type: reference -description: The input to CLU (Conversational Language Understanding). - - - - - - -
- - - - -
- -# tflite_support.task.processor.CluRequest - - - - - - - - - -The input to CLU (Conversational Language Understanding). - - - - - - - - - - - - - - - - - - - -
-`utterances` - -The utterances of dialogue conversation turns in the -chronological order. The last utterance is the current turn. -
- - - -## Methods - -

__eq__

- -View source - - - -Checks if this object is equal to the given object. - - - - - - - - - - - -
Args
-`other` - -The object to be compared with. -
- - - - - - - - - - - -
Returns
-True if the objects are equal. -
diff --git a/site/en/lite/api_docs/python/tflite_support/task/processor/CluResponse.md b/site/en/lite/api_docs/python/tflite_support/task/processor/CluResponse.md deleted file mode 100644 index 752fc76ce4..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/processor/CluResponse.md +++ /dev/null @@ -1,129 +0,0 @@ -page_type: reference -description: The output of CLU. - - - - - - -
- - - - -
- -# tflite_support.task.processor.CluResponse - - - - - - - - - -The output of CLU. - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`domains` - -The list of predicted domains. -
-`intents` - -The list of predicted intents. -
-`categorical_slots` - -The list of predicted categorical slots. -
-`mentioned_slots` - -The list of predicted mentioned slots. -
- - - -## Methods - -

__eq__

- -View source - - - -Checks if this object is equal to the given object. - - - - - - - - - - - -
Args
-`other` - -The object to be compared with. -
- - - - - - - - - - - -
Returns
-True if the objects are equal. -
diff --git a/site/en/lite/api_docs/python/tflite_support/task/processor/ColoredLabel.md b/site/en/lite/api_docs/python/tflite_support/task/processor/ColoredLabel.md deleted file mode 100644 index d5e703f295..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/processor/ColoredLabel.md +++ /dev/null @@ -1,121 +0,0 @@ -page_type: reference -description: Defines a label associated with an RGB color, for display purposes. - - - - - - -
- - - - -
- -# tflite_support.task.processor.ColoredLabel - - - - - - - - - -Defines a label associated with an RGB color, for display purposes. - - - - - - - - - - - - - - - - - - - - - - - - - -
-`color` - -The RGB color components for the label, in the [0, 255] range. -
-`category_name` - -The class name, as provided in the label map packed in the -TFLite ModelMetadata. -
-`display_name` - -The display name, as provided in the label map (if available) -packed in the TFLite Model Metadata . -
- - - -## Methods - -

__eq__

- -View source - - - -Checks if this object is equal to the given object. - - - - - - - - - - - -
Args
-`other` - -The object to be compared with. -
- - - - - - - - - - - -
Returns
-True if the objects are equal. -
diff --git a/site/en/lite/api_docs/python/tflite_support/task/processor/ConfidenceMask.md b/site/en/lite/api_docs/python/tflite_support/task/processor/ConfidenceMask.md deleted file mode 100644 index 53e3c62595..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/processor/ConfidenceMask.md +++ /dev/null @@ -1,109 +0,0 @@ -page_type: reference -description: 2D-array representing the confidence mask in row major order. - - - - - - -
- - - - -
- -# tflite_support.task.processor.ConfidenceMask - - - - - - - - - -2D-array representing the confidence mask in row major order. - - - - - - - -For each pixel, the value indicates the prediction confidence usually -in the [0, 1] range where higher values represent a stronger confidence. -Ultimately this is model specific, and other range of values might be used. - - - - - - - - - - - - -
-`value` - -A NumPy 2D-array indicating the prediction confidence values usually -in the range [0, 1]. -
- - - -## Methods - -

__eq__

- -View source - - - -Checks if this object is equal to the given object. - - - - - - - - - - - -
Args
-`other` - -The object to be compared with. -
- - - - - - - - - - - -
Returns
-True if the objects are equal. -
diff --git a/site/en/lite/api_docs/python/tflite_support/task/processor/Detection.md b/site/en/lite/api_docs/python/tflite_support/task/processor/Detection.md deleted file mode 100644 index 207a915e63..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/processor/Detection.md +++ /dev/null @@ -1,113 +0,0 @@ -page_type: reference -description: Represents one detected object in the object detector's results. - - - - - - -
- - - - -
- -# tflite_support.task.processor.Detection - - - - - - - - - -Represents one detected object in the object detector's results. - - - - - - - - - - - - - - - - - - - - - - -
-`bounding_box` - -A `bounding_box_pb2.BoundingBox` object. -
-`categories` - -A list of `class_pb2.Category` objects. -
- - - -## Methods - -

__eq__

- -View source - - - -Checks if this object is equal to the given object. - - - - - - - - - - - -
Args
-`other` - -The object to be compared with. -
- - - - - - - - - - - -
Returns
-True if the objects are equal. -
diff --git a/site/en/lite/api_docs/python/tflite_support/task/processor/DetectionOptions.md b/site/en/lite/api_docs/python/tflite_support/task/processor/DetectionOptions.md deleted file mode 100644 index 56e3b113f7..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/processor/DetectionOptions.md +++ /dev/null @@ -1,198 +0,0 @@ -page_type: reference -description: Options for object detection processor. - - - - - - -
- - - - - - - - - -
- -# tflite_support.task.processor.DetectionOptions - - - - - - - - - -Options for object detection processor. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`display_names_locale` - -The locale to use for display names specified through -the TFLite Model Metadata. -
-`max_results` - -The maximum number of top-scored classification results to -return. -
-`score_threshold` - -Overrides the ones provided in the model metadata. Results -below this value are rejected. -
-`category_name_allowlist` - -If non-empty, classifications whose class name is -not in this set will be filtered out. Duplicate or unknown class names are -ignored. Mutually exclusive with `category_name_denylist`. -
-`category_name_denylist` - -If non-empty, classifications whose class name is in -this set will be filtered out. Duplicate or unknown class names are -ignored. Mutually exclusive with `category_name_allowlist`. -
- - - -## Methods - -

__eq__

- -View source - - - -Checks if this object is equal to the given object. - - - - - - - - - - - -
Args
-`other` - -The object to be compared with. -
- - - - - - - - - - - -
Returns
-True if the objects are equal. -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-category_name_allowlist - -`None` -
-category_name_denylist - -`None` -
-display_names_locale - -`None` -
-max_results - -`None` -
-score_threshold - -`None` -
diff --git a/site/en/lite/api_docs/python/tflite_support/task/processor/DetectionResult.md b/site/en/lite/api_docs/python/tflite_support/task/processor/DetectionResult.md deleted file mode 100644 index 3caff32db6..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/processor/DetectionResult.md +++ /dev/null @@ -1,105 +0,0 @@ -page_type: reference -description: Represents the list of detected objects. - - - - - - -
- - - - -
- -# tflite_support.task.processor.DetectionResult - - - - - - - - - -Represents the list of detected objects. - - - - - - - - - - - - - - - - - - - -
-`detections` - -A list of `Detection` objects. -
- - - -## Methods - -

__eq__

- -View source - - - -Checks if this object is equal to the given object. - - - - - - - - - - - -
Args
-`other` - -The object to be compared with. -
- - - - - - - - - - - -
Returns
-True if the objects are equal. -
diff --git a/site/en/lite/api_docs/python/tflite_support/task/processor/Embedding.md b/site/en/lite/api_docs/python/tflite_support/task/processor/Embedding.md deleted file mode 100644 index c5f46137dc..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/processor/Embedding.md +++ /dev/null @@ -1,114 +0,0 @@ -page_type: reference -description: Result produced by one of the embedder model output layers. - - - - - - -
- - - - -
- -# tflite_support.task.processor.Embedding - - - - - - - - - -Result produced by one of the embedder model output layers. - - - - - - - - - - - - - - - - - - - - - - -
-`feature_vector` - -The output feature vector. -
-`output_index` - -The index of the model output layer that produced this feature -vector. -
- - - -## Methods - -

__eq__

- -View source - - - -Checks if this object is equal to the given object. - - - - - - - - - - - -
Args
-`other` - -The object to be compared with. -
- - - - - - - - - - - -
Returns
-True if the objects are equal. -
diff --git a/site/en/lite/api_docs/python/tflite_support/task/processor/EmbeddingOptions.md b/site/en/lite/api_docs/python/tflite_support/task/processor/EmbeddingOptions.md deleted file mode 100644 index e67d531596..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/processor/EmbeddingOptions.md +++ /dev/null @@ -1,148 +0,0 @@ -page_type: reference -description: Options for embedding processor. - - - - - - -
- - - - - - -
- -# tflite_support.task.processor.EmbeddingOptions - - - - - - - - - -Options for embedding processor. - - - - - - - - - - - - - - - - - - - - - - -
-`l2_normalize` - -Whether to normalize the returned feature vector with L2 norm. -Use this option only if the model does not already contain a native -L2_NORMALIZATION TF Lite Op. In most cases, this is already the case and -L2 norm is thus achieved through TF Lite inference. -
-`quantize` - -Whether the returned embedding should be quantized to bytes via -scalar quantization. Embeddings are implicitly assumed to be unit-norm and -therefore any dimension is guaranteed to have a value in [-1.0, 1.0]. Use -the l2_normalize option if this is not the case. -
- - - -## Methods - -

__eq__

- -View source - - - -Checks if this object is equal to the given object. - - - - - - - - - - - -
Args
-`other` - -The object to be compared with. -
- - - - - - - - - - - -
Returns
-True if the objects are equal. -
- - - - - - - - - - - - - - - - - - - -
-l2_normalize - -`None` -
-quantize - -`None` -
diff --git a/site/en/lite/api_docs/python/tflite_support/task/processor/EmbeddingResult.md b/site/en/lite/api_docs/python/tflite_support/task/processor/EmbeddingResult.md deleted file mode 100644 index 72fea43f4e..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/processor/EmbeddingResult.md +++ /dev/null @@ -1,107 +0,0 @@ -page_type: reference -description: Embeddings produced by the Embedder. - - - - - - -
- - - - -
- -# tflite_support.task.processor.EmbeddingResult - - - - - - - - - -Embeddings produced by the Embedder. - - - - - - - - - - - - - - - - - - - -
-`embeddings` - -The embeddings produced by each of the model output layers. -Except in advanced cases, the embedding model has a single output layer, -and this list is thus made of a single element feature vector. -
- - - -## Methods - -

__eq__

- -View source - - - -Checks if this object is equal to the given object. - - - - - - - - - - - -
Args
-`other` - -The object to be compared with. -
- - - - - - - - - - - -
Returns
-True if the objects are equal. -
diff --git a/site/en/lite/api_docs/python/tflite_support/task/processor/FeatureVector.md b/site/en/lite/api_docs/python/tflite_support/task/processor/FeatureVector.md deleted file mode 100644 index 53b38eb84d..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/processor/FeatureVector.md +++ /dev/null @@ -1,109 +0,0 @@ -page_type: reference -description: A dense feature vector. - - - - - - -
- - - - -
- -# tflite_support.task.processor.FeatureVector - - - - - - - - - -A dense feature vector. - - - - - - - -Only one of the two fields is ever present. -Feature vectors are assumed to be one-dimensional and L2-normalized. - - - - - - - - - - - - -
-`value` - -A NumPy array indidcating the raw output of the embedding layer. The -datatype of elements in the array can be either float or uint8 if -`quantize` is set to True in `EmbeddingOptions`. -
- - - -## Methods - -

__eq__

- -View source - - - -Checks if this object is equal to the given object. - - - - - - - - - - - -
Args
-`other` - -The object to be compared with. -
- - - - - - - - - - - -
Returns
-True if the objects are equal. -
diff --git a/site/en/lite/api_docs/python/tflite_support/task/processor/Mention.md b/site/en/lite/api_docs/python/tflite_support/task/processor/Mention.md deleted file mode 100644 index 3169967509..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/processor/Mention.md +++ /dev/null @@ -1,127 +0,0 @@ -page_type: reference -description: A single mention result. - - - - - - -
- - - - -
- -# tflite_support.task.processor.Mention - - - - - - - - - -A single mention result. - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`value` - -The text value of the mention. -
-`score` - -The score for this mention e.g. (but not necessarily) a -probability in [0,1]. -
-`start` - -Start of the bytes of this mention. -
-`end` - -Exclusive end of the bytes of this mention. -
- - - -## Methods - -

__eq__

- -View source - - - -Checks if this object is equal to the given object. - - - - - - - - - - - -
Args
-`other` - -The object to be compared with. -
- - - - - - - - - - - -
Returns
-True if the objects are equal. -
diff --git a/site/en/lite/api_docs/python/tflite_support/task/processor/MentionedSlot.md b/site/en/lite/api_docs/python/tflite_support/task/processor/MentionedSlot.md deleted file mode 100644 index 92b51fb7f0..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/processor/MentionedSlot.md +++ /dev/null @@ -1,113 +0,0 @@ -page_type: reference -description: Non-categorical slot whose values are open text extracted from the input text. - - - - - - -
- - - - -
- -# tflite_support.task.processor.MentionedSlot - - - - - - - - - -Non-categorical slot whose values are open text extracted from the input text. - - - - - - - - - - - - - - - - - - - - - - -
-`slot` - -The name of the slot. -
-`mention` - -The predicted mention. -
- - - -## Methods - -

__eq__

- -View source - - - -Checks if this object is equal to the given object. - - - - - - - - - - - -
Args
-`other` - -The object to be compared with. -
- - - - - - - - - - - -
Returns
-True if the objects are equal. -
diff --git a/site/en/lite/api_docs/python/tflite_support/task/processor/NearestNeighbor.md b/site/en/lite/api_docs/python/tflite_support/task/processor/NearestNeighbor.md deleted file mode 100644 index ff5aec60a5..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/processor/NearestNeighbor.md +++ /dev/null @@ -1,114 +0,0 @@ -page_type: reference -description: A single nearest neighbor. - - - - - - -
- - - - -
- -# tflite_support.task.processor.NearestNeighbor - - - - - - - - - -A single nearest neighbor. - - - - - - - - - - - - - - - - - - - - - - -
-`metadata` - -User-defined metadata about the result. This could be a label, a -unique ID, a serialized proto of some sort, etc. -
-`distance` - -The distance score indicating how confident the result is. Lower -is better. -
- - - -## Methods - -

__eq__

- -View source - - - -Checks if this object is equal to the given object. - - - - - - - - - - - -
Args
-`other` - -The object to be compared with. -
- - - - - - - - - - - -
Returns
-True if the objects are equal. -
diff --git a/site/en/lite/api_docs/python/tflite_support/task/processor/OutputType.md b/site/en/lite/api_docs/python/tflite_support/task/processor/OutputType.md deleted file mode 100644 index dbc64046ef..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/processor/OutputType.md +++ /dev/null @@ -1,66 +0,0 @@ -page_type: reference -description: An enumeration. - - - - - - -
- - - - - -
- -# tflite_support.task.processor.OutputType - - - - - - - - - -An enumeration. - - - - - - - - - - - - - - - - - - - - - -
-CATEGORY_MASK - -`` -
-CONFIDENCE_MASK - -`` -
-UNSPECIFIED - -`` -
diff --git a/site/en/lite/api_docs/python/tflite_support/task/processor/Pos.md b/site/en/lite/api_docs/python/tflite_support/task/processor/Pos.md deleted file mode 100644 index a1433edd04..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/processor/Pos.md +++ /dev/null @@ -1,122 +0,0 @@ -page_type: reference -description: Position information of the answer relative to context. - - - - - - -
- - - - -
- -# tflite_support.task.processor.Pos - - - - - - - - - -Position information of the answer relative to context. - - - - - - - -It is sortable in -descending order based on logit. - - - - - - - - - - - - - - - - - - -
-`start` - -The start offset index of the answer. -
-`end` - -The end offset index of the answer. -
-`logit` - -The logit of the answer. Higher value means it's more likely to be -the answer. -
- - - -## Methods - -

__eq__

- -View source - - - -Checks if this object is equal to the given object. - - - - - - - - - - - -
Args
-`other` - -The object to be compared with. -
- - - - - - - - - - - -
Returns
-True if the objects are equal. -
diff --git a/site/en/lite/api_docs/python/tflite_support/task/processor/QaAnswer.md b/site/en/lite/api_docs/python/tflite_support/task/processor/QaAnswer.md deleted file mode 100644 index 059fce0918..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/processor/QaAnswer.md +++ /dev/null @@ -1,113 +0,0 @@ -page_type: reference -description: Represents the Answer to BertQuestionAnswerer. - - - - - - -
- - - - -
- -# tflite_support.task.processor.QaAnswer - - - - - - - - - -Represents the Answer to BertQuestionAnswerer. - - - - - - - - - - - - - - - - - - - - - - -
-`pos` - -The relative position of the answer in the context. -
-text - -The answer text. -
- - - -## Methods - -

__eq__

- -View source - - - -Checks if this object is equal to the given object. - - - - - - - - - - - -
Args
-`other` - -The object to be compared with. -
- - - - - - - - - - - -
Returns
-True if the objects are equal. -
diff --git a/site/en/lite/api_docs/python/tflite_support/task/processor/QuestionAnswererResult.md b/site/en/lite/api_docs/python/tflite_support/task/processor/QuestionAnswererResult.md deleted file mode 100644 index 015d1a6d7f..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/processor/QuestionAnswererResult.md +++ /dev/null @@ -1,105 +0,0 @@ -page_type: reference -description: The list of probable answers generated by BertQuestionAnswerer. - - - - - - -
- - - - -
- -# tflite_support.task.processor.QuestionAnswererResult - - - - - - - - - -The list of probable answers generated by BertQuestionAnswerer. - - - - - - - - - - - - - - - - - - - -
-`answers` - -A list of `QaAnswer` objects. -
- - - -## Methods - -

__eq__

- -View source - - - -Checks if this object is equal to the given object. - - - - - - - - - - - -
Args
-`other` - -The object to be compared with. -
- - - - - - - - - - - -
Returns
-True if the objects are equal. -
diff --git a/site/en/lite/api_docs/python/tflite_support/task/processor/SearchOptions.md b/site/en/lite/api_docs/python/tflite_support/task/processor/SearchOptions.md deleted file mode 100644 index 64e5b33daf..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/processor/SearchOptions.md +++ /dev/null @@ -1,168 +0,0 @@ -page_type: reference -description: Options for search processor. - - - - - - -
- - - - - - - -
- -# tflite_support.task.processor.SearchOptions - - - - - - - - - -Options for search processor. - - - - - - - -The index file to search into. Mandatory only if the index is not attached -to the output tensor metadata as an AssociatedFile with type SCANN_INDEX_FILE. -The index file can be specified by one of the following two ways: - -(1) file contents loaded in `index_file_content`. -(2) file path in `index_file_name`. - -If more than one field of these fields is provided, they are used in this -precedence order. - - - - - - - - - - - - - - - - - - -
-`index_file_name` - -Path to the index. -
-`index_file_content` - -The index file contents as bytes. -
-`max_results` - -Maximum number of nearest neighbor results to return. -
- - - -## Methods - -

__eq__

- -View source - - - -Checks if this object is equal to the given object. - - - - - - - - - - - -
Args
-`other` - -The object to be compared with. -
- - - - - - - - - - - -
Returns
-True if the objects are equal. -
- - - - - - - - - - - - - - - - - - - - - - -
-index_file_content - -`None` -
-index_file_name - -`None` -
-max_results - -`5` -
diff --git a/site/en/lite/api_docs/python/tflite_support/task/processor/SearchResult.md b/site/en/lite/api_docs/python/tflite_support/task/processor/SearchResult.md deleted file mode 100644 index dabf4ad1d8..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/processor/SearchResult.md +++ /dev/null @@ -1,106 +0,0 @@ -page_type: reference -description: Results from a search as a list of nearest neigbors. - - - - - - -
- - - - -
- -# tflite_support.task.processor.SearchResult - - - - - - - - - -Results from a search as a list of nearest neigbors. - - - - - - - - - - - - - - - - - - - -
-`nearest_neighbors` - -The nearest neighbors, sorted by increasing distance -order. -
- - - -## Methods - -

__eq__

- -View source - - - -Checks if this object is equal to the given object. - - - - - - - - - - - -
Args
-`other` - -The object to be compared with. -
- - - - - - - - - - - -
Returns
-True if the objects are equal. -
diff --git a/site/en/lite/api_docs/python/tflite_support/task/processor/Segmentation.md b/site/en/lite/api_docs/python/tflite_support/task/processor/Segmentation.md deleted file mode 100644 index 5cfcc25a4b..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/processor/Segmentation.md +++ /dev/null @@ -1,169 +0,0 @@ -page_type: reference -description: Represents one Segmentation object in the image segmenter's results. - - - - - - -
- - - - - - -
- -# tflite_support.task.processor.Segmentation - - - - - - - - - -Represents one Segmentation object in the image segmenter's results. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-`height` - -The height of the mask. This is an intrinsic parameter of the model -being used, and does not depend on the input image dimensions. -
-`width` - -The width of the mask. This is an intrinsic parameter of the model -being used, and does not depend on the input image dimensions. -
-`colored_labels` - -A list of `ColoredLabel` objects. -
-`category_mask` - -A NumPy 2D-array of the category mask. -
-`confidence_masks` - -A list of `ConfidenceMask` objects. -
- - - -## Methods - -

__eq__

- -View source - - - -Checks if this object is equal to the given object. - - - - - - - - - - - -
Args
-`other` - -The object to be compared with. -
- - - - - - - - - - - -
Returns
-True if the objects are equal. -
- - - - - - - - - - - - - - - - - - - -
-category_mask - -`None` -
-confidence_masks - -`None` -
diff --git a/site/en/lite/api_docs/python/tflite_support/task/processor/SegmentationOptions.md b/site/en/lite/api_docs/python/tflite_support/task/processor/SegmentationOptions.md deleted file mode 100644 index 290e3f8609..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/processor/SegmentationOptions.md +++ /dev/null @@ -1,145 +0,0 @@ -page_type: reference -description: Options for segmentation processor. - - - - - - -
- - - - - - -
- -# tflite_support.task.processor.SegmentationOptions - - - - - - - - - -Options for segmentation processor. - - - - - - - - - - - - - - - - - - - - - - -
-`display_names_locale` - -The locale to use for display names specified through -the TFLite Model Metadata. -
-`output_type` - -The output mask type allows specifying the type of -post-processing to perform on the raw model results. -
- - - -## Methods - -

__eq__

- -View source - - - -Checks if this object is equal to the given object. - - - - - - - - - - - -
Args
-`other` - -The object to be compared with. -
- - - - - - - - - - - -
Returns
-True if the objects are equal. -
- - - - - - - - - - - - - - - - - - - -
-display_names_locale - -`None` -
-output_type - -`` -
diff --git a/site/en/lite/api_docs/python/tflite_support/task/processor/SegmentationResult.md b/site/en/lite/api_docs/python/tflite_support/task/processor/SegmentationResult.md deleted file mode 100644 index 32234b911a..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/processor/SegmentationResult.md +++ /dev/null @@ -1,108 +0,0 @@ -page_type: reference -description: Results of performing image segmentation. - - - - - - -
- - - - -
- -# tflite_support.task.processor.SegmentationResult - - - - - - - - - -Results of performing image segmentation. - - - - - - - -Note that at the time, a single `Segmentation` element is expected to be -returned; the field is made repeated for later extension to e.g. instance -segmentation models, which may return one segmentation per object. - - - - - - - - - - - - -
-`segmentations` - -A list of `Segmentation` objects. -
- - - -## Methods - -

__eq__

- -View source - - - -Checks if this object is equal to the given object. - - - - - - - - - - - -
Args
-`other` - -The object to be compared with. -
- - - - - - - - - - - -
Returns
-True if the objects are equal. -
diff --git a/site/en/lite/api_docs/python/tflite_support/task/text.md b/site/en/lite/api_docs/python/tflite_support/task/text.md deleted file mode 100644 index d8650d56fa..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/text.md +++ /dev/null @@ -1,59 +0,0 @@ -page_type: reference -description: TensorFlow Lite Task Library Text APIs. - - - - - - -
- - -
- -# Module: tflite_support.task.text - - - - - - - - - -TensorFlow Lite Task Library Text APIs. - - -This module provides interface to run TensorFlow Lite natural language -processing models. - -## Classes - -[`class BertCluAnnotator`](../../tflite_support/task/text/BertCluAnnotator): Class that performs Bert CLU Annotation on text. - -[`class BertCluAnnotatorOptions`](../../tflite_support/task/text/BertCluAnnotatorOptions): Options for the Bert CLU Annotator task. - -[`class BertNLClassifier`](../../tflite_support/task/text/BertNLClassifier): Class that performs Bert NL classification on text. - -[`class BertNLClassifierOptions`](../../tflite_support/task/text/BertNLClassifierOptions): Options for the Bert NL classifier task. - -[`class BertQuestionAnswerer`](../../tflite_support/task/text/BertQuestionAnswerer): Class that performs Bert question answering on text. - -[`class BertQuestionAnswererOptions`](../../tflite_support/task/text/BertQuestionAnswererOptions): Options for the Bert question answerer task. - -[`class NLClassifier`](../../tflite_support/task/text/NLClassifier): Class that performs NL classification on text. - -[`class NLClassifierOptions`](../../tflite_support/task/text/NLClassifierOptions): Options for the NL classifier task. - -[`class TextEmbedder`](../../tflite_support/task/text/TextEmbedder): Class that performs dense feature vector extraction on text. - -[`class TextEmbedderOptions`](../../tflite_support/task/text/TextEmbedderOptions): Options for the text embedder task. - -[`class TextSearcher`](../../tflite_support/task/text/TextSearcher): Class to performs text search. - -[`class TextSearcherOptions`](../../tflite_support/task/text/TextSearcherOptions): Options for the text search task. diff --git a/site/en/lite/api_docs/python/tflite_support/task/text/BertCluAnnotator.md b/site/en/lite/api_docs/python/tflite_support/task/text/BertCluAnnotator.md deleted file mode 100644 index 086fd5d6a3..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/text/BertCluAnnotator.md +++ /dev/null @@ -1,272 +0,0 @@ -page_type: reference -description: Class that performs Bert CLU Annotation on text. - - - - - - -
- - - - - - -
- -# tflite_support.task.text.BertCluAnnotator - - - - - - - - - -Class that performs Bert CLU Annotation on text. - - - - - - - - - - - - - - - - - - - -
-`options` - - -
- - - -## Methods - -

annotate

- -View source - - - -Performs actual Bert CLU Annotation on the provided CLU request. - - - - - - - - - - - -
Args
-`request` - -The input to CLU. -
- - - - - - - - - - - -
Returns
-The output of CLU. -
- - - - - - - - - - - - - - - -
Raises
-`ValueError` - -If any of the input arguments is invalid. -
-`RuntimeError` - -If failed to calculate the embedding vector. -
- - - -

create_from_file

- -View source - - - -Creates the `BertCluAnnotator` object from a TensorFlow Lite model. - - - - - - - - - - - -
Args
-`file_path` - -Path to the model. -
- - - - - - - - - - - -
Returns
-`BertCLUAnnotator` object that's created from the model file. -
- - - - - - - - - - - - - - - -
Raises
-`ValueError` - -If failed to create `BertCluAnnotator` object from the -provided file such as invalid file. -
-`RuntimeError` - -If other types of error occurred. -
- - - -

create_from_options

- -View source - - - -Creates the `BertCluAnnotator` object from Bert CLU Annotation options. - - - - - - - - - - - -
Args
-`options` - -Options for the Bert CLU annotation task. -
- - - - - - - - - - - -
Returns
-`BertCluAnnotator` object that's created from `options`. -
- - - - - - - - - - - - - - - -
Raises
-`ValueError` - -If failed to create `BertCluAnnotator` object from -`BertCluAnnotatorOptions` such as missing the model. -
-`RuntimeError` - -If other types of error occurred. -
diff --git a/site/en/lite/api_docs/python/tflite_support/task/text/BertCluAnnotatorOptions.md b/site/en/lite/api_docs/python/tflite_support/task/text/BertCluAnnotatorOptions.md deleted file mode 100644 index fd875d9bdb..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/text/BertCluAnnotatorOptions.md +++ /dev/null @@ -1,80 +0,0 @@ -page_type: reference -description: Options for the Bert CLU Annotator task. - - - - - - -
- - - - -
- -# tflite_support.task.text.BertCluAnnotatorOptions - - - - - - - - - -Options for the Bert CLU Annotator task. - - - - - - - - - - - - - - - - - - - - - - -
-`base_options` - -Base options for the Bert CLU Annotator task. -
-`bert_clu_annotation_options` - -Bert CLU Annotator options for the Bert CLU -Annotator task. -
- - - -## Methods - -

__eq__

- - diff --git a/site/en/lite/api_docs/python/tflite_support/task/text/BertNLClassifier.md b/site/en/lite/api_docs/python/tflite_support/task/text/BertNLClassifier.md deleted file mode 100644 index 1ddf6c62e3..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/text/BertNLClassifier.md +++ /dev/null @@ -1,272 +0,0 @@ -page_type: reference -description: Class that performs Bert NL classification on text. - - - - - - -
- - - - - - -
- -# tflite_support.task.text.BertNLClassifier - - - - - - - - - -Class that performs Bert NL classification on text. - - - - - - - - - - - - - - - - - - - -
-`options` - - -
- - - -## Methods - -

classify

- -View source - - - -Performs actual Bert NL classification on the provided text. - - - - - - - - - - - -
Args
-text - -the input text, used to extract the feature vectors. -
- - - - - - - - - - - -
Returns
-classification result. -
- - - - - - - - - - - - - - - -
Raises
-`ValueError` - -If any of the input arguments is invalid. -
-`RuntimeError` - -If failed to calculate the embedding vector. -
- - - -

create_from_file

- -View source - - - -Creates the `BertNLClassifier` object from a TensorFlow Lite model. - - - - - - - - - - - -
Args
-`file_path` - -Path to the model. -
- - - - - - - - - - - -
Returns
-`BertNLClassifier` object that's created from the model file. -
- - - - - - - - - - - - - - - -
Raises
-`ValueError` - -If failed to create `BertNLClassifier` object from the -provided file such as invalid file. -
-`RuntimeError` - -If other types of error occurred. -
- - - -

create_from_options

- -View source - - - -Creates the `BertNLClassifier` object from Bert NL classifier options. - - - - - - - - - - - -
Args
-`options` - -Options for the Bert NL classifier task. -
- - - - - - - - - - - -
Returns
-`BertNLClassifier` object that's created from `options`. -
- - - - - - - - - - - - - - - -
Raises
-`ValueError` - -If failed to create `BertNLClassifier` object from -`BertNLClassifierOptions` such as missing the model. -
-`RuntimeError` - -If other types of error occurred. -
diff --git a/site/en/lite/api_docs/python/tflite_support/task/text/BertNLClassifierOptions.md b/site/en/lite/api_docs/python/tflite_support/task/text/BertNLClassifierOptions.md deleted file mode 100644 index bd06a3dcc0..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/text/BertNLClassifierOptions.md +++ /dev/null @@ -1,71 +0,0 @@ -page_type: reference -description: Options for the Bert NL classifier task. - - - - - - -
- - - - -
- -# tflite_support.task.text.BertNLClassifierOptions - - - - - - - - - -Options for the Bert NL classifier task. - - - - - - - - - - - - - - - - - - - -
-`base_options` - -Base options for the Bert NL classifier task. -
- - - -## Methods - -

__eq__

- - diff --git a/site/en/lite/api_docs/python/tflite_support/task/text/BertQuestionAnswerer.md b/site/en/lite/api_docs/python/tflite_support/task/text/BertQuestionAnswerer.md deleted file mode 100644 index 5f3560087d..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/text/BertQuestionAnswerer.md +++ /dev/null @@ -1,281 +0,0 @@ -page_type: reference -description: Class that performs Bert question answering on text. - - - - - - -
- - - - - - -
- -# tflite_support.task.text.BertQuestionAnswerer - - - - - - - - - -Class that performs Bert question answering on text. - - - - - - - - - - - - - - - - - - - -
-`options` - - -
- - - -## Methods - -

answer

- -View source - - - -Answers question based on the context. - -Could be empty if no answer was - found from the given context. - - - - - - - - - - - - - -
Args
-`context` - -Context the question bases on. -
-`question` - -Question to ask. -
- - - - - - - - - - - -
Returns
-Question answerer result. -
- - - - - - - - - - - - - - - -
Raises
-`ValueError` - -If any of the input arguments is invalid. -
-`RuntimeError` - -If failed to calculate the embedding vector. -
- - - -

create_from_file

- -View source - - - -Creates the `BertQuestionAnswerer` object from a TensorFlow Lite model. - - - - - - - - - - - -
Args
-`file_path` - -Path to the model. -
- - - - - - - - - - - -
Returns
-`BertQuestionAnswerer` object that's created from the model file. -
- - - - - - - - - - - - - - - -
Raises
-`ValueError` - -If failed to create `BertQuestionAnswerer` object from the -provided file such as invalid file. -
-`RuntimeError` - -If other types of error occurred. -
- - - -

create_from_options

- -View source - - - -Creates the `BertQuestionAnswerer` object from the options. - - - - - - - - - - - -
Args
-`options` - -Options for the Bert question answerer task. -
- - - - - - - - - - - -
Returns
-`BertQuestionAnswerer` object that's created from `options`. -
- - - - - - - - - - - - - - - -
Raises
-`ValueError` - -If failed to create `BertQuestionAnswerer` object from -`BertQuestionAnswererOptions` such as missing the model. -
-`RuntimeError` - -If other types of error occurred. -
diff --git a/site/en/lite/api_docs/python/tflite_support/task/text/BertQuestionAnswererOptions.md b/site/en/lite/api_docs/python/tflite_support/task/text/BertQuestionAnswererOptions.md deleted file mode 100644 index 9c18ea2b78..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/text/BertQuestionAnswererOptions.md +++ /dev/null @@ -1,71 +0,0 @@ -page_type: reference -description: Options for the Bert question answerer task. - - - - - - -
- - - - -
- -# tflite_support.task.text.BertQuestionAnswererOptions - - - - - - - - - -Options for the Bert question answerer task. - - - - - - - - - - - - - - - - - - - -
-`base_options` - -Dataclass field -
- - - -## Methods - -

__eq__

- - diff --git a/site/en/lite/api_docs/python/tflite_support/task/text/NLClassifier.md b/site/en/lite/api_docs/python/tflite_support/task/text/NLClassifier.md deleted file mode 100644 index 51c8b29638..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/text/NLClassifier.md +++ /dev/null @@ -1,273 +0,0 @@ -page_type: reference -description: Class that performs NL classification on text. - - - - - - -
- - - - - - -
- -# tflite_support.task.text.NLClassifier - - - - - - - - - -Class that performs NL classification on text. - - - - - - - - - - - - - - - - - - - -
-`options` - - -
- - - -## Methods - -

classify

- -View source - - - -Performs actual NL classification on the provided text. - - - - - - - - - - - -
Args
-text - -the input text, used to extract the feature vectors. -
- - - - - - - - - - - -
Returns
-The classification result. -
- - - - - - - - - - - - - - - -
Raises
-`ValueError` - -If any of the input arguments is invalid. -
-`RuntimeError` - -If failed to perform the classification. -
- - - -

create_from_file

- -View source - - - -Creates the `NLClassifier` object from a TensorFlow Lite model. - - - - - - - - - - - -
Args
-`file_path` - -Path to the model. -
- - - - - - - - - - - -
Returns
-`NLClassifier` object that's created from the model file. -
- - - - - - - - - - - - - - - -
Raises
-`ValueError` - -If failed to create `NLClassifier` object from the provided -file such as invalid file. -
-`RuntimeError` - -If other types of error occurred. -
- - - -

create_from_options

- -View source - - - -Creates the `NLClassifier` object from NL classifier options. - - - - - - - - - - - -
Args
-`options` - -Options for the NL classifier task. -
- - - - - - - - - - - -
Returns
-`NLClassifier` object that's created from `options`. -
- - - - - - - - - - - - - - - -
Raises
-`ValueError` - -If failed to create `NLClassifier` object from -`NLClassifierOptions` such as missing the model or if any of the -classification options is invalid. -
-`RuntimeError` - -If other types of error occurred. -
diff --git a/site/en/lite/api_docs/python/tflite_support/task/text/NLClassifierOptions.md b/site/en/lite/api_docs/python/tflite_support/task/text/NLClassifierOptions.md deleted file mode 100644 index 6c8e76fba1..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/text/NLClassifierOptions.md +++ /dev/null @@ -1,71 +0,0 @@ -page_type: reference -description: Options for the NL classifier task. - - - - - - -
- - - - -
- -# tflite_support.task.text.NLClassifierOptions - - - - - - - - - -Options for the NL classifier task. - - - - - - - - - - - - - - - - - - - -
-`base_options` - -Base options for the NL classifier task. -
- - - -## Methods - -

__eq__

- - diff --git a/site/en/lite/api_docs/python/tflite_support/task/text/TextEmbedder.md b/site/en/lite/api_docs/python/tflite_support/task/text/TextEmbedder.md deleted file mode 100644 index cb4b90f497..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/text/TextEmbedder.md +++ /dev/null @@ -1,340 +0,0 @@ -page_type: reference -description: Class that performs dense feature vector extraction on text. - - - - - - -
- - - - - - - - -
- -# tflite_support.task.text.TextEmbedder - - - - - - - - - -Class that performs dense feature vector extraction on text. - - - - - - - - - - - - - - - - - - - - - - -
-`number_of_output_layers` - -Gets the number of output layers of the model. -
-`options` - - -
- - - -## Methods - -

cosine_similarity

- -View source - - - -Computes cosine similarity [1] between two feature vectors. - - -

create_from_file

- -View source - - - -Creates the `TextEmbedder` object from a TensorFlow Lite model. - - - - - - - - - - - -
Args
-`file_path` - -Path to the model. -
- - - - - - - - - - - -
Returns
-`TextEmbedder` object that's created from the model file. -
- - - - - - - - - - - - - - - -
Raises
-`ValueError` - -If failed to create `TextEmbedder` object from the provided -file such as invalid file. -
-`RuntimeError` - -If other types of error occurred. -
- - - -

create_from_options

- -View source - - - -Creates the `TextEmbedder` object from text embedder options. - - - - - - - - - - - -
Args
-`options` - -Options for the text embedder task. -
- - - - - - - - - - - -
Returns
-`TextEmbedder` object that's created from `options`. -
- - - - - - - - - - - - - - - -
Raises
-`ValueError` - -If failed to create `TextEmbedder` object from -`TextEmbedderOptions` such as missing the model. -
-`RuntimeError` - -If other types of error occurred. -
- - - -

embed

- -View source - - - -Performs actual feature vector extraction on the provided text. - - - - - - - - - - - -
Args
-text - -the input text, used to extract the feature vectors. -
- - - - - - - - - - - -
Returns
-embedding result. -
- - - - - - - - - - - - - - - -
Raises
-`ValueError` - -If any of the input arguments is invalid. -
-`RuntimeError` - -If failed to calculate the embedding vector. -
- - - -

get_embedding_dimension

- -View source - - - -Gets the dimensionality of the embedding output. - - - - - - - - - - - -
Args
-`output_index` - -The output index of output layer. -
- - - - - - - - - - - -
Returns
-Dimensionality of the embedding output by the output_index'th output -layer. Returns -1 if `output_index` is out of bounds. -
diff --git a/site/en/lite/api_docs/python/tflite_support/task/text/TextEmbedderOptions.md b/site/en/lite/api_docs/python/tflite_support/task/text/TextEmbedderOptions.md deleted file mode 100644 index 5842f729e1..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/text/TextEmbedderOptions.md +++ /dev/null @@ -1,79 +0,0 @@ -page_type: reference -description: Options for the text embedder task. - - - - - - -
- - - - -
- -# tflite_support.task.text.TextEmbedderOptions - - - - - - - - - -Options for the text embedder task. - - - - - - - - - - - - - - - - - - - - - - -
-`base_options` - -Base options for the text embedder task. -
-`embedding_options` - -Embedding options for the text embedder task. -
- - - -## Methods - -

__eq__

- - diff --git a/site/en/lite/api_docs/python/tflite_support/task/text/TextSearcher.md b/site/en/lite/api_docs/python/tflite_support/task/text/TextSearcher.md deleted file mode 100644 index c9a021b57a..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/text/TextSearcher.md +++ /dev/null @@ -1,312 +0,0 @@ -page_type: reference -description: Class to performs text search. - - - - - - -
- - - - - - - -
- -# tflite_support.task.text.TextSearcher - - - - - - - - - -Class to performs text search. - - - - - - - -It works by performing embedding extraction on text, followed by -nearest-neighbor search in an index of embeddings through ScaNN. - - - - - - - - - - - - -
-`options` - - -
- - - -## Methods - -

create_from_file

- -View source - - - -Creates the `TextSearcher` object from a TensorFlow Lite model. - - - - - - - - - - - - - - -
Args
-`model_file_path` - -Path to the model. -
-`index_file_path` - -Path to the index. Only required if the index is not -attached to the output tensor metadata as an AssociatedFile with type -SCANN_INDEX_FILE. -
- - - - - - - - - - - -
Returns
-`TextSearcher` object that's created from `options`. -
- - - - - - - - - - - - - - - -
Raises
-`ValueError` - -If failed to create `TextSearcher` object from the provided -file such as invalid file. -
-`RuntimeError` - -If other types of error occurred. -
- - - -

create_from_options

- -View source - - - -Creates the `TextSearcher` object from text searcher options. - - - - - - - - - - - -
Args
-`options` - -Options for the text searcher task. -
- - - - - - - - - - - -
Returns
-`TextSearcher` object that's created from `options`. -
- - - - - - - - - - - - - - - -
Raises
-`ValueError` - -If failed to create `TextSearcher` object from -`TextSearcherOptions` such as missing the model. -
-`RuntimeError` - -If other types of error occurred. -
- - - -

get_user_info

- -View source - - - -Gets the user info stored in the index file. - - - - - - - - - - -
Returns
-Opaque user info stored in the index file (if any), in raw binary form. -Returns an empty string if the index doesn't contain user info. -
- - - - - -View source - - - -Search for text with similar semantic meaning. - -This method performs actual feature extraction on the provided text input, -followed by nearest-neighbor search in the index. - - - - - - - - - - -
Args
-text - -the input text, used to extract the feature vectors. -
- - - - - - - - - - - -
Returns
-search result. -
- - - - - - - - - - - - - - - -
Raises
-`ValueError` - -If any of the input arguments is invalid. -
-`RuntimeError` - -If failed to perform nearest-neighbor search. -
diff --git a/site/en/lite/api_docs/python/tflite_support/task/text/TextSearcherOptions.md b/site/en/lite/api_docs/python/tflite_support/task/text/TextSearcherOptions.md deleted file mode 100644 index 15eafd6345..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/text/TextSearcherOptions.md +++ /dev/null @@ -1,87 +0,0 @@ -page_type: reference -description: Options for the text search task. - - - - - - -
- - - - -
- -# tflite_support.task.text.TextSearcherOptions - - - - - - - - - -Options for the text search task. - - - - - - - - - - - - - - - - - - - - - - - - - -
-`base_options` - -Base options for the text searcher task. -
-`embedding_options` - -Embedding options for the text searcher task. -
-`search_options` - -Search options for the text searcher task. -
- - - -## Methods - -

__eq__

- - diff --git a/site/en/lite/api_docs/python/tflite_support/task/vision.md b/site/en/lite/api_docs/python/tflite_support/task/vision.md deleted file mode 100644 index e5ea16c270..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/vision.md +++ /dev/null @@ -1,56 +0,0 @@ -page_type: reference -description: TensorFlow Lite Task Library Vision APIs. - - - - - - -
- - -
- -# Module: tflite_support.task.vision - - - - - - - - - -TensorFlow Lite Task Library Vision APIs. - - -This module provides interface to run TensorFlow Lite computer vision models. - -## Classes - -[`class ImageClassifier`](../../tflite_support/task/vision/ImageClassifier): Class that performs classification on images. - -[`class ImageClassifierOptions`](../../tflite_support/task/vision/ImageClassifierOptions): Options for the image classifier task. - -[`class ImageEmbedder`](../../tflite_support/task/vision/ImageEmbedder): Class that performs dense feature vector extraction on images. - -[`class ImageEmbedderOptions`](../../tflite_support/task/vision/ImageEmbedderOptions): Options for the image embedder task. - -[`class ImageSearcher`](../../tflite_support/task/vision/ImageSearcher): Class to performs image search. - -[`class ImageSearcherOptions`](../../tflite_support/task/vision/ImageSearcherOptions): Options for the image search task. - -[`class ImageSegmenter`](../../tflite_support/task/vision/ImageSegmenter): Class that performs segmentation on images. - -[`class ImageSegmenterOptions`](../../tflite_support/task/vision/ImageSegmenterOptions): Options for the image segmenter task. - -[`class ObjectDetector`](../../tflite_support/task/vision/ObjectDetector): Class that performs object detection on images. - -[`class ObjectDetectorOptions`](../../tflite_support/task/vision/ObjectDetectorOptions): Options for the object detector task. - -[`class TensorImage`](../../tflite_support/task/vision/TensorImage): Wrapper class for the Image object. diff --git a/site/en/lite/api_docs/python/tflite_support/task/vision/ImageClassifier.md b/site/en/lite/api_docs/python/tflite_support/task/vision/ImageClassifier.md deleted file mode 100644 index fdc71b4afe..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/vision/ImageClassifier.md +++ /dev/null @@ -1,283 +0,0 @@ -page_type: reference -description: Class that performs classification on images. - - - - - - -
- - - - - - -
- -# tflite_support.task.vision.ImageClassifier - - - - - - - - - -Class that performs classification on images. - - - - - - - - - - - - - - - - - - - -
-`options` - - -
- - - -## Methods - -

classify

- -View source - - - -Performs classification on the provided TensorImage. - - - - - - - - - - - - - - -
Args
-`image` - -Tensor image, used to extract the feature vectors. -
-`bounding_box` - -Bounding box, optional. If set, performed feature vector -extraction only on the provided region of interest. Note that the region -of interest is not clamped, so this method will fail if the region is -out of bounds of the input image. -
- - - - - - - - - - - -
Returns
-classification result. -
- - - - - - - - - - - - - - - -
Raises
-`ValueError` - -If any of the input arguments is invalid. -
-`RuntimeError` - -If failed to run classification. -
- - - -

create_from_file

- -View source - - - -Creates the `ImageClassifier` object from a TensorFlow Lite model. - - - - - - - - - - - -
Args
-`file_path` - -Path to the model. -
- - - - - - - - - - - -
Returns
-`ImageClassifier` object that's created from the model file. -
- - - - - - - - - - - - - - - -
Raises
-`ValueError` - -If failed to create `ImageClassifier` object from the -provided file such as invalid file. -
-`RuntimeError` - -If other types of error occurred. -
- - - -

create_from_options

- -View source - - - -Creates the `ImageClassifier` object from image classifier options. - - - - - - - - - - - -
Args
-`options` - -Options for the image classifier task. -
- - - - - - - - - - - -
Returns
-`ImageClassifier` object that's created from `options`. -
- - - - - - - - - - - - - - - -
Raises
-`ValueError` - -If failed to create `ImageClassifier` object from -`ImageClassifierOptions` such as missing the model. -
-`RuntimeError` - -If other types of error occurred. -
diff --git a/site/en/lite/api_docs/python/tflite_support/task/vision/ImageClassifierOptions.md b/site/en/lite/api_docs/python/tflite_support/task/vision/ImageClassifierOptions.md deleted file mode 100644 index f7d3f7662c..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/vision/ImageClassifierOptions.md +++ /dev/null @@ -1,80 +0,0 @@ -page_type: reference -description: Options for the image classifier task. - - - - - - -
- - - - -
- -# tflite_support.task.vision.ImageClassifierOptions - - - - - - - - - -Options for the image classifier task. - - - - - - - - - - - - - - - - - - - - - - -
-`base_options` - -Base options for the image classifier task. -
-`classification_options` - -Classification options for the image classifier -task. -
- - - -## Methods - -

__eq__

- - diff --git a/site/en/lite/api_docs/python/tflite_support/task/vision/ImageEmbedder.md b/site/en/lite/api_docs/python/tflite_support/task/vision/ImageEmbedder.md deleted file mode 100644 index 2e221a464f..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/vision/ImageEmbedder.md +++ /dev/null @@ -1,420 +0,0 @@ -page_type: reference -description: Class that performs dense feature vector extraction on images. - - - - - - -
- - - - - - - - - -
- -# tflite_support.task.vision.ImageEmbedder - - - - - - - - - -Class that performs dense feature vector extraction on images. - - - - - - - - - - - - - - - - - - - - - - -
-`number_of_output_layers` - -Gets the number of output layers of the model. -
-`options` - - -
- - - -## Methods - -

cosine_similarity

- -View source - - - -Computes cosine similarity [1] between two feature vectors. - - -

create_from_file

- -View source - - - -Creates the `ImageEmbedder` object from a TensorFlow Lite model. - - - - - - - - - - - -
Args
-`file_path` - -Path to the model. -
- - - - - - - - - - - -
Returns
-`ImageEmbedder` object that's created from the model file. -
- - - - - - - - - - - - - - - -
Raises
-`ValueError` - -If failed to create `ImageEmbedder` object from the provided -file such as invalid file. -
-`RuntimeError` - -If other types of error occurred. -
- - - -

create_from_options

- -View source - - - -Creates the `ImageEmbedder` object from image embedder options. - - - - - - - - - - - -
Args
-`options` - -Options for the image embedder task. -
- - - - - - - - - - - -
Returns
-`ImageEmbedder` object that's created from `options`. -
- - - - - - - - - - - - - - - -
Raises
-`ValueError` - -If failed to create `ImageEmbdder` object from -`ImageEmbedderOptions` such as missing the model. -
-`RuntimeError` - -If other types of error occurred. -
- - - -

embed

- -View source - - - -Performs actual feature vector extraction on the provided TensorImage. - - - - - - - - - - - - - - -
Args
-`image` - -Tensor image, used to extract the feature vectors. -
-`bounding_box` - -Bounding box, optional. If set, performed feature vector -extraction only on the provided region of interest. Note that the region -of interest is not clamped, so this method will fail if the region is -out of bounds of the input image. -
- - - - - - - - - - - -
Returns
-The embedding result. -
- - - - - - - - - - - - - - - -
Raises
-`ValueError` - -If any of the input arguments is invalid. -
-`RuntimeError` - -If failed to calculate the embedding vector. -
- - - -

get_embedding_by_index

- -View source - - - -Gets the embedding in the embedding result by `output_index`. - - - - - - - - - - - - - - -
Args
-`result` - -embedding result. -
-`output_index` - -output index of the output layer. -
- - - - - - - - - - - -
Returns
-The Embedding output by the output_index'th layer. In (the most common) -case where a single embedding is produced, you can just call -get_feature_vector_by_index(result, 0). -
- - - - - - - - - - - -
Raises
-ValueError if the output index is out of bound. -
- - - -

get_embedding_dimension

- -View source - - - -Gets the dimensionality of the embedding output. - - - - - - - - - - - -
Args
-`output_index` - -The output index of output layer. -
- - - - - - - - - - - -
Returns
-Dimensionality of the embedding output by the output_index'th output -layer. Returns -1 if `output_index` is out of bounds. -
diff --git a/site/en/lite/api_docs/python/tflite_support/task/vision/ImageEmbedderOptions.md b/site/en/lite/api_docs/python/tflite_support/task/vision/ImageEmbedderOptions.md deleted file mode 100644 index b486278b23..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/vision/ImageEmbedderOptions.md +++ /dev/null @@ -1,79 +0,0 @@ -page_type: reference -description: Options for the image embedder task. - - - - - - -
- - - - -
- -# tflite_support.task.vision.ImageEmbedderOptions - - - - - - - - - -Options for the image embedder task. - - - - - - - - - - - - - - - - - - - - - - -
-`base_options` - -Base options for the image embedder task. -
-`embedding_options` - -Embedding options for the image embedder task. -
- - - -## Methods - -

__eq__

- - diff --git a/site/en/lite/api_docs/python/tflite_support/task/vision/ImageSearcher.md b/site/en/lite/api_docs/python/tflite_support/task/vision/ImageSearcher.md deleted file mode 100644 index 3bd14115d7..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/vision/ImageSearcher.md +++ /dev/null @@ -1,323 +0,0 @@ -page_type: reference -description: Class to performs image search. - - - - - - -
- - - - - - - -
- -# tflite_support.task.vision.ImageSearcher - - - - - - - - - -Class to performs image search. - - - - - - - -It works by performing embedding extraction on images, followed by -nearest-neighbor search in an index of embeddings through ScaNN. - - - - - - - - - - - - -
-`options` - - -
- - - -## Methods - -

create_from_file

- -View source - - - -Creates the `ImageSearcher` object from a TensorFlow Lite model. - - - - - - - - - - - - - - -
Args
-`model_file_path` - -Path to the model. -
-`index_file_path` - -Path to the index. Only required if the index is not -attached to the output tensor metadata as an AssociatedFile with type -SCANN_INDEX_FILE. -
- - - - - - - - - - - -
Returns
-`ImageSearcher` object that's created from `options`. -
- - - - - - - - - - - - - - - -
Raises
-`ValueError` - -If failed to create `ImageSearcher` object from the provided -file such as invalid file. -
-`RuntimeError` - -If other types of error occurred. -
- - - -

create_from_options

- -View source - - - -Creates the `ImageSearcher` object from image searcher options. - - - - - - - - - - - -
Args
-`options` - -Options for the image searcher task. -
- - - - - - - - - - - -
Returns
-`ImageSearcher` object that's created from `options`. -
- - - - - - - - - - - - - - - -
Raises
-`ValueError` - -If failed to create `ImageSearcher` object from -`ImageSearcherOptions` such as missing the model. -
-`RuntimeError` - -If other types of error occurred. -
- - - -

get_user_info

- -View source - - - -Gets the user info stored in the index file. - - - - - - - - - - -
Returns
-Opaque user info stored in the index file (if any), in raw binary form. -Returns an empty string if the index doesn't contain user info. -
- - - - - -View source - - - -Search for image with similar semantic meaning. - -This method performs actual feature extraction on the provided image input, -followed by nearest-neighbor search in the index. - - - - - - - - - - - - - -
Args
-`image` - -Tensor image, used to extract the feature vectors. -
-`bounding_box` - -Bounding box, optional. If set, performed feature vector -extraction only on the provided region of interest. Note that the region -of interest is not clamped, so this method will fail if the region is -out of bounds of the input image. -
- - - - - - - - - - - -
Returns
-Search result. -
- - - - - - - - - - - - - - - -
Raises
-`ValueError` - -If any of the input arguments is invalid. -
-`RuntimeError` - -If failed to perform nearest-neighbor search. -
diff --git a/site/en/lite/api_docs/python/tflite_support/task/vision/ImageSearcherOptions.md b/site/en/lite/api_docs/python/tflite_support/task/vision/ImageSearcherOptions.md deleted file mode 100644 index 9b4ff75ac8..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/vision/ImageSearcherOptions.md +++ /dev/null @@ -1,87 +0,0 @@ -page_type: reference -description: Options for the image search task. - - - - - - -
- - - - -
- -# tflite_support.task.vision.ImageSearcherOptions - - - - - - - - - -Options for the image search task. - - - - - - - - - - - - - - - - - - - - - - - - - -
-`base_options` - -Base options for the image searcher task. -
-`embedding_options` - -Embedding options for the image searcher task. -
-`search_options` - -Search options for the image searcher task. -
- - - -## Methods - -

__eq__

- - diff --git a/site/en/lite/api_docs/python/tflite_support/task/vision/ImageSegmenter.md b/site/en/lite/api_docs/python/tflite_support/task/vision/ImageSegmenter.md deleted file mode 100644 index 14f1a3ac04..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/vision/ImageSegmenter.md +++ /dev/null @@ -1,253 +0,0 @@ -page_type: reference -description: Class that performs segmentation on images. - - - - - - -
- - - - - - -
- -# tflite_support.task.vision.ImageSegmenter - - - - - - - - - -Class that performs segmentation on images. - - - - - - - - -## Methods - -

create_from_file

- -View source - - - -Creates the `ImageSegmenter` object from a TensorFlow Lite model. - - - - - - - - - - - -
Args
-`file_path` - -Path to the model. -
- - - - - - - - - - - -
Returns
-`ImageSegmenter` object that's created from `options`. -
- - - - - - - - - - - - - - - -
Raises
-`ValueError` - -If failed to create `ImageSegmenter` object from the -provided file such as invalid file. -
-`RuntimeError` - -If other types of error occurred. -
- - - -

create_from_options

- -View source - - - -Creates the `ImageSegmenter` object from image segmenter options. - - - - - - - - - - - -
Args
-`options` - -Options for the image segmenter task. -
- - - - - - - - - - - -
Returns
-`ImageSegmenter` object that's created from `options`. -
- - - - - - - - - - - - - - - -
Raises
-`ValueError` - -If failed to create `ImageSegmenter` object from -`ImageSegmenterOptions` such as missing the model. -
-`RuntimeError` - -If other types of error occurred. -
- - - -

segment

- -View source - - - -Performs segmentation on the provided TensorImage. - - - - - - - - - - - -
Args
-`image` - -Tensor image, used to extract the feature vectors. -
- - - - - - - - - - - -
Returns
-segmentation result. -
- - - - - - - - - - - - - - - -
Raises
-`ValueError` - -If any of the input arguments is invalid. -
-`RuntimeError` - -If failed to run segmentation. -
diff --git a/site/en/lite/api_docs/python/tflite_support/task/vision/ImageSegmenterOptions.md b/site/en/lite/api_docs/python/tflite_support/task/vision/ImageSegmenterOptions.md deleted file mode 100644 index b790d4c59a..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/vision/ImageSegmenterOptions.md +++ /dev/null @@ -1,79 +0,0 @@ -page_type: reference -description: Options for the image segmenter task. - - - - - - -
- - - - -
- -# tflite_support.task.vision.ImageSegmenterOptions - - - - - - - - - -Options for the image segmenter task. - - - - - - - - - - - - - - - - - - - - - - -
-`base_options` - -Base options for the image segmenter task. -
-`segmentation_options` - -Segmentation options for the image segmenter task. -
- - - -## Methods - -

__eq__

- - diff --git a/site/en/lite/api_docs/python/tflite_support/task/vision/ObjectDetector.md b/site/en/lite/api_docs/python/tflite_support/task/vision/ObjectDetector.md deleted file mode 100644 index a77a85ec08..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/vision/ObjectDetector.md +++ /dev/null @@ -1,253 +0,0 @@ -page_type: reference -description: Class that performs object detection on images. - - - - - - -
- - - - - - -
- -# tflite_support.task.vision.ObjectDetector - - - - - - - - - -Class that performs object detection on images. - - - - - - - - -## Methods - -

create_from_file

- -View source - - - -Creates the `ObjectDetector` object from a TensorFlow Lite model. - - - - - - - - - - - -
Args
-`file_path` - -Path to the model. -
- - - - - - - - - - - -
Returns
-`ObjectDetector` object that's created from the model file. -
- - - - - - - - - - - - - - - -
Raises
-`ValueError` - -if failed to create `ObjectDetector` object from the provided -file such as invalid file. -
-`RuntimeError` - -If other types of error occurred. -
- - - -

create_from_options

- -View source - - - -Creates the `ObjectDetector` object from object detector options. - - - - - - - - - - - -
Args
-`options` - -Options for the object detector task. -
- - - - - - - - - - - -
Returns
-`ObjectDetector` object that's created from `options`. -
- - - - - - - - - - - - - - - -
Raises
-`ValueError` - -If failed to create `ObjectDetector` object from -`ObjectDetectorOptions` such as missing the model. -
-`RuntimeError` - -If other types of error occurred. -
- - - -

detect

- -View source - - - -Performs object detection on the provided TensorImage. - - - - - - - - - - - -
Args
-`image` - -Tensor image, used to extract the feature vectors. -
- - - - - - - - - - - -
Returns
-detection result. -
- - - - - - - - - - - - - - - -
Raises
-`ValueError` - -If any of the input arguments is invalid. -
-`RuntimeError` - -If object detection failed to run. -
diff --git a/site/en/lite/api_docs/python/tflite_support/task/vision/ObjectDetectorOptions.md b/site/en/lite/api_docs/python/tflite_support/task/vision/ObjectDetectorOptions.md deleted file mode 100644 index 0d6d246897..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/vision/ObjectDetectorOptions.md +++ /dev/null @@ -1,79 +0,0 @@ -page_type: reference -description: Options for the object detector task. - - - - - - -
- - - - -
- -# tflite_support.task.vision.ObjectDetectorOptions - - - - - - - - - -Options for the object detector task. - - - - - - - - - - - - - - - - - - - - - - -
-`base_options` - -Base options for the object detector task. -
-`detection_options` - -Detection options for the object detector task. -
- - - -## Methods - -

__eq__

- - diff --git a/site/en/lite/api_docs/python/tflite_support/task/vision/TensorImage.md b/site/en/lite/api_docs/python/tflite_support/task/vision/TensorImage.md deleted file mode 100644 index 9e4b4af4d7..0000000000 --- a/site/en/lite/api_docs/python/tflite_support/task/vision/TensorImage.md +++ /dev/null @@ -1,293 +0,0 @@ -page_type: reference -description: Wrapper class for the Image object. - - - - - - -
- - - - - - -
- -# tflite_support.task.vision.TensorImage - - - - - - - - - -Wrapper class for the Image object. - - - - - - - - - - - - - - - - - - - - -
-`image_data` - -image_utils.ImageData, contains raw image data, width, height -and channels info. -
-`is_from_numpy_array` - -boolean, whether `image_data` is loaded from -numpy array. if False, it means that `image_data` is loaded from -stbi_load** function in C++ and need to free the storage of ImageData in -the destructor. -
- - - - - - - - - - - - - - - - - - - - - - - -
-`buffer` - -Gets the numpy array that represents `self.image_data`. -
-`color_space_type` - -Gets the color space type of the image. -
-`height` - -Gets the height of the image. -
-`width` - -Gets the width of the image. -
- - - -## Methods - -

create_from_array

- -View source - - - -Creates `TensorImage` object from the numpy array. - - - - - - - - - - - -
Args
-`array` - -numpy array with dtype=uint8. Its shape should be either (h, w, 3) -or (1, h, w, 3) for RGB images, either (h, w) or (1, h, w) for GRAYSCALE -images and either (h, w, 4) or (1, h, w, 4) for RGBA images. -
- - - - - - - - - - - -
Returns
-`TensorImage` object. -
- - - - - - - - - - - -
Raises
-ValueError if the dytype of the numpy array is not `uint8` or the -dimention is not the valid dimention. -
- - - -

create_from_buffer

- -View source - - - -Creates `TensorImage` object from the binary buffer. - - - - - - - - - - - -
Args
-`buffer` - -Binary memory buffer. -
- - - - - - - - - - - -
Returns
-`TensorImage` object. -
- - - - - - - - - - - -
Raises
-RuntimeError if the binary buffer can't be decoded into `TensorImage` -object. -
- - - -

create_from_file

- -View source - - - -Creates `TensorImage` object from the image file. - - - - - - - - - - - -
Args
-`file_name` - -Image file name. -
- - - - - - - - - - - -
Returns
-`TensorImage` object. -
- - - - - - - - - - - -
Raises
-RuntimeError if the image file can't be decoded. -
diff --git a/site/en/lite/api_docs/swift/Classes.html b/site/en/lite/api_docs/swift/Classes.html deleted file mode 100644 index 7588dfd7b3..0000000000 --- a/site/en/lite/api_docs/swift/Classes.html +++ /dev/null @@ -1,118 +0,0 @@ - - - - TensorFlowLiteSwift Framework Reference - - - - -
-
-
-
-

Classes

-

The following classes are available globally.

- -
-
-
-
    -
  • -
    - - - -

    CoreMLDelegate

    -
    -
    -
    -
    -
    -
    -
    -

    A delegate that uses the Core ML framework for performing TensorFlow Lite graph operations.

    -
    -

    Important

    - This is an experimental interface that is subject to change. - -
    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public final class CoreMLDelegate : Delegate
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    Interpreter

    -
    -
    -
    -
    -
    -
    -
    -

    A TensorFlow Lite interpreter that performs inference from a given model.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public final class Interpreter
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    MetalDelegate

    -
    -
    -
    -
    -
    -
    -
    -

    A delegate that uses the Metal framework for performing TensorFlow Lite graph operations with -GPU acceleration.

    -
    -

    Important

    - This is an experimental interface that is subject to change. - -
    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public final class MetalDelegate : Delegate
    - -
    -
    -
    -
    -
  • -
-
-
-
-
- - diff --git a/site/en/lite/api_docs/swift/Classes/CoreMLDelegate.html b/site/en/lite/api_docs/swift/Classes/CoreMLDelegate.html deleted file mode 100644 index e9e8fcef7f..0000000000 --- a/site/en/lite/api_docs/swift/Classes/CoreMLDelegate.html +++ /dev/null @@ -1,193 +0,0 @@ - - - - TensorFlowLiteSwift Framework Reference - - - - -
-
-
-
-

CoreMLDelegate

-
-
-
public final class CoreMLDelegate : Delegate
- -
-
-

A delegate that uses the Core ML framework for performing TensorFlow Lite graph operations.

-
-

Important

- This is an experimental interface that is subject to change. - -
- -
-
-
-
    -
  • -
    - - - -

    options

    -
    -
    -
    -
    -
    -
    -
    -

    The configuration options for the CoreMLDelegate.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public let options: Options
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    cDelegate

    -
    -
    -
    -
    -
    -
    -
    -

    Undocumented

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public private(set) var cDelegate: CDelegate { get }
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    init(options:)

    -
    -
    -
    -
    -
    -
    -
    -

    Creates a new instance configured with the given options. Returns nil if the underlying -Core ML delegate could not be created because Options.enabledDevices was set to -neuralEngine but the device does not have the Neural Engine.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public init?(options: Options = Options())
    - -
    -
    -
    -

    Parameters

    - - - - - - -
    - - options - - -
    -

    Configurations for the delegate. The default is a new instance of -CoreMLDelegate.Options with the default configuration values.

    -
    -
    -
    -
    -
    -
  • -
  • -
    - - - -

    EnabledDevices

    -
    -
    -
    -
    -
    -
    -
    -

    A type indicating which devices the Core ML delegate should be enabled for.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public enum EnabledDevices : Equatable, Hashable
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    Options

    -
    -
    -
    -
    -
    -
    -
    -

    Undocumented

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public struct Options : Equatable, Hashable
    - -
    -
    -
    -
    -
  • -
-
-
-
-
- - diff --git a/site/en/lite/api_docs/swift/Classes/CoreMLDelegate/EnabledDevices.html b/site/en/lite/api_docs/swift/Classes/CoreMLDelegate/EnabledDevices.html deleted file mode 100644 index 5c3bf07cbc..0000000000 --- a/site/en/lite/api_docs/swift/Classes/CoreMLDelegate/EnabledDevices.html +++ /dev/null @@ -1,86 +0,0 @@ - - - - TensorFlowLiteSwift Framework Reference - - - - -
-
-
-
-

EnabledDevices

-
-
-
public enum EnabledDevices : Equatable, Hashable
- -
-
-

A type indicating which devices the Core ML delegate should be enabled for.

- -
-
-
-
    -
  • -
    - - - -

    neuralEngine

    -
    -
    -
    -
    -
    -
    -
    -

    Enables the delegate for devices with Neural Engine only.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    case neuralEngine
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    all

    -
    -
    -
    -
    -
    -
    -
    -

    Enables the delegate for all devices.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    case all
    - -
    -
    -
    -
    -
  • -
-
-
-
-
- - diff --git a/site/en/lite/api_docs/swift/Classes/CoreMLDelegate/Options.html b/site/en/lite/api_docs/swift/Classes/CoreMLDelegate/Options.html deleted file mode 100644 index ec3ac2ddc0..0000000000 --- a/site/en/lite/api_docs/swift/Classes/CoreMLDelegate/Options.html +++ /dev/null @@ -1,173 +0,0 @@ - - - - TensorFlowLiteSwift Framework Reference - - - - -
-
-
-
-

Options

-
-
-
public struct Options : Equatable, Hashable
- -
-
-

Undocumented

- -
-
-
-
    -
  • -
    - - - -

    enabledDevices

    -
    -
    -
    -
    -
    -
    -
    -

    A type indicating which devices the Core ML delegate should be enabled for. The default -value is .neuralEngine indicating that the delegate is enabled for Neural Engine devices -only.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public var enabledDevices: EnabledDevices
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    coreMLVersion

    -
    -
    -
    -
    -
    -
    -
    -

    Target Core ML version for the model conversion. When it’s not set, Core ML version will -be set to highest available version for the platform.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public var coreMLVersion: Int
    - -
    -
    -
    -
    -
  • -
  • - -
    -
    -
    -
    -
    -

    The maximum number of Core ML delegate partitions created. Each graph corresponds to one -delegated node subset in the TFLite model. The default value is 0 indicating that all -possible partitions are delegated.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public var maxDelegatedPartitions: Int
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    minNodesPerPartition

    -
    -
    -
    -
    -
    -
    -
    -

    The minimum number of nodes per partition to be delegated by the Core ML delegate. The -default value is 2.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public var minNodesPerPartition: Int
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    init()

    -
    -
    -
    -
    -
    -
    -
    -

    Creates a new instance with the default values.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public init()
    - -
    -
    -
    -
    -
  • -
-
-
-
-
- - diff --git a/site/en/lite/api_docs/swift/Classes/Interpreter.html b/site/en/lite/api_docs/swift/Classes/Interpreter.html deleted file mode 100644 index d3967d8904..0000000000 --- a/site/en/lite/api_docs/swift/Classes/Interpreter.html +++ /dev/null @@ -1,554 +0,0 @@ - - - - TensorFlowLiteSwift Framework Reference - - - - -
-
-
-
-

Interpreter

-
-
-
public final class Interpreter
- -
-
-

A TensorFlow Lite interpreter that performs inference from a given model.

- -
-
-
-
    -
  • -
    - - - -

    options

    -
    -
    -
    -
    -
    -
    -
    -

    The configuration options for the Interpreter.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public let options: Options?
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    delegates

    -
    -
    -
    -
    -
    -
    -
    -

    An Array of Delegates for the Interpreter to use to perform graph operations.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public let delegates: [Delegate]?
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    inputTensorCount

    -
    -
    -
    -
    -
    -
    -
    -

    The total number of input Tensors associated with the model.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public var inputTensorCount: Int { get }
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    outputTensorCount

    -
    -
    -
    -
    -
    -
    -
    -

    The total number of output Tensors associated with the model.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public var outputTensorCount: Int { get }
    - -
    -
    -
    -
    -
  • -
  • - -
    -
    -
    -
    -
    -

    Creates a new instance with the given values.

    -
    -

    Throws

    - An error if the model could not be loaded or the interpreter could not be created. - -
    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public init(modelPath: String, options: Options? = nil, delegates: [Delegate]? = nil) throws
    - -
    -
    -
    -

    Parameters

    - - - - - - - - - - - - -
    - - modelPath - - -
    -

    The local file path to a TensorFlow Lite model.

    -
    -
    - - options - - -
    -

    Configurations for the Interpreter. The default is nil indicating that the -Interpreter will determine the configuration options.

    -
    -
    - - delegate - - -
    -

    Array of Delegates for the Interpreter to use to perform graph operations. -The default is nil.

    -
    -
    -
    -
    -
    -
  • -
  • -
    - - - -

    invoke()

    -
    -
    -
    -
    -
    -
    -
    -

    Invokes the interpreter to perform inference from the loaded graph.

    -
    -

    Throws

    - An error if the model was not ready because the tensors were not allocated. - -
    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public func invoke() throws
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    input(at:)

    -
    -
    -
    -
    -
    -
    -
    -

    Returns the input Tensor at the given index.

    -
    -

    Throws

    - An error if the index is invalid or the tensors have not been allocated. - -
    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public func input(at index: Int) throws -> Tensor
    - -
    -
    -
    -

    Parameters

    - - - - - - -
    - - index - - -
    -

    The index for the input Tensor.

    -
    -
    -
    -
    -

    Return Value

    -

    The input Tensor at the given index.

    -
    -
    -
    -
  • -
  • -
    - - - -

    output(at:)

    -
    -
    -
    -
    -
    -
    -
    -

    Returns the output Tensor at the given index.

    -
    -

    Throws

    - An error if the index is invalid, tensors haven’t been allocated, or interpreter -has not been invoked for models that dynamically compute output tensors based on the -values of its input tensors. - -
    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public func output(at index: Int) throws -> Tensor
    - -
    -
    -
    -

    Parameters

    - - - - - - -
    - - index - - -
    -

    The index for the output Tensor.

    -
    -
    -
    -
    -

    Return Value

    -

    The output Tensor at the given index.

    -
    -
    -
    -
  • -
  • -
    - - - -

    resizeInput(at:to:)

    -
    -
    -
    -
    -
    -
    -
    -

    Resizes the input Tensor at the given index to the specified Tensor.Shape.

    -
    -

    Note

    - After resizing an input tensor, the client must explicitly call -allocateTensors() before attempting to access the resized tensor data or invoking the -interpreter to perform inference. - -
    -

    Throws

    - An error if the input tensor at the given index could not be resized. - -
    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public func resizeInput(at index: Int, to shape: Tensor.Shape) throws
    - -
    -
    -
    -

    Parameters

    - - - - - - - - - -
    - - index - - -
    -

    The index for the input Tensor.

    -
    -
    - - shape - - -
    -

    The shape to resize the input Tensor to.

    -
    -
    -
    -
    -
    -
  • -
  • -
    - - - -

    copy(_:toInputAt:)

    -
    -
    -
    -
    -
    -
    -
    -

    Copies the given data to the input Tensor at the given index.

    -
    -

    Throws

    - An error if the data.count does not match the input tensor’s data.count or if -the given index is invalid. - -
    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    @discardableResult
    -public func copy(_ data: Data, toInputAt index: Int) throws -> Tensor
    - -
    -
    -
    -

    Parameters

    - - - - - - - - - -
    - - data - - -
    -

    The data to be copied to the input Tensor‘s data buffer.

    -
    -
    - - index - - -
    -

    The index for the input Tensor.

    -
    -
    -
    -
    -

    Return Value

    -

    The input Tensor with the copied data.

    -
    -
    -
    -
  • -
  • -
    - - - -

    allocateTensors()

    -
    -
    -
    -
    -
    -
    -
    -

    Allocates memory for all input Tensors based on their Tensor.Shapes.

    -
    -

    Note

    - This is a relatively expensive operation and should only be called after creating the -interpreter and resizing any input tensors. - -
    -

    Throws

    - An error if memory could not be allocated for the input tensors. - -
    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public func allocateTensors() throws
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    Options

    -
    -
    -
    -
    -
    -
    -
    -

    Options for configuring the Interpreter.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public struct Options : Equatable, Hashable
    - -
    -
    -
    -
    -
  • -
-
-
-
-
- - diff --git a/site/en/lite/api_docs/swift/Classes/Interpreter/Options.html b/site/en/lite/api_docs/swift/Classes/Interpreter/Options.html deleted file mode 100644 index 4a2c2f534d..0000000000 --- a/site/en/lite/api_docs/swift/Classes/Interpreter/Options.html +++ /dev/null @@ -1,140 +0,0 @@ - - - - TensorFlowLiteSwift Framework Reference - - - - -
-
-
-
-

Options

-
-
-
public struct Options : Equatable, Hashable
- -
-
-

Options for configuring the Interpreter.

- -
-
-
-
    -
  • -
    - - - -

    threadCount

    -
    -
    -
    -
    -
    -
    -
    -

    The maximum number of CPU threads that the interpreter should run on. The default is nil -indicating that the Interpreter will decide the number of threads to use.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public var threadCount: Int?
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    isXNNPackEnabled

    -
    -
    -
    -
    -
    -
    -
    -

    Indicates whether an optimized set of floating point CPU kernels, provided by XNNPACK, is -enabled.

    -
    -

    Experiment

    -

    Enabling this flag will enable use of a new, highly optimized set of CPU kernels provided -via the XNNPACK delegate. Currently, this is restricted to a subset of floating point -operations. Eventually, we plan to enable this by default, as it can provide significant -performance benefits for many classes of floating point models. See -https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/delegates/xnnpack/README.md -for more details.

    - -
    -

    Important

    -

    Things to keep in mind when enabling this flag:

    - -
      -
    • Startup time and resize time may increase.
    • -
    • Baseline memory consumption may increase.
    • -
    • Compatibility with other delegates (e.g., GPU) has not been fully validated.
    • -
    • Quantized models will not see any benefit.
    • -
    - -
    -

    Warning

    -

    This is an experimental interface that is subject to change.

    - -
    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public var isXNNPackEnabled: Bool
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    init()

    -
    -
    -
    -
    -
    -
    -
    -

    Creates a new instance with the default values.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public init()
    - -
    -
    -
    -
    -
  • -
-
-
-
-
- - diff --git a/site/en/lite/api_docs/swift/Classes/MetalDelegate.html b/site/en/lite/api_docs/swift/Classes/MetalDelegate.html deleted file mode 100644 index 90967d7b2d..0000000000 --- a/site/en/lite/api_docs/swift/Classes/MetalDelegate.html +++ /dev/null @@ -1,165 +0,0 @@ - - - - TensorFlowLiteSwift Framework Reference - - - - -
-
-
-
-

MetalDelegate

-
-
-
public final class MetalDelegate : Delegate
- -
-
-

A delegate that uses the Metal framework for performing TensorFlow Lite graph operations with -GPU acceleration.

-
-

Important

- This is an experimental interface that is subject to change. - -
- -
-
-
-
    -
  • -
    - - - -

    options

    -
    -
    -
    -
    -
    -
    -
    -

    The configuration options for the MetalDelegate.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public let options: Options
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    cDelegate

    -
    -
    -
    -
    -
    -
    -
    -

    Undocumented

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public private(set) var cDelegate: CDelegate { get }
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    init(options:)

    -
    -
    -
    -
    -
    -
    -
    -

    Creates a new instance configured with the given options.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public init(options: Options = Options())
    - -
    -
    -
    -

    Parameters

    - - - - - - -
    - - options - - -
    -

    Configurations for the delegate. The default is a new instance of -MetalDelegate.Options with the default configuration values.

    -
    -
    -
    -
    -
    -
  • -
  • -
    - - - -

    Options

    -
    -
    -
    -
    -
    -
    -
    -

    Options for configuring the MetalDelegate.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public struct Options : Equatable, Hashable
    - -
    -
    -
    -
    -
  • -
-
-
-
-
- - diff --git a/site/en/lite/api_docs/swift/Classes/MetalDelegate/Options.html b/site/en/lite/api_docs/swift/Classes/MetalDelegate/Options.html deleted file mode 100644 index 9342c85fb7..0000000000 --- a/site/en/lite/api_docs/swift/Classes/MetalDelegate/Options.html +++ /dev/null @@ -1,170 +0,0 @@ - - - - TensorFlowLiteSwift Framework Reference - - - - -
-
-
-
-

Options

-
-
-
public struct Options : Equatable, Hashable
- -
-
-

Options for configuring the MetalDelegate.

- -
-
-
-
    -
  • - -
    -
    -
    -
    -
    -

    Indicates whether the GPU delegate allows precision loss, such as allowing Float16 -precision for a Float32 computation. The default is false.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public var isPrecisionLossAllowed: Bool
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    allowsPrecisionLoss

    -
    -
    -
    -
    -
    -
    -
    -

    Undocumented

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public var allowsPrecisionLoss: Bool { get set }
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    waitType

    -
    -
    -
    -
    -
    -
    -
    -

    A type indicating how the current thread should wait for work on the GPU to complete. The -default is passive.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public var waitType: ThreadWaitType
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    isQuantizationEnabled

    -
    -
    -
    -
    -
    -
    -
    -

    Indicates whether the GPU delegate allows execution of an 8-bit quantized model. The default -is true.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public var isQuantizationEnabled: Bool
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    init()

    -
    -
    -
    -
    -
    -
    -
    -

    Creates a new instance with the default values.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public init()
    - -
    -
    -
    -
    -
  • -
-
-
-
-
- - diff --git a/site/en/lite/api_docs/swift/Enums.html b/site/en/lite/api_docs/swift/Enums.html deleted file mode 100644 index 4e68a191c2..0000000000 --- a/site/en/lite/api_docs/swift/Enums.html +++ /dev/null @@ -1,109 +0,0 @@ - - - - TensorFlowLiteSwift Framework Reference - - - - -
-
-
-
-

Enumerations

-

The following enumerations are available globally.

- -
-
-
-
    -
  • -
    - - - -

    InterpreterError

    -
    -
    -
    -
    -
    -
    -
    -

    Errors thrown by the TensorFlow Lite Interpreter.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public enum InterpreterError : Error, Equatable, Hashable
    -
    extension InterpreterError: LocalizedError
    -
    extension InterpreterError: CustomStringConvertible
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    ThreadWaitType

    -
    -
    -
    -
    -
    -
    -
    -

    A type indicating how the current thread should wait for work scheduled on the GPU to complete.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public enum ThreadWaitType : Equatable, Hashable
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    Runtime

    -
    -
    -
    -
    -
    -
    -
    -

    TensorFlow Lite runtime values.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public enum Runtime
    - -
    -
    -
    -
    -
  • -
-
-
-
-
- - diff --git a/site/en/lite/api_docs/swift/Enums/InterpreterError.html b/site/en/lite/api_docs/swift/Enums/InterpreterError.html deleted file mode 100644 index 25a302753f..0000000000 --- a/site/en/lite/api_docs/swift/Enums/InterpreterError.html +++ /dev/null @@ -1,385 +0,0 @@ - - - - TensorFlowLiteSwift Framework Reference - - - - -
-
-
-
-

InterpreterError

-
-
-
public enum InterpreterError : Error, Equatable, Hashable
-
extension InterpreterError: LocalizedError
-
extension InterpreterError: CustomStringConvertible
- -
-
-

Errors thrown by the TensorFlow Lite Interpreter.

- -
-
-
-
    -
  • - -
    -
    -
    -
    -
    -

    Undocumented

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    case invalidTensorIndex(index: Int, maxIndex: Int)
    - -
    -
    -
    -
    -
  • -
  • - -
    -
    -
    -
    -
    -

    Undocumented

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    case invalidTensorDataCount(provided: Int, required: Int)
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    invalidTensorDataType

    -
    -
    -
    -
    -
    -
    -
    -

    Undocumented

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    case invalidTensorDataType
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    failedToLoadModel

    -
    -
    -
    -
    -
    -
    -
    -

    Undocumented

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    case failedToLoadModel
    - -
    -
    -
    -
    -
  • -
  • - -
    -
    -
    -
    -
    -

    Undocumented

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    case failedToCreateInterpreter
    - -
    -
    -
    -
    -
  • -
  • - -
    -
    -
    -
    -
    -

    Undocumented

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    case failedToResizeInputTensor(index: Int)
    - -
    -
    -
    -
    -
  • -
  • - -
    -
    -
    -
    -
    -

    Undocumented

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    case failedToCopyDataToInputTensor
    - -
    -
    -
    -
    -
  • -
  • - -
    -
    -
    -
    -
    -

    Undocumented

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    case failedToAllocateTensors
    - -
    -
    -
    -
    -
  • -
  • - -
    -
    -
    -
    -
    -

    Undocumented

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    case allocateTensorsRequired
    - -
    -
    -
    -
    -
  • -
  • - -
    -
    -
    -
    -
    -

    Undocumented

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    case invokeInterpreterRequired
    - -
    -
    -
    -
    -
  • -
  • - -
    -
    -
    -
    -
    -

    Undocumented

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    case tensorFlowLiteError(String)
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    errorDescription

    -
    -
    -
    -
    -
    -
    -
    -

    A localized description of the interpreter error.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public var errorDescription: String? { get }
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    description

    -
    -
    -
    -
    -
    -
    -
    -

    A textual representation of the TensorFlow Lite interpreter error.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public var description: String { get }
    - -
    -
    -
    -
    -
  • -
-
-
-
-
- - diff --git a/site/en/lite/api_docs/swift/Enums/Runtime.html b/site/en/lite/api_docs/swift/Enums/Runtime.html deleted file mode 100644 index e301f24e9b..0000000000 --- a/site/en/lite/api_docs/swift/Enums/Runtime.html +++ /dev/null @@ -1,60 +0,0 @@ - - - - TensorFlowLiteSwift Framework Reference - - - - -
-
-
-
-

Runtime

-
-
-
public enum Runtime
- -
-
-

TensorFlow Lite runtime values.

- -
-
-
-
    -
  • -
    - - - -

    version

    -
    -
    -
    -
    -
    -
    -
    -

    A string describing the semantic versioning information for the runtime. Is an empty string if -the version could not be determined.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public static var version: String { get }
    - -
    -
    -
    -
    -
  • -
-
-
-
-
- - diff --git a/site/en/lite/api_docs/swift/Enums/ThreadWaitType.html b/site/en/lite/api_docs/swift/Enums/ThreadWaitType.html deleted file mode 100644 index a29d102217..0000000000 --- a/site/en/lite/api_docs/swift/Enums/ThreadWaitType.html +++ /dev/null @@ -1,142 +0,0 @@ - - - - TensorFlowLiteSwift Framework Reference - - - - -
-
-
-
-

ThreadWaitType

-
-
-
public enum ThreadWaitType : Equatable, Hashable
- -
-
-

A type indicating how the current thread should wait for work scheduled on the GPU to complete.

- -
-
-
-
    -
  • -
    - - - -

    none

    -
    -
    -
    -
    -
    -
    -
    -

    The thread does not wait for the work to complete. Useful when the output of the work is used -with the GPU pipeline.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    case none
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    passive

    -
    -
    -
    -
    -
    -
    -
    -

    The thread waits until the work is complete.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    case passive
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    active

    -
    -
    -
    -
    -
    -
    -
    -

    The thread waits for the work to complete with minimal latency, which may require additional -CPU resources.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    case active
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    aggressive

    -
    -
    -
    -
    -
    -
    -
    -

    The thread waits for the work while trying to prevent the GPU from going into sleep mode.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    case aggressive
    - -
    -
    -
    -
    -
  • -
-
-
-
-
- - diff --git a/site/en/lite/api_docs/swift/Protocols.html b/site/en/lite/api_docs/swift/Protocols.html deleted file mode 100644 index 702262e8af..0000000000 --- a/site/en/lite/api_docs/swift/Protocols.html +++ /dev/null @@ -1,53 +0,0 @@ - - - - TensorFlowLiteSwift Framework Reference - - - - -
-
-
-
-

Protocols

-

The following protocols are available globally.

- -
-
-
-
    -
  • -
    - - - -

    Delegate

    -
    -
    -
    -
    -
    -
    -
    -

    A delegate that the Interpreter uses to perform TensorFlow Lite model computations.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public protocol Delegate : AnyObject
    - -
    -
    -
    -
    -
  • -
-
-
-
-
- - diff --git a/site/en/lite/api_docs/swift/Protocols/Delegate.html b/site/en/lite/api_docs/swift/Protocols/Delegate.html deleted file mode 100644 index 7613709e45..0000000000 --- a/site/en/lite/api_docs/swift/Protocols/Delegate.html +++ /dev/null @@ -1,86 +0,0 @@ - - - - TensorFlowLiteSwift Framework Reference - - - - -
-
-
-
-

Delegate

-
-
-
public protocol Delegate : AnyObject
- -
-
-

A delegate that the Interpreter uses to perform TensorFlow Lite model computations.

- -
-
-
-
    -
  • -
    - - - -

    CDelegate

    -
    -
    -
    -
    -
    -
    -
    -

    The TfLiteDelegate C pointer type.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    typealias CDelegate = UnsafeMutablePointer<TfLiteDelegate>
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    cDelegate

    -
    -
    -
    -
    -
    -
    -
    -

    The delegate that performs model computations.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    var cDelegate: CDelegate { get }
    - -
    -
    -
    -
    -
  • -
-
-
-
-
- - diff --git a/site/en/lite/api_docs/swift/Structs.html b/site/en/lite/api_docs/swift/Structs.html deleted file mode 100644 index 35405b7248..0000000000 --- a/site/en/lite/api_docs/swift/Structs.html +++ /dev/null @@ -1,82 +0,0 @@ - - - - TensorFlowLiteSwift Framework Reference - - - - -
-
-
-
-

Structures

-

The following structures are available globally.

- -
-
-
-
    -
  • - -
    -
    -
    -
    -
    -

    Parameters that determine the mapping of quantized values to real values. Quantized values can -be mapped to float values using the following conversion: -realValue = scale * (quantizedValue - zeroPoint).

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public struct QuantizationParameters : Equatable, Hashable
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    Tensor

    -
    -
    -
    -
    -
    -
    -
    -

    An input or output tensor in a TensorFlow Lite graph.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public struct Tensor : Equatable, Hashable
    - -
    -
    -
    -
    -
  • -
-
-
-
-
- - diff --git a/site/en/lite/api_docs/swift/Structs/QuantizationParameters.html b/site/en/lite/api_docs/swift/Structs/QuantizationParameters.html deleted file mode 100644 index bed6942514..0000000000 --- a/site/en/lite/api_docs/swift/Structs/QuantizationParameters.html +++ /dev/null @@ -1,92 +0,0 @@ - - - - TensorFlowLiteSwift Framework Reference - - - - -
-
-
-
-

QuantizationParameters

-
-
-
public struct QuantizationParameters : Equatable, Hashable
- -
-
-

Parameters that determine the mapping of quantized values to real values. Quantized values can -be mapped to float values using the following conversion: -realValue = scale * (quantizedValue - zeroPoint).

- -
-
-
-
    -
  • -
    - - - -

    scale

    -
    -
    -
    -
    -
    -
    -
    -

    The difference between real values corresponding to consecutive quantized values differing by

    - -
      -
    1. For example, the range of quantized values for UInt8 data type is [0, 255].
    2. -
    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public let scale: Float
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    zeroPoint

    -
    -
    -
    -
    -
    -
    -
    -

    The quantized value that corresponds to the real 0 value.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public let zeroPoint: Int
    - -
    -
    -
    -
    -
  • -
-
-
-
-
- - diff --git a/site/en/lite/api_docs/swift/Structs/Tensor.html b/site/en/lite/api_docs/swift/Structs/Tensor.html deleted file mode 100644 index cc699305ba..0000000000 --- a/site/en/lite/api_docs/swift/Structs/Tensor.html +++ /dev/null @@ -1,222 +0,0 @@ - - - - TensorFlowLiteSwift Framework Reference - - - - -
-
-
-
-

Tensor

-
-
-
public struct Tensor : Equatable, Hashable
- -
-
-

An input or output tensor in a TensorFlow Lite graph.

- -
-
-
-
    -
  • -
    - - - -

    name

    -
    -
    -
    -
    -
    -
    -
    -

    The name of the Tensor.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public let name: String
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    dataType

    -
    -
    -
    -
    -
    -
    -
    -

    The data type of the Tensor.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public let dataType: DataType
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    shape

    -
    -
    -
    -
    -
    -
    -
    -

    The shape of the Tensor.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public let shape: Shape
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    data

    -
    -
    -
    -
    -
    -
    -
    -

    The data in the input or output Tensor.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public let data: Data
    - -
    -
    -
    -
    -
  • -
  • - -
    -
    -
    -
    -
    -

    The quantization parameters for the Tensor if using a quantized model.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public let quantizationParameters: QuantizationParameters?
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    DataType

    -
    -
    -
    -
    -
    -
    -
    -

    The supported Tensor data types.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public enum DataType : Equatable, Hashable
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    Shape

    -
    -
    -
    -
    -
    -
    -
    -

    The shape of a Tensor.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public struct Shape : Equatable, Hashable
    -
    extension Tensor.Shape: ExpressibleByArrayLiteral
    - -
    -
    -
    -
    -
  • -
-
-
-
-
- - diff --git a/site/en/lite/api_docs/swift/Structs/Tensor/DataType.html b/site/en/lite/api_docs/swift/Structs/Tensor/DataType.html deleted file mode 100644 index 20c367f187..0000000000 --- a/site/en/lite/api_docs/swift/Structs/Tensor/DataType.html +++ /dev/null @@ -1,248 +0,0 @@ - - - - TensorFlowLiteSwift Framework Reference - - - - -
-
-
-
-

DataType

-
-
-
public enum DataType : Equatable, Hashable
- -
-
-

The supported Tensor data types.

- -
-
-
-
    -
  • -
    - - - -

    bool

    -
    -
    -
    -
    -
    -
    -
    -

    A boolean.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    case bool
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    uInt8

    -
    -
    -
    -
    -
    -
    -
    -

    An 8-bit unsigned integer.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    case uInt8
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    int16

    -
    -
    -
    -
    -
    -
    -
    -

    A 16-bit signed integer.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    case int16
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    int32

    -
    -
    -
    -
    -
    -
    -
    -

    A 32-bit signed integer.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    case int32
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    int64

    -
    -
    -
    -
    -
    -
    -
    -

    A 64-bit signed integer.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    case int64
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    float16

    -
    -
    -
    -
    -
    -
    -
    -

    A 16-bit half precision floating point.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    case float16
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    float32

    -
    -
    -
    -
    -
    -
    -
    -

    A 32-bit single precision floating point.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    case float32
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    float64

    -
    -
    -
    -
    -
    -
    -
    -

    A 64-bit double precision floating point.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    case float64
    - -
    -
    -
    -
    -
  • -
-
-
-
-
- - diff --git a/site/en/lite/api_docs/swift/Structs/Tensor/Shape.html b/site/en/lite/api_docs/swift/Structs/Tensor/Shape.html deleted file mode 100644 index b15d25f974..0000000000 --- a/site/en/lite/api_docs/swift/Structs/Tensor/Shape.html +++ /dev/null @@ -1,222 +0,0 @@ - - - - TensorFlowLiteSwift Framework Reference - - - - -
-
-
-
-

Shape

-
-
-
public struct Shape : Equatable, Hashable
-
extension Tensor.Shape: ExpressibleByArrayLiteral
- -
-
-

The shape of a Tensor.

- -
-
-
-
    -
  • -
    - - - -

    rank

    -
    -
    -
    -
    -
    -
    -
    -

    The number of dimensions of the Tensor.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public let rank: Int
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    dimensions

    -
    -
    -
    -
    -
    -
    -
    -

    An array of dimensions for the Tensor.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public let dimensions: [Int]
    - -
    -
    -
    -
    -
  • -
  • -
    - - - -

    init(_:)

    -
    -
    -
    -
    -
    -
    -
    -

    Creates a new instance with the given array of dimensions.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public init(_ dimensions: [Int])
    - -
    -
    -
    -

    Parameters

    - - - - - - -
    - - dimensions - - -
    -

    Dimensions for the Tensor.

    -
    -
    -
    -
    -
    -
  • -
  • -
    - - - -

    init(_:)

    -
    -
    -
    -
    -
    -
    -
    -

    Creates a new instance with the given elements representing the dimensions.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public init(_ elements: Int...)
    - -
    -
    -
    -

    Parameters

    - - - - - - -
    - - elements - - -
    -

    Dimensions for the Tensor.

    -
    -
    -
    -
    -
    -
  • -
  • -
    - - - -

    init(arrayLiteral:)

    -
    -
    -
    -
    -
    -
    -
    -

    Creates a new instance with the given array literal representing the dimensions.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public init(arrayLiteral: Int...)
    - -
    -
    -
    -

    Parameters

    - - - - - - -
    - - arrayLiteral - - -
    -

    Dimensions for the Tensor.

    -
    -
    -
    -
    -
    -
  • -
-
-
-
-
- - diff --git a/site/en/lite/api_docs/swift/Typealiases.html b/site/en/lite/api_docs/swift/Typealiases.html deleted file mode 100644 index 8337ca1758..0000000000 --- a/site/en/lite/api_docs/swift/Typealiases.html +++ /dev/null @@ -1,55 +0,0 @@ - - - - TensorFlowLiteSwift Framework Reference - - - - -
-
-
-
-

Type Aliases

-

The following type aliases are available globally.

- -
-
-
-
    -
  • -
    - - - -

    InterpreterOptions

    -
    -
    -
    -
    -
    -
    -
    -

    A type alias for Interpreter.Options to support backwards compatibility with the deprecated -InterpreterOptions struct.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    @available(*, deprecated, renamed: "Interpreter.Options")
    -public typealias InterpreterOptions = Interpreter.Options
    - -
    -
    -
    -
    -
  • -
-
-
-
-
- - diff --git a/site/en/lite/api_docs/swift/_toc.yaml b/site/en/lite/api_docs/swift/_toc.yaml deleted file mode 100644 index 29854e4371..0000000000 --- a/site/en/lite/api_docs/swift/_toc.yaml +++ /dev/null @@ -1,50 +0,0 @@ -toc: -- title: TensorFlowLiteSwift - section: - - title: Classes - path: /lite/api_docs/swift/Classes.html - section: - - title: CoreMLDelegate - path: /lite/api_docs/swift/Classes/CoreMLDelegate.html - - title: – EnabledDevices - path: /lite/api_docs/swift/Classes/CoreMLDelegate/EnabledDevices.html - - title: – Options - path: /lite/api_docs/swift/Classes/CoreMLDelegate/Options.html - - title: Interpreter - path: /lite/api_docs/swift/Classes/Interpreter.html - - title: – Options - path: /lite/api_docs/swift/Classes/Interpreter/Options.html - - title: MetalDelegate - path: /lite/api_docs/swift/Classes/MetalDelegate.html - - title: – Options - path: /lite/api_docs/swift/Classes/MetalDelegate/Options.html - - title: Enumerations - path: /lite/api_docs/swift/Enums.html - section: - - title: InterpreterError - path: /lite/api_docs/swift/Enums/InterpreterError.html - - title: Runtime - path: /lite/api_docs/swift/Enums/Runtime.html - - title: ThreadWaitType - path: /lite/api_docs/swift/Enums/ThreadWaitType.html - - title: Protocols - path: /lite/api_docs/swift/Protocols.html - section: - - title: Delegate - path: /lite/api_docs/swift/Protocols/Delegate.html - - title: Structures - path: /lite/api_docs/swift/Structs.html - section: - - title: QuantizationParameters - path: /lite/api_docs/swift/Structs/QuantizationParameters.html - - title: Tensor - path: /lite/api_docs/swift/Structs/Tensor.html - - title: – DataType - path: /lite/api_docs/swift/Structs/Tensor/DataType.html - - title: – Shape - path: /lite/api_docs/swift/Structs/Tensor/Shape.html - - title: Type Aliases - path: /lite/api_docs/swift/Typealiases.html - section: - - title: InterpreterOptions - path: /lite/api_docs/swift/Typealiases.html#/s:19TensorFlowLiteSwift18InterpreterOptionsa diff --git a/site/en/lite/api_docs/swift/badge.svg b/site/en/lite/api_docs/swift/badge.svg deleted file mode 100644 index c8d6b742c0..0000000000 --- a/site/en/lite/api_docs/swift/badge.svg +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - - - - - - documentation - - - documentation - - - 84% - - - 84% - - - diff --git a/site/en/lite/api_docs/swift/css/jazzy.css b/site/en/lite/api_docs/swift/css/jazzy.css deleted file mode 100644 index d24bcb22d1..0000000000 --- a/site/en/lite/api_docs/swift/css/jazzy.css +++ /dev/null @@ -1,49 +0,0 @@ -.task-group ul { - padding: 0; -} - -li.item { - list-style: none; -} - -li.item > div:first-child > code { - background: 0; - border-bottom: 1px solid #ebebeb; - display: block; - font: 400 24px/32px Roboto,sans-serif; - letter-spacing: -.01em; - margin: 40px 0 20px; - padding: 0 0 3px; -} - -.swift { - padding: 6px 12px; - margin: 12px 0; - border-left: 5px solid rgba(205,233,244,1); - overflow-y: hidden; -} - -.aside-title-swift { - font-size: 11px; - letter-spacing: 2px; - text-transform: uppercase; - padding-bottom: 0; - margin: 0; - color: #4b8afb; -} - -.objc { - padding: 6px 12px; - margin: 12px 0; - border-left: 5px solid rgba(0, 155, 51, 0.2); - overflow-y: hidden; -} - -.aside-title-objc { - font-size: 11px; - letter-spacing: 2px; - text-transform: uppercase; - padding-bottom: 0; - margin: 0; - color: #009b33; -} diff --git a/site/en/lite/api_docs/swift/search.json b/site/en/lite/api_docs/swift/search.json deleted file mode 100644 index 45fb9b5db6..0000000000 --- a/site/en/lite/api_docs/swift/search.json +++ /dev/null @@ -1 +0,0 @@ -{"Typealiases.html#/s:19TensorFlowLiteSwift18InterpreterOptionsa":{"name":"InterpreterOptions","abstract":"

A type alias for Interpreter.Options to support backwards compatibility with the deprecated"},"Structs/Tensor/Shape.html#/s:19TensorFlowLiteSwift0A0V5ShapeV4rankSivp":{"name":"rank","abstract":"

The number of dimensions of the Tensor.

","parent_name":"Shape"},"Structs/Tensor/Shape.html#/s:19TensorFlowLiteSwift0A0V5ShapeV10dimensionsSaySiGvp":{"name":"dimensions","abstract":"

An array of dimensions for the Tensor.

","parent_name":"Shape"},"Structs/Tensor/Shape.html#/s:19TensorFlowLiteSwift0A0V5ShapeVyAESaySiGcfc":{"name":"init(_:)","abstract":"

Creates a new instance with the given array of dimensions.

","parent_name":"Shape"},"Structs/Tensor/Shape.html#/s:19TensorFlowLiteSwift0A0V5ShapeVyAESid_tcfc":{"name":"init(_:)","abstract":"

Creates a new instance with the given elements representing the dimensions.

","parent_name":"Shape"},"Structs/Tensor/Shape.html#/s:19TensorFlowLiteSwift0A0V5ShapeV12arrayLiteralAESid_tcfc":{"name":"init(arrayLiteral:)","abstract":"

Creates a new instance with the given array literal representing the dimensions.

","parent_name":"Shape"},"Structs/Tensor/DataType.html#/s:19TensorFlowLiteSwift0A0V8DataTypeO4boolyA2EmF":{"name":"bool","abstract":"

A boolean.

","parent_name":"DataType"},"Structs/Tensor/DataType.html#/s:19TensorFlowLiteSwift0A0V8DataTypeO5uInt8yA2EmF":{"name":"uInt8","abstract":"

An 8-bit unsigned integer.

","parent_name":"DataType"},"Structs/Tensor/DataType.html#/s:19TensorFlowLiteSwift0A0V8DataTypeO5int16yA2EmF":{"name":"int16","abstract":"

A 16-bit signed integer.

","parent_name":"DataType"},"Structs/Tensor/DataType.html#/s:19TensorFlowLiteSwift0A0V8DataTypeO5int32yA2EmF":{"name":"int32","abstract":"

A 32-bit signed integer.

","parent_name":"DataType"},"Structs/Tensor/DataType.html#/s:19TensorFlowLiteSwift0A0V8DataTypeO5int64yA2EmF":{"name":"int64","abstract":"

A 64-bit signed integer.

","parent_name":"DataType"},"Structs/Tensor/DataType.html#/s:19TensorFlowLiteSwift0A0V8DataTypeO7float16yA2EmF":{"name":"float16","abstract":"

A 16-bit half precision floating point.

","parent_name":"DataType"},"Structs/Tensor/DataType.html#/s:19TensorFlowLiteSwift0A0V8DataTypeO7float32yA2EmF":{"name":"float32","abstract":"

A 32-bit single precision floating point.

","parent_name":"DataType"},"Structs/Tensor/DataType.html#/s:19TensorFlowLiteSwift0A0V8DataTypeO7float64yA2EmF":{"name":"float64","abstract":"

A 64-bit double precision floating point.

","parent_name":"DataType"},"Structs/Tensor.html#/s:19TensorFlowLiteSwift0A0V4nameSSvp":{"name":"name","abstract":"

The name of the Tensor.

","parent_name":"Tensor"},"Structs/Tensor.html#/s:19TensorFlowLiteSwift0A0V8dataTypeAC04DataF0Ovp":{"name":"dataType","abstract":"

The data type of the Tensor.

","parent_name":"Tensor"},"Structs/Tensor.html#/s:19TensorFlowLiteSwift0A0V5shapeAC5ShapeVvp":{"name":"shape","abstract":"

The shape of the Tensor.

","parent_name":"Tensor"},"Structs/Tensor.html#/s:19TensorFlowLiteSwift0A0V4data10Foundation4DataVvp":{"name":"data","abstract":"

The data in the input or output Tensor.

","parent_name":"Tensor"},"Structs/Tensor.html#/s:19TensorFlowLiteSwift0A0V22quantizationParametersAA012QuantizationF0VSgvp":{"name":"quantizationParameters","abstract":"

The quantization parameters for the Tensor if using a quantized model.

","parent_name":"Tensor"},"Structs/Tensor/DataType.html":{"name":"DataType","abstract":"

The supported Tensor data types.

","parent_name":"Tensor"},"Structs/Tensor/Shape.html":{"name":"Shape","abstract":"

The shape of a Tensor.

","parent_name":"Tensor"},"Structs/QuantizationParameters.html#/s:19TensorFlowLiteSwift22QuantizationParametersV5scaleSfvp":{"name":"scale","abstract":"

The difference between real values corresponding to consecutive quantized values differing by

","parent_name":"QuantizationParameters"},"Structs/QuantizationParameters.html#/s:19TensorFlowLiteSwift22QuantizationParametersV9zeroPointSivp":{"name":"zeroPoint","abstract":"

The quantized value that corresponds to the real 0 value.

","parent_name":"QuantizationParameters"},"Structs/QuantizationParameters.html":{"name":"QuantizationParameters","abstract":"

Parameters that determine the mapping of quantized values to real values. Quantized values can"},"Structs/Tensor.html":{"name":"Tensor","abstract":"

An input or output tensor in a TensorFlow Lite graph.

"},"Protocols/Delegate.html#/s:19TensorFlowLiteSwift8DelegateP9CDelegatea":{"name":"CDelegate","abstract":"

The TfLiteDelegate C pointer type.

","parent_name":"Delegate"},"Protocols/Delegate.html#/s:19TensorFlowLiteSwift8DelegateP01cE0Xevp":{"name":"cDelegate","abstract":"

The delegate that performs model computations.

","parent_name":"Delegate"},"Protocols/Delegate.html":{"name":"Delegate","abstract":"

A delegate that the Interpreter uses to perform TensorFlow Lite model computations.

"},"Enums/Runtime.html#/s:19TensorFlowLiteSwift7RuntimeO7versionSSvpZ":{"name":"version","abstract":"

A string describing the semantic versioning information for the runtime. Is an empty string if","parent_name":"Runtime"},"Enums/ThreadWaitType.html#/s:19TensorFlowLiteSwift14ThreadWaitTypeO4noneyA2CmF":{"name":"none","abstract":"

The thread does not wait for the work to complete. Useful when the output of the work is used","parent_name":"ThreadWaitType"},"Enums/ThreadWaitType.html#/s:19TensorFlowLiteSwift14ThreadWaitTypeO7passiveyA2CmF":{"name":"passive","abstract":"

The thread waits until the work is complete.

","parent_name":"ThreadWaitType"},"Enums/ThreadWaitType.html#/s:19TensorFlowLiteSwift14ThreadWaitTypeO6activeyA2CmF":{"name":"active","abstract":"

The thread waits for the work to complete with minimal latency, which may require additional","parent_name":"ThreadWaitType"},"Enums/ThreadWaitType.html#/s:19TensorFlowLiteSwift14ThreadWaitTypeO10aggressiveyA2CmF":{"name":"aggressive","abstract":"

The thread waits for the work while trying to prevent the GPU from going into sleep mode.

","parent_name":"ThreadWaitType"},"Enums/InterpreterError.html#/s:19TensorFlowLiteSwift16InterpreterErrorO07invalidA5IndexyACSi_SitcACmF":{"name":"invalidTensorIndex(index:maxIndex:)","abstract":"

Undocumented

","parent_name":"InterpreterError"},"Enums/InterpreterError.html#/s:19TensorFlowLiteSwift16InterpreterErrorO07invalidA9DataCountyACSi_SitcACmF":{"name":"invalidTensorDataCount(provided:required:)","abstract":"

Undocumented

","parent_name":"InterpreterError"},"Enums/InterpreterError.html#/s:19TensorFlowLiteSwift16InterpreterErrorO07invalidA8DataTypeyA2CmF":{"name":"invalidTensorDataType","abstract":"

Undocumented

","parent_name":"InterpreterError"},"Enums/InterpreterError.html#/s:19TensorFlowLiteSwift16InterpreterErrorO17failedToLoadModelyA2CmF":{"name":"failedToLoadModel","abstract":"

Undocumented

","parent_name":"InterpreterError"},"Enums/InterpreterError.html#/s:19TensorFlowLiteSwift16InterpreterErrorO014failedToCreateE0yA2CmF":{"name":"failedToCreateInterpreter","abstract":"

Undocumented

","parent_name":"InterpreterError"},"Enums/InterpreterError.html#/s:19TensorFlowLiteSwift16InterpreterErrorO019failedToResizeInputA0yACSi_tcACmF":{"name":"failedToResizeInputTensor(index:)","abstract":"

Undocumented

","parent_name":"InterpreterError"},"Enums/InterpreterError.html#/s:19TensorFlowLiteSwift16InterpreterErrorO016failedToCopyDatah5InputA0yA2CmF":{"name":"failedToCopyDataToInputTensor","abstract":"

Undocumented

","parent_name":"InterpreterError"},"Enums/InterpreterError.html#/s:19TensorFlowLiteSwift16InterpreterErrorO23failedToAllocateTensorsyA2CmF":{"name":"failedToAllocateTensors","abstract":"

Undocumented

","parent_name":"InterpreterError"},"Enums/InterpreterError.html#/s:19TensorFlowLiteSwift16InterpreterErrorO23allocateTensorsRequiredyA2CmF":{"name":"allocateTensorsRequired","abstract":"

Undocumented

","parent_name":"InterpreterError"},"Enums/InterpreterError.html#/s:19TensorFlowLiteSwift16InterpreterErrorO06invokeE8RequiredyA2CmF":{"name":"invokeInterpreterRequired","abstract":"

Undocumented

","parent_name":"InterpreterError"},"Enums/InterpreterError.html#/s:19TensorFlowLiteSwift16InterpreterErrorO06tensorbcF0yACSScACmF":{"name":"tensorFlowLiteError(_:)","abstract":"

Undocumented

","parent_name":"InterpreterError"},"Enums/InterpreterError.html#/s:19TensorFlowLiteSwift16InterpreterErrorO16errorDescriptionSSSgvp":{"name":"errorDescription","abstract":"

A localized description of the interpreter error.

","parent_name":"InterpreterError"},"Enums/InterpreterError.html#/s:19TensorFlowLiteSwift16InterpreterErrorO11descriptionSSvp":{"name":"description","abstract":"

A textual representation of the TensorFlow Lite interpreter error.

","parent_name":"InterpreterError"},"Enums/InterpreterError.html":{"name":"InterpreterError","abstract":"

Errors thrown by the TensorFlow Lite Interpreter.

"},"Enums/ThreadWaitType.html":{"name":"ThreadWaitType","abstract":"

A type indicating how the current thread should wait for work scheduled on the GPU to complete.

"},"Enums/Runtime.html":{"name":"Runtime","abstract":"

TensorFlow Lite runtime values.

"},"Classes/MetalDelegate/Options.html#/s:19TensorFlowLiteSwift13MetalDelegateC7OptionsV22isPrecisionLossAllowedSbvp":{"name":"isPrecisionLossAllowed","abstract":"

Indicates whether the GPU delegate allows precision loss, such as allowing Float16","parent_name":"Options"},"Classes/MetalDelegate/Options.html#/s:19TensorFlowLiteSwift13MetalDelegateC7OptionsV19allowsPrecisionLossSbvp":{"name":"allowsPrecisionLoss","abstract":"

Undocumented

","parent_name":"Options"},"Classes/MetalDelegate/Options.html#/s:19TensorFlowLiteSwift13MetalDelegateC7OptionsV8waitTypeAA010ThreadWaitI0Ovp":{"name":"waitType","abstract":"

A type indicating how the current thread should wait for work on the GPU to complete. The","parent_name":"Options"},"Classes/MetalDelegate/Options.html#/s:19TensorFlowLiteSwift13MetalDelegateC7OptionsV21isQuantizationEnabledSbvp":{"name":"isQuantizationEnabled","abstract":"

Indicates whether the GPU delegate allows execution of an 8-bit quantized model. The default","parent_name":"Options"},"Classes/MetalDelegate/Options.html#/s:19TensorFlowLiteSwift13MetalDelegateC7OptionsVAEycfc":{"name":"init()","abstract":"

Creates a new instance with the default values.

","parent_name":"Options"},"Classes/MetalDelegate.html#/s:19TensorFlowLiteSwift13MetalDelegateC7optionsAC7OptionsVvp":{"name":"options","abstract":"

The configuration options for the MetalDelegate.

","parent_name":"MetalDelegate"},"Classes/MetalDelegate.html#/s:19TensorFlowLiteSwift13MetalDelegateC01cF0Xevp":{"name":"cDelegate","abstract":"

Undocumented

","parent_name":"MetalDelegate"},"Classes/MetalDelegate.html#/s:19TensorFlowLiteSwift13MetalDelegateC7optionsA2C7OptionsV_tcfc":{"name":"init(options:)","abstract":"

Creates a new instance configured with the given options.

","parent_name":"MetalDelegate"},"Classes/MetalDelegate/Options.html":{"name":"Options","abstract":"

Options for configuring the MetalDelegate.

","parent_name":"MetalDelegate"},"Classes/Interpreter/Options.html#/s:19TensorFlowLiteSwift11InterpreterC7OptionsV11threadCountSiSgvp":{"name":"threadCount","abstract":"

The maximum number of CPU threads that the interpreter should run on. The default is nil","parent_name":"Options"},"Classes/Interpreter/Options.html#/s:19TensorFlowLiteSwift11InterpreterC7OptionsV16isXNNPackEnabledSbvp":{"name":"isXNNPackEnabled","abstract":"

Indicates whether an optimized set of floating point CPU kernels, provided by XNNPACK, is","parent_name":"Options"},"Classes/Interpreter/Options.html#/s:19TensorFlowLiteSwift11InterpreterC7OptionsVAEycfc":{"name":"init()","abstract":"

Creates a new instance with the default values.

","parent_name":"Options"},"Classes/Interpreter.html#/s:19TensorFlowLiteSwift11InterpreterC7optionsAC7OptionsVSgvp":{"name":"options","abstract":"

The configuration options for the Interpreter.

","parent_name":"Interpreter"},"Classes/Interpreter.html#/s:19TensorFlowLiteSwift11InterpreterC9delegatesSayAA8Delegate_pGSgvp":{"name":"delegates","abstract":"

An Array of Delegates for the Interpreter to use to perform graph operations.

","parent_name":"Interpreter"},"Classes/Interpreter.html#/s:19TensorFlowLiteSwift11InterpreterC05inputA5CountSivp":{"name":"inputTensorCount","abstract":"

The total number of input Tensors associated with the model.

","parent_name":"Interpreter"},"Classes/Interpreter.html#/s:19TensorFlowLiteSwift11InterpreterC06outputA5CountSivp":{"name":"outputTensorCount","abstract":"

The total number of output Tensors associated with the model.

","parent_name":"Interpreter"},"Classes/Interpreter.html#/s:19TensorFlowLiteSwift11InterpreterC9modelPath7options9delegatesACSS_AC7OptionsVSgSayAA8Delegate_pGSgtKcfc":{"name":"init(modelPath:options:delegates:)","abstract":"

Creates a new instance with the given values.

","parent_name":"Interpreter"},"Classes/Interpreter.html#/s:19TensorFlowLiteSwift11InterpreterC6invokeyyKF":{"name":"invoke()","abstract":"

Invokes the interpreter to perform inference from the loaded graph.

","parent_name":"Interpreter"},"Classes/Interpreter.html#/s:19TensorFlowLiteSwift11InterpreterC5input2atAA0A0VSi_tKF":{"name":"input(at:)","abstract":"

Returns the input Tensor at the given index.

","parent_name":"Interpreter"},"Classes/Interpreter.html#/s:19TensorFlowLiteSwift11InterpreterC6output2atAA0A0VSi_tKF":{"name":"output(at:)","abstract":"

Returns the output Tensor at the given index.

","parent_name":"Interpreter"},"Classes/Interpreter.html#/s:19TensorFlowLiteSwift11InterpreterC11resizeInput2at2toySi_AA0A0V5ShapeVtKF":{"name":"resizeInput(at:to:)","abstract":"

Resizes the input Tensor at the given index to the specified Tensor.Shape.

","parent_name":"Interpreter"},"Classes/Interpreter.html#/s:19TensorFlowLiteSwift11InterpreterC4copy_9toInputAtAA0A0V10Foundation4DataV_SitKF":{"name":"copy(_:toInputAt:)","abstract":"

Copies the given data to the input Tensor at the given index.

","parent_name":"Interpreter"},"Classes/Interpreter.html#/s:19TensorFlowLiteSwift11InterpreterC15allocateTensorsyyKF":{"name":"allocateTensors()","abstract":"

Allocates memory for all input Tensors based on their Tensor.Shapes.

","parent_name":"Interpreter"},"Classes/Interpreter/Options.html":{"name":"Options","abstract":"

Options for configuring the Interpreter.

","parent_name":"Interpreter"},"Classes/CoreMLDelegate/Options.html#/s:19TensorFlowLiteSwift14CoreMLDelegateC7OptionsV14enabledDevicesAC07EnabledI0Ovp":{"name":"enabledDevices","abstract":"

A type indicating which devices the Core ML delegate should be enabled for. The default","parent_name":"Options"},"Classes/CoreMLDelegate/Options.html#/s:19TensorFlowLiteSwift14CoreMLDelegateC7OptionsV13coreMLVersionSivp":{"name":"coreMLVersion","abstract":"

Target Core ML version for the model conversion. When it’s not set, Core ML version will","parent_name":"Options"},"Classes/CoreMLDelegate/Options.html#/s:19TensorFlowLiteSwift14CoreMLDelegateC7OptionsV22maxDelegatedPartitionsSivp":{"name":"maxDelegatedPartitions","abstract":"

The maximum number of Core ML delegate partitions created. Each graph corresponds to one","parent_name":"Options"},"Classes/CoreMLDelegate/Options.html#/s:19TensorFlowLiteSwift14CoreMLDelegateC7OptionsV20minNodesPerPartitionSivp":{"name":"minNodesPerPartition","abstract":"

The minimum number of nodes per partition to be delegated by the Core ML delegate. The","parent_name":"Options"},"Classes/CoreMLDelegate/Options.html#/s:19TensorFlowLiteSwift14CoreMLDelegateC7OptionsVAEycfc":{"name":"init()","abstract":"

Creates a new instance with the default values.

","parent_name":"Options"},"Classes/CoreMLDelegate/EnabledDevices.html#/s:19TensorFlowLiteSwift14CoreMLDelegateC14EnabledDevicesO12neuralEngineyA2EmF":{"name":"neuralEngine","abstract":"

Enables the delegate for devices with Neural Engine only.

","parent_name":"EnabledDevices"},"Classes/CoreMLDelegate/EnabledDevices.html#/s:19TensorFlowLiteSwift14CoreMLDelegateC14EnabledDevicesO3allyA2EmF":{"name":"all","abstract":"

Enables the delegate for all devices.

","parent_name":"EnabledDevices"},"Classes/CoreMLDelegate.html#/s:19TensorFlowLiteSwift14CoreMLDelegateC7optionsAC7OptionsVvp":{"name":"options","abstract":"

The configuration options for the CoreMLDelegate.

","parent_name":"CoreMLDelegate"},"Classes/CoreMLDelegate.html#/s:19TensorFlowLiteSwift14CoreMLDelegateC9cDelegateXevp":{"name":"cDelegate","abstract":"

Undocumented

","parent_name":"CoreMLDelegate"},"Classes/CoreMLDelegate.html#/s:19TensorFlowLiteSwift14CoreMLDelegateC7optionsACSgAC7OptionsV_tcfc":{"name":"init(options:)","abstract":"

Creates a new instance configured with the given options. Returns nil if the underlying","parent_name":"CoreMLDelegate"},"Classes/CoreMLDelegate/EnabledDevices.html":{"name":"EnabledDevices","abstract":"

A type indicating which devices the Core ML delegate should be enabled for.

","parent_name":"CoreMLDelegate"},"Classes/CoreMLDelegate/Options.html":{"name":"Options","abstract":"

Undocumented

","parent_name":"CoreMLDelegate"},"Classes/CoreMLDelegate.html":{"name":"CoreMLDelegate","abstract":"

A delegate that uses the Core ML framework for performing TensorFlow Lite graph operations.

"},"Classes/Interpreter.html":{"name":"Interpreter","abstract":"

A TensorFlow Lite interpreter that performs inference from a given model.

"},"Classes/MetalDelegate.html":{"name":"MetalDelegate","abstract":"

A delegate that uses the Metal framework for performing TensorFlow Lite graph operations with"},"Classes.html":{"name":"Classes","abstract":"

The following classes are available globally.

"},"Enums.html":{"name":"Enumerations","abstract":"

The following enumerations are available globally.

"},"Protocols.html":{"name":"Protocols","abstract":"

The following protocols are available globally.

"},"Structs.html":{"name":"Structures","abstract":"

The following structures are available globally.

"},"Typealiases.html":{"name":"Type Aliases","abstract":"

The following type aliases are available globally.

"}} \ No newline at end of file