@Properties(inherit=tensorflowlite.class) public class TfLiteRegistration extends Pointer
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 TfLiteOperator
which is a more ABI-stable equivalent.Modifier and Type | Class and Description |
---|---|
static class |
TfLiteRegistration.Free_TfLiteContext_Pointer
The pointer
buffer is the data previously returned by an init
invocation. |
static class |
TfLiteRegistration.Init_TfLiteContext_BytePointer_long
Initializes the op from serialized data.
|
static class |
TfLiteRegistration.Invoke_TfLiteContext_TfLiteNode
Execute the node (should read
node->inputs and output to
node->outputs ). |
static class |
TfLiteRegistration.Prepare_TfLiteContext_TfLiteNode
prepare is called when the inputs this node depends on have been resized.
|
static class |
TfLiteRegistration.Profiling_string_TfLiteContext_TfLiteNode
profiling_string is called during summarization of profiling information
in order to group executions together. |
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
TfLiteRegistration()
Default native constructor.
|
TfLiteRegistration(long size)
Native array allocator.
|
TfLiteRegistration(Pointer p)
Pointer cast constructor.
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public TfLiteRegistration()
public TfLiteRegistration(long size)
Pointer.position(long)
.public TfLiteRegistration(Pointer p)
Pointer(Pointer)
.public TfLiteRegistration position(long position)
public TfLiteRegistration getPointer(long i)
getPointer
in class Pointer
public TfLiteRegistration.Init_TfLiteContext_BytePointer_long init()
public TfLiteRegistration init(TfLiteRegistration.Init_TfLiteContext_BytePointer_long setter)
@Name(value="free") public TfLiteRegistration.Free_TfLiteContext_Pointer _free()
public TfLiteRegistration _free(TfLiteRegistration.Free_TfLiteContext_Pointer setter)
public TfLiteRegistration.Prepare_TfLiteContext_TfLiteNode prepare()
public TfLiteRegistration prepare(TfLiteRegistration.Prepare_TfLiteContext_TfLiteNode setter)
public TfLiteRegistration.Invoke_TfLiteContext_TfLiteNode invoke()
public TfLiteRegistration invoke(TfLiteRegistration.Invoke_TfLiteContext_TfLiteNode setter)
public TfLiteRegistration.Profiling_string_TfLiteContext_TfLiteNode profiling_string()
public TfLiteRegistration profiling_string(TfLiteRegistration.Profiling_string_TfLiteContext_TfLiteNode setter)
public int builtin_code()
public TfLiteRegistration builtin_code(int setter)
@Cast(value="const char*") public BytePointer custom_name()
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.public TfLiteRegistration custom_name(BytePointer setter)
public int version()
public TfLiteRegistration version(int setter)
public TfLiteOperator registration_external()
TfLiteRegistration
.
Since we can't use internal types (such as TfLiteContext
) for C API to
maintain ABI stability. C API user will provide TfLiteOperator
to
implement custom ops. We keep it inside of TfLiteRegistration
and use
it to route callbacks properly.public TfLiteRegistration registration_external(TfLiteOperator setter)
@Cast(value="uint64_t") public long inplace_operator()
TfLiteInPlaceOp
.public TfLiteRegistration inplace_operator(long setter)
Copyright © 2025. All rights reserved.