nndeploy C++ API  0.2.0
nndeploy C++ API
Public Member Functions | Public Attributes | List of all members
nndeploy::device::TensorDesc Struct Reference

TensorDesc. More...

#include <type.h>

Collaboration diagram for nndeploy::device::TensorDesc:
[legend]

Public Member Functions

base::Status deserialize (const std::string &bin_str)
 
bool operator!= (const TensorDesc &other) const
 
TensorDescoperator= (const TensorDesc &desc)
 
TensorDescoperator= (TensorDesc &&desc) noexcept
 
bool operator== (const TensorDesc &other) const
 
void print (std::ostream &stream=std::cout) const
 
base::Status serialize (std::string &bin_str)
 
 TensorDesc ()
 
 TensorDesc (base::DataType data_type, base::DataFormat format, const base::IntVector &shape)
 
 TensorDesc (base::DataType data_type, base::DataFormat format, const base::IntVector &shape, const base::SizeVector &stride)
 
 TensorDesc (const TensorDesc &desc)
 
 TensorDesc (TensorDesc &&desc) noexcept
 
virtual ~TensorDesc ()
 

Public Attributes

base::DataFormat data_format_ = base::kDataFormatNotSupport
 
base::DataType data_type_ = base::dataTypeOf<float>()
 
base::IntVector shape_
 
base::SizeVector stride_
 

Detailed Description

TensorDesc.

Definition at line 87 of file type.h.

Constructor & Destructor Documentation

◆ TensorDesc() [1/5]

nndeploy::device::TensorDesc::TensorDesc ( )

◆ TensorDesc() [2/5]

nndeploy::device::TensorDesc::TensorDesc ( base::DataType  data_type,
base::DataFormat  format,
const base::IntVector shape 
)
explicit

◆ TensorDesc() [3/5]

nndeploy::device::TensorDesc::TensorDesc ( base::DataType  data_type,
base::DataFormat  format,
const base::IntVector shape,
const base::SizeVector stride 
)
explicit

◆ TensorDesc() [4/5]

nndeploy::device::TensorDesc::TensorDesc ( const TensorDesc desc)

◆ TensorDesc() [5/5]

nndeploy::device::TensorDesc::TensorDesc ( TensorDesc &&  desc)
noexcept

◆ ~TensorDesc()

virtual nndeploy::device::TensorDesc::~TensorDesc ( )
virtual

Member Function Documentation

◆ deserialize()

base::Status nndeploy::device::TensorDesc::deserialize ( const std::string &  bin_str)

◆ operator!=()

bool nndeploy::device::TensorDesc::operator!= ( const TensorDesc other) const

◆ operator=() [1/2]

TensorDesc& nndeploy::device::TensorDesc::operator= ( const TensorDesc desc)

◆ operator=() [2/2]

TensorDesc& nndeploy::device::TensorDesc::operator= ( TensorDesc &&  desc)
noexcept

◆ operator==()

bool nndeploy::device::TensorDesc::operator== ( const TensorDesc other) const

◆ print()

void nndeploy::device::TensorDesc::print ( std::ostream &  stream = std::cout) const

◆ serialize()

base::Status nndeploy::device::TensorDesc::serialize ( std::string &  bin_str)

Member Data Documentation

◆ data_format_

base::DataFormat nndeploy::device::TensorDesc::data_format_ = base::kDataFormatNotSupport

Definition at line 112 of file type.h.

◆ data_type_

base::DataType nndeploy::device::TensorDesc::data_type_ = base::dataTypeOf<float>()

Definition at line 111 of file type.h.

◆ shape_

base::IntVector nndeploy::device::TensorDesc::shape_

Definition at line 113 of file type.h.

◆ stride_

base::SizeVector nndeploy::device::TensorDesc::stride_

Definition at line 114 of file type.h.


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