Function nvcvTensorLayoutStartsWith

Function Documentation

static inline int32_t nvcvTensorLayoutStartsWith(NVCVTensorLayout layout, NVCVTensorLayout test)

Returns whether the layout starts with a given test layout.

If test layout is empty, it’s always considered to be found at the start.

Parameters:
  • layout[in] Layout to be queried

  • test[in] Layout to be found

Returns:

!=0 if found. 0 otherwise.