Package | Description |
---|---|
org.bytedeco.tensorflowlite.global |
Modifier and Type | Method and Description |
---|---|
static TfLiteInterpreterOptions |
tensorflowlite.TfLiteInterpreterOptionsCopy(TfLiteInterpreterOptions from)
Creates and returns a shallow copy of an options object.
|
static TfLiteInterpreterOptions |
tensorflowlite.TfLiteInterpreterOptionsCreate()
Returns a new interpreter options instances.
|
Modifier and Type | Method and Description |
---|---|
static TfLiteInterpreter |
tensorflowlite.TfLiteInterpreterCreate(TfLiteModel model,
TfLiteInterpreterOptions optional_options)
Returns a new interpreter using the provided model and options, or null on
failure.
|
static TfLiteInterpreter |
tensorflowlite.TfLiteInterpreterCreateWithSelectedOps(TfLiteModel model,
TfLiteInterpreterOptions options)
Returns a new interpreter using the provided model and options, or null on
failure, where the model uses only the operators explicitly added to the
options.
|
static void |
tensorflowlite.TfLiteInterpreterOptionsAddBuiltinOp(TfLiteInterpreterOptions options,
int op,
TfLiteRegistration registration,
int min_version,
int max_version)
Adds an op registration for a builtin operator.
|
static void |
tensorflowlite.TfLiteInterpreterOptionsAddCustomOp(TfLiteInterpreterOptions options,
BytePointer name,
TfLiteRegistration registration,
int min_version,
int max_version)
Adds an op registration for a custom operator.
|
static void |
tensorflowlite.TfLiteInterpreterOptionsAddCustomOp(TfLiteInterpreterOptions options,
String name,
TfLiteRegistration registration,
int min_version,
int max_version) |
static void |
tensorflowlite.TfLiteInterpreterOptionsAddDelegate(TfLiteInterpreterOptions options,
TfLiteOpaqueDelegateStruct delegate)
Adds a delegate to be applied during
TfLiteInterpreter creation. |
static void |
tensorflowlite.TfLiteInterpreterOptionsAddOperator(TfLiteInterpreterOptions options,
TfLiteOperator registration)
Adds an op registration to be applied during
TfLiteInterpreter creation. |
static TfLiteInterpreterOptions |
tensorflowlite.TfLiteInterpreterOptionsCopy(TfLiteInterpreterOptions from)
Creates and returns a shallow copy of an options object.
|
static void |
tensorflowlite.TfLiteInterpreterOptionsDelete(TfLiteInterpreterOptions options)
Destroys the interpreter options instance.
|
static int |
tensorflowlite.TfLiteInterpreterOptionsEnableCancellation(TfLiteInterpreterOptions options,
boolean enable)
Enables users to cancel in-flight invocations with
TfLiteInterpreterCancel . |
static void |
tensorflowlite.TfLiteInterpreterOptionsSetEnableDelegateFallback(TfLiteInterpreterOptions options,
boolean enable)
Enable or disable CPU fallback for the interpreter (true to enable).
|
static void |
tensorflowlite.TfLiteInterpreterOptionsSetErrorReporter(TfLiteInterpreterOptions options,
Reporter_Pointer_BytePointer_Pointer reporter,
Pointer user_data)
Sets a custom error reporter for interpreter execution.
|
static void |
tensorflowlite.TfLiteInterpreterOptionsSetErrorReporter(TfLiteInterpreterOptions options,
Reporter_Pointer_String_Pointer reporter,
Pointer user_data) |
static void |
tensorflowlite.TfLiteInterpreterOptionsSetNumThreads(TfLiteInterpreterOptions options,
int num_threads)
Sets the number of CPU threads to use for the interpreter.
|
static void |
tensorflowlite.TfLiteInterpreterOptionsSetOpResolver(TfLiteInterpreterOptions options,
Find_builtin_op_Pointer_int_int find_builtin_op,
Find_custom_op_Pointer_BytePointer_int find_custom_op,
Pointer op_resolver_user_data)
Registers callbacks for resolving builtin or custom operators.
|
static void |
tensorflowlite.TfLiteInterpreterOptionsSetOpResolver(TfLiteInterpreterOptions options,
Find_builtin_op_Pointer_int_int find_builtin_op,
Find_custom_op_Pointer_String_int find_custom_op,
Pointer op_resolver_user_data) |
static void |
tensorflowlite.TfLiteInterpreterOptionsSetOpResolverExternal(TfLiteInterpreterOptions options,
Find_builtin_op_external_Pointer_int_int find_builtin_op,
Find_custom_op_external_Pointer_String_int find_custom_op,
Pointer op_resolver_user_data) |
static void |
tensorflowlite.TfLiteInterpreterOptionsSetOpResolverExternalWithFallback(TfLiteInterpreterOptions options,
Find_builtin_op_external_Pointer_int_int find_builtin_op_external,
Find_custom_op_external_Pointer_String_int find_custom_op_external,
Find_builtin_op_Pointer_int_int find_builtin_op,
Find_custom_op_Pointer_BytePointer_int find_custom_op,
Pointer op_resolver_user_data) |
static void |
tensorflowlite.TfLiteInterpreterOptionsSetOpResolverExternalWithFallback(TfLiteInterpreterOptions options,
Find_builtin_op_external_Pointer_int_int find_builtin_op_external,
Find_custom_op_external_Pointer_String_int find_custom_op_external,
Find_builtin_op_Pointer_int_int find_builtin_op,
Find_custom_op_Pointer_String_int find_custom_op,
Pointer op_resolver_user_data) |
static void |
tensorflowlite.TfLiteInterpreterOptionsSetOpResolverV1(TfLiteInterpreterOptions options,
Find_builtin_op_v1_Pointer_int_int find_builtin_op_v1,
Find_custom_op_v1_Pointer_BytePointer_int find_custom_op_v1,
Pointer op_resolver_user_data) |
static void |
tensorflowlite.TfLiteInterpreterOptionsSetOpResolverV1(TfLiteInterpreterOptions options,
Find_builtin_op_v1_Pointer_int_int find_builtin_op_v1,
Find_custom_op_v1_Pointer_String_int find_custom_op_v1,
Pointer op_resolver_user_data) |
static void |
tensorflowlite.TfLiteInterpreterOptionsSetOpResolverV2(TfLiteInterpreterOptions options,
Find_builtin_op_v2_Pointer_int_int find_builtin_op_v2,
Find_custom_op_v2_Pointer_BytePointer_int find_custom_op_v2,
Pointer op_resolver_user_data) |
static void |
tensorflowlite.TfLiteInterpreterOptionsSetOpResolverV2(TfLiteInterpreterOptions options,
Find_builtin_op_v2_Pointer_int_int find_builtin_op_v2,
Find_custom_op_v2_Pointer_String_int find_custom_op_v2,
Pointer op_resolver_user_data) |
static void |
tensorflowlite.TfLiteInterpreterOptionsSetOpResolverV3(TfLiteInterpreterOptions options,
Find_builtin_op_v3_Pointer_int_int find_builtin_op_v3,
Find_custom_op_v3_Pointer_BytePointer_int find_custom_op_v3,
Pointer op_resolver_user_data) |
static void |
tensorflowlite.TfLiteInterpreterOptionsSetOpResolverV3(TfLiteInterpreterOptions options,
Find_builtin_op_v3_Pointer_int_int find_builtin_op_v3,
Find_custom_op_v3_Pointer_String_int find_custom_op_v3,
Pointer op_resolver_user_data) |
static void |
tensorflowlite.TfLiteInterpreterOptionsSetTelemetryProfiler(TfLiteInterpreterOptions options,
TfLiteTelemetryProfilerStruct profiler)
Registers the telemetry profiler to the interpreter.
|
static void |
tensorflowlite.TfLiteInterpreterOptionsSetUseNNAPI(TfLiteInterpreterOptions options,
boolean enable)
Enable or disable the NN API delegate for the interpreter (true to enable).
|
Copyright © 2025. All rights reserved.