Function nvcvTensorBatchPopulate

Function Documentation

NVCVStatus nvcvTensorBatchPopulate(NVCVTensorBatchHandle batch, int32_t numTensors, const int64_t **shapes, const int64_t **strides, int32_t tensorAlignment)

Allocates multiple tensors and adds them to a TensorBatch

This function allocates the storage for multiple tensors, creates the tensors and puts them in the batch.

Parameters:
  • batch – a handle to the batch object to which the new tensors will be added

  • numTensors – the number of tensors to add

  • shapes – the shapes of the tensors to be added

  • strides – the strides of the tensors to be added; if NULL, the tensors are densely packed

  • tensorAlignment – the alignment, in bytes, of the base pointer of each tensor in the batch