Function nvcvConfigSetMaxTensorCount

Function Documentation

NVCVStatus nvcvConfigSetMaxTensorCount(int32_t maxCount)

Set a hard limit on the number of tensor handles that can be created.

The function will preallocate all resources necessary to satisfy creation of a limited number of tensor handles in the future.

Parameters:

maxCount[in] Maximum number of tensor handles that can be created. If negative, switches to dynamic allocation, no hard limit is defined.

  • There must be no tensor handles created and not destroyed.

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

  • NVCV_SUCCESS – Operation executed successfully.