NVIDIA DeepStream SDK API Reference

6.4 Release
cvcore::detail::LayoutToIndex< TL, typename std::enable_if< TL==DHWC||TL==DCHW||TL==CDHW >::type > Struct Template Reference

Detailed Description

template<TensorLayout TL>
struct cvcore::detail::LayoutToIndex< TL, typename std::enable_if< TL==DHWC||TL==DCHW||TL==CDHW >::type >

Definition at line 307 of file Tensor.h.

Inheritance diagram for cvcore::detail::LayoutToIndex< TL, typename std::enable_if< TL==DHWC||TL==DCHW||TL==CDHW >::type >:
Collaboration diagram for cvcore::detail::LayoutToIndex< TL, typename std::enable_if< TL==DHWC||TL==DCHW||TL==CDHW >::type >:

Static Public Attributes

static constexpr int kDimCount = 4
 
static constexpr int kWidth = TL == DHWC ? 2 : (TL == DCHW ? 3 : 3)
 
static constexpr int kHeight = TL == DHWC ? 1 : (TL == DCHW ? 2 : 2)
 
static constexpr int kDepth = TL == DHWC ? 0 : (TL == DCHW ? 0 : 1)
 
static constexpr int kChannel = TL == DHWC ? 3 : (TL == DCHW ? 1 : 0)
 

Field Documentation

◆ kChannel

template<TensorLayout TL>
constexpr int cvcore::detail::DimToIndex4D< TL >::kChannel = TL == DHWC ? 3 : (TL == DCHW ? 1 : 0)
staticconstexprinherited

Definition at line 286 of file Tensor.h.

◆ kDepth

template<TensorLayout TL>
constexpr int cvcore::detail::DimToIndex4D< TL >::kDepth = TL == DHWC ? 0 : (TL == DCHW ? 0 : 1)
staticconstexprinherited

Definition at line 285 of file Tensor.h.

◆ kDimCount

template<TensorLayout TL>
constexpr int cvcore::detail::LayoutToIndex< TL, typename std::enable_if< TL==DHWC||TL==DCHW||TL==CDHW >::type >::kDimCount = 4
staticconstexpr

Definition at line 310 of file Tensor.h.

◆ kHeight

template<TensorLayout TL>
constexpr int cvcore::detail::DimToIndex4D< TL >::kHeight = TL == DHWC ? 1 : (TL == DCHW ? 2 : 2)
staticconstexprinherited

Definition at line 284 of file Tensor.h.

◆ kWidth

template<TensorLayout TL>
constexpr int cvcore::detail::DimToIndex4D< TL >::kWidth = TL == DHWC ? 2 : (TL == DCHW ? 3 : 3)
staticconstexprinherited

Definition at line 283 of file Tensor.h.


The documentation for this struct was generated from the following file: