Function nvcvTensorIncRef

Function Documentation

NVCVStatus nvcvTensorIncRef(NVCVTensorHandle handle, int *newRefCount)

Increments the reference count of an tensor.

Parameters:
  • handle[in] Tensor to be retained.

  • newRefCount[out] The incremented reference count. 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.