Function nvcvTensorBatchDecRef
Defined in File TensorBatch.h
Function Documentation
-
NVCVStatus nvcvTensorBatchDecRef(NVCVTensorBatchHandle handle, int32_t *newRefCount)
Decrements the reference count of an existing TensorBatch instance.
The Tensor batch is destroyed when its reference count reaches zero.
- Parameters:
handle – [in] Tensor batch to be destroyed. If NULL, no operation is performed, successfully.
The handle must have been created with any of the nvcvTensorBatchXXXConstruct functions.
newRefCount – [out] The decremented reference count. If the return value is 0, the object was destroyed. Can be NULL, if the caller isn’t interested in the new reference count.
- Return values:
NVCV_ERROR_INVALID_ARGUMENT – The handle is invalid
NVCV_SUCCESS – Operation executed successfully.