@Properties(inherit=tritonserver.class) public class TRITONSERVER_ResponseAllocatorAllocFn_t extends FunctionPointer
Type for allocation function that allocates a buffer to hold an output tensor.
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Modifier | Constructor and Description |
---|---|
protected |
TRITONSERVER_ResponseAllocatorAllocFn_t() |
|
TRITONSERVER_ResponseAllocatorAllocFn_t(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
TRITONSERVER_Error |
call(TRITONSERVER_ResponseAllocator allocator,
String tensor_name,
long byte_size,
int memory_type,
long memory_type_id,
Pointer userp,
PointerPointer buffer,
PointerPointer buffer_userp,
IntPointer actual_memory_type,
LongPointer actual_memory_type_id) |
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 TRITONSERVER_ResponseAllocatorAllocFn_t(Pointer p)
Pointer(Pointer)
.protected TRITONSERVER_ResponseAllocatorAllocFn_t()
public TRITONSERVER_Error call(TRITONSERVER_ResponseAllocator allocator, String tensor_name, @Cast(value="size_t") long byte_size, @Cast(value="TRITONSERVER_MemoryType") int memory_type, @Cast(value="int64_t") long memory_type_id, Pointer userp, @Cast(value="void**") PointerPointer buffer, @Cast(value="void**") PointerPointer buffer_userp, @Cast(value="TRITONSERVER_MemoryType*") IntPointer actual_memory_type, @Cast(value="int64_t*") LongPointer actual_memory_type_id)
Copyright © 2024. All rights reserved.