@Properties(inherit=tensorflowlite.class) public class TfLiteDelegate extends Pointer
Modifier and Type | Class and Description |
---|---|
static class |
TfLiteDelegate.CopyFromBufferHandle_TfLiteContext_TfLiteDelegate_int_TfLiteTensor
Copy the data from delegate buffer handle into raw memory of the given
tensor . |
static class |
TfLiteDelegate.CopyToBufferHandle_TfLiteContext_TfLiteDelegate_int_TfLiteTensor
Copy the data from raw memory of the given
tensor to delegate buffer
handle. |
static class |
TfLiteDelegate.FreeBufferHandle_TfLiteContext_TfLiteDelegate_IntPointer
Free the Delegate Buffer Handle.
|
static class |
TfLiteDelegate.Prepare_TfLiteContext_TfLiteDelegate
Invoked by
ModifyGraphWithDelegate . |
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
TfLiteDelegate()
Default native constructor.
|
TfLiteDelegate(long size)
Native array allocator.
|
TfLiteDelegate(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 TfLiteDelegate()
public TfLiteDelegate(long size)
Pointer.position(long)
.public TfLiteDelegate(Pointer p)
Pointer(Pointer)
.public TfLiteDelegate position(long position)
public TfLiteDelegate getPointer(long i)
getPointer
in class Pointer
public Pointer data_()
public TfLiteDelegate data_(Pointer setter)
public TfLiteDelegate.Prepare_TfLiteContext_TfLiteDelegate Prepare()
public TfLiteDelegate Prepare(TfLiteDelegate.Prepare_TfLiteContext_TfLiteDelegate setter)
public TfLiteDelegate.CopyFromBufferHandle_TfLiteContext_TfLiteDelegate_int_TfLiteTensor CopyFromBufferHandle()
public TfLiteDelegate CopyFromBufferHandle(TfLiteDelegate.CopyFromBufferHandle_TfLiteContext_TfLiteDelegate_int_TfLiteTensor setter)
public TfLiteDelegate.CopyToBufferHandle_TfLiteContext_TfLiteDelegate_int_TfLiteTensor CopyToBufferHandle()
public TfLiteDelegate CopyToBufferHandle(TfLiteDelegate.CopyToBufferHandle_TfLiteContext_TfLiteDelegate_int_TfLiteTensor setter)
public TfLiteDelegate.FreeBufferHandle_TfLiteContext_TfLiteDelegate_IntPointer FreeBufferHandle()
public TfLiteDelegate FreeBufferHandle(TfLiteDelegate.FreeBufferHandle_TfLiteContext_TfLiteDelegate_IntPointer setter)
@Cast(value="int64_t") public long flags()
TfLiteDelegateFlags
.public TfLiteDelegate flags(long setter)
public TfLiteOpaqueDelegateBuilder opaque_delegate_builder()
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.public TfLiteDelegate opaque_delegate_builder(TfLiteOpaqueDelegateBuilder setter)
Copyright © 2025. All rights reserved.