NVIDIA DeepStream SDK API Reference

6.4 Release
Tensor.h File Reference

Go to the source code of this file.

Data Structures

class  cvcore::TensorBase
 Implementation of TensorBase class. More...
 
struct  cvcore::TensorBase::DimData
 Struct for storing dimension data. More...
 
struct  cvcore::detail::DimToIndex2D< TL >
 
struct  cvcore::detail::DimToIndex3D< TL >
 
struct  cvcore::detail::DimToIndex4D< TL >
 
struct  cvcore::detail::LayoutToIndex< TL, typename >
 
struct  cvcore::detail::LayoutToIndex< TL, typename std::enable_if< TL==LC||TL==CL >::type >
 
struct  cvcore::detail::LayoutToIndex< TL, typename std::enable_if< TL==HWC||TL==CHW >::type >
 
struct  cvcore::detail::LayoutToIndex< TL, typename std::enable_if< TL==DHWC||TL==DCHW||TL==CDHW >::type >
 
struct  cvcore::detail::ChannelTypeToNative< CT >
 
struct  cvcore::detail::ChannelTypeToNative< U8 >
 
struct  cvcore::detail::ChannelTypeToNative< U16 >
 
struct  cvcore::detail::ChannelTypeToNative< S8 >
 
struct  cvcore::detail::ChannelTypeToNative< S16 >
 
struct  cvcore::detail::ChannelTypeToNative< F32 >
 
struct  cvcore::detail::ChannelTypeToNative< F16 >
 
struct  cvcore::detail::ChannelTypeToNative< F64 >
 
class  cvcore::detail::Tensor2D< TL, CT >
 Implementation of 2D tensors. More...
 
class  cvcore::detail::Tensor3D< TL, CT >
 Implementation of 3D tensors. More...
 
class  cvcore::detail::Tensor4D< TL, CT >
 Implementation of 4D tensors. More...
 
class  cvcore::Tensor< TL, CC, CT >
 
class  cvcore::Tensor< LC, CC, CT >
 2D LC tensors. More...
 
class  cvcore::Tensor< CL, CC, CT >
 2D CL tensors. More...
 
class  cvcore::Tensor< HWC, CC, CT >
 3D HWC tensors. More...
 
class  cvcore::Tensor< CHW, CC, CT >
 3D CHW tensors. More...
 
class  cvcore::Tensor< DHWC, CC, CT >
 4D DHWC tensors. More...
 
class  cvcore::Tensor< DCHW, CC, CT >
 4D DCHW tensors. More...
 
class  cvcore::Tensor< CDHW, CC, CT >
 4D CDHW tensors. More...
 

Namespaces

 cvcore
 
 cvcore::detail
 

Typedefs

using cvcore::half = std::uint16_t
 

Enumerations

enum  cvcore::TensorLayout {
  cvcore::LC,
  cvcore::CL,
  cvcore::HWC,
  cvcore::CHW,
  cvcore::DHWC,
  cvcore::NHWC = DHWC,
  cvcore::DCHW,
  cvcore::NCHW = DCHW,
  cvcore::CDHW
}
 An enum. More...
 
enum  cvcore::ChannelCount {
  cvcore::C1,
  cvcore::C2,
  cvcore::C3,
  cvcore::C4,
  cvcore::CX
}
 An enum. More...
 
enum  cvcore::ChannelType {
  cvcore::U8,
  cvcore::U16,
  cvcore::S8,
  cvcore::S16,
  cvcore::F16,
  cvcore::F32,
  cvcore::F64
}
 An enum. More...
 
enum  cvcore::TensorDimension {
  cvcore::TensorDimension::LENGTH,
  cvcore::TensorDimension::HEIGHT,
  cvcore::TensorDimension::WIDTH,
  cvcore::TensorDimension::CHANNEL,
  cvcore::TensorDimension::DEPTH
}
 An enum. More...
 

Functions

std::string cvcore::GetTensorLayoutAsString (TensorLayout TL)
 Function to get name of a TensorLayout value as string. More...
 
std::string cvcore::GetChannelCountAsString (ChannelCount CC)
 Function to get name of a ChannelCount value as string. More...
 
std::string cvcore::GetChannelTypeAsString (ChannelType CT)
 Function to get name of a ChannelType value as string. More...
 
std::string cvcore::GetMemoryTypeAsString (bool isCPU)
 Function to get name of a Memory type used. More...
 
std::size_t cvcore::GetChannelSize (ChannelType CT)
 Function to get element size (in bytes) of a ChannelType. More...
 
template<ChannelCount CC>
constexpr std::size_t cvcore::detail::ChannelToCount ()