Function nvcvTensorGetAllocator
Defined in File Tensor.h
Function Documentation
-
NVCVStatus nvcvTensorGetAllocator(NVCVTensorHandle handle, NVCVAllocatorHandle *alloc)
Get the allocator associated with the tensor.
This function creates a new reference to the allocator handle. The caller is responsible for freeing it by calling nvcvAllocatorDecRef.
- Parameters:
handle – [in] Tensor to be queried.
Must not be NULL.
alloc – [out] Where the allocator handle will be written to.
Must not be NULL.
- Return values:
NVCV_ERROR_INVALID_ARGUMENT – Some parameter is outside its valid range.
NVCV_SUCCESS – Operation executed successfully.