Function nvcvTensorBatchCalcRequirements

Function Documentation

NVCVStatus nvcvTensorBatchCalcRequirements(int32_t capacity, NVCVTensorBatchRequirements *reqs)

Calculates the resource requirements needed to create a tensor batch.

Parameters:
  • capacity[in] Maximum number of images that fits in the image batch.

    • Must be >= 1.

  • reqs[out] Where the image batch requirements will be written to.

    • Must not be NULL.

Return values:
  • NVCV_ERROR_INVALID_ARGUMENT – Some parameter is outside valid range.

  • NVCV_SUCCESS – Operation executed successfully.