Function TRITONSERVER_ResponseAllocatorNew¶
Defined in File tritonserver.h
Function Documentation¶
-
TRITONSERVER_Error *
TRITONSERVER_ResponseAllocatorNew
(TRITONSERVER_ResponseAllocator **allocator, TRITONSERVER_ResponseAllocatorAllocFn_t alloc_fn, TRITONSERVER_ResponseAllocatorReleaseFn_t release_fn)¶ Create a new response allocator object.
- Return
a TRITONSERVER_Error indicating success or failure.
- Parameters
allocator
: Returns the new response allocator object.alloc_fn
: The function to call to allocate buffers for result tensors.release_fn
: The function to call when the server no longer holds a reference to an allocated buffer.