public static class TfLiteContext.GetExecutionPlan_TfLiteContext_PointerPointer extends FunctionPointer
*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.Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Modifier | Constructor and Description |
---|---|
protected |
GetExecutionPlan_TfLiteContext_PointerPointer() |
|
GetExecutionPlan_TfLiteContext_PointerPointer(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
call(TfLiteContext context,
PointerPointer execution_plan) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public GetExecutionPlan_TfLiteContext_PointerPointer(Pointer p)
Pointer(Pointer)
.protected GetExecutionPlan_TfLiteContext_PointerPointer()
@Cast(value="TfLiteStatus") public int call(TfLiteContext context, @Cast(value="TfLiteIntArray**") PointerPointer execution_plan)
Copyright © 2025. All rights reserved.