Function nvcvTensorBatchGetTensors
Defined in File TensorBatch.h
Function Documentation
-
NVCVStatus nvcvTensorBatchGetTensors(NVCVTensorBatchHandle batch, int32_t index, NVCVTensorHandle *outTensors, int32_t numTensors)
Gets handles to a range of tensors in the batch
This function creates new references to the Tensor handles. The caller must release them by calling nvcvTensorDecRef on all handles returned by this function.
- Parameters:
batch – a hadle to the batch object from which the tensors are exracted
index – the index of the first handle to get
outTensors – the array in which the handles are stored; it must have at least numTensors handles
numTensors – the number of tensors to get
- Return values:
NVCV_ERROR_INVALID_ARGUMENT – Some parameter is outside its valid range.
NVCV_ERROR_OVERFLOW – Tried to retrieve more tensors that there are in the batch.
NVCV_SUCCESS – Operation executed successfully.