Function nvcvTensorShapePermute
Defined in File TensorShape.h
Function Documentation
-
NVCVStatus nvcvTensorShapePermute(NVCVTensorLayout srcLayout, const int64_t *srcShape, NVCVTensorLayout dstLayout, int64_t *dstShape)
Permute the input shape with given layout to a different layout.
- Parameters:
srcLayout – [in] The layout of the source shape.
srcShape – [in] The shape to be permuted.
Must not be NULL.
Number of dimensions must be equal to dimensions in
srcLayout
dstLayout – [in] The layout of the destination shape.
dstShape – [out] Where the permutation will be written to.
Must not be NULL.
Number of dimensions must be equal to dimensions in
dstLayout
- Return values:
NVCV_ERROR_INVALID_ARGUMENT – Some parameter is outside its valid range.
NVCV_SUCCESS – Operation executed successfully.