Function nvcv::GetImplicitTensorLayout
Defined in File TensorLayout.hpp
Function Documentation
-
constexpr const TensorLayout &nvcv::GetImplicitTensorLayout(int rank)
Retrieves the default tensor layout based on the rank (number of dimensions).
This function maps commonly used tensor ranks to their typical tensor layouts. For example, a rank of 4 typically corresponds to the NCHW layout (Batch, Channel, Height, Width).
- Parameters:
rank – The rank (number of dimensions) of the tensor.
- Returns:
The corresponding default tensor layout. Returns TENSOR_NONE for unsupported ranks.