NVIDIA DeepStream SDK API Reference

6.4 Release
cvcore::detail::DimToIndex4D< TL > Struct Template Reference

Detailed Description

template<TensorLayout TL>
struct cvcore::detail::DimToIndex4D< TL >

Definition at line 280 of file Tensor.h.

Inheritance diagram for cvcore::detail::DimToIndex4D< TL >:

Static Public Attributes

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)
staticconstexpr

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)
staticconstexpr

Definition at line 285 of file Tensor.h.

◆ kHeight

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

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)
staticconstexpr

Definition at line 283 of file Tensor.h.


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