Function nvcvTensorLayoutFindDimIndex

Function Documentation

static inline int32_t nvcvTensorLayoutFindDimIndex(NVCVTensorLayout layout, char dimLabel, int idxStart)

Returns the index of the dimension in the layout given its label.

Parameters:
  • layout[in] Layout where the label is to be searched.

  • dimLabel[in] Label of the dimension to be queried

  • idxStart[in] Index to start searching.

Returns:

Index of the dimension in the layout, or -1 if not found.