nndeploy C++ API  0.2.0
nndeploy C++ API
Public Member Functions | Public Attributes | List of all members
nndeploy::ir::ValueDesc Class Reference

参照onnx的格式,描述模型或者算子输入输出 More...

#include <ir.h>

Collaboration diagram for nndeploy::ir::ValueDesc:
[legend]

Public Member Functions

base::Status deserialize (rapidjson::Value &json)
 
base::Status serialize (rapidjson::Value &json, rapidjson::Document::AllocatorType &allocator)
 
 ValueDesc ()
 
 ValueDesc (const std::string &name)
 
 ValueDesc (const std::string &name, base::DataType data_type)
 
 ValueDesc (const std::string &name, base::DataType data_type, base::IntVector shape)
 
virtual ~ValueDesc ()
 

Public Attributes

base::DataType data_type_
 
std::string name_
 
base::IntVector shape_
 

Detailed Description

参照onnx的格式,描述模型或者算子输入输出

Definition at line 80 of file ir.h.

Constructor & Destructor Documentation

◆ ValueDesc() [1/4]

nndeploy::ir::ValueDesc::ValueDesc ( )

◆ ValueDesc() [2/4]

nndeploy::ir::ValueDesc::ValueDesc ( const std::string &  name)

◆ ValueDesc() [3/4]

nndeploy::ir::ValueDesc::ValueDesc ( const std::string &  name,
base::DataType  data_type 
)

◆ ValueDesc() [4/4]

nndeploy::ir::ValueDesc::ValueDesc ( const std::string &  name,
base::DataType  data_type,
base::IntVector  shape 
)

◆ ~ValueDesc()

virtual nndeploy::ir::ValueDesc::~ValueDesc ( )
virtual

Member Function Documentation

◆ deserialize()

base::Status nndeploy::ir::ValueDesc::deserialize ( rapidjson::Value &  json)

◆ serialize()

base::Status nndeploy::ir::ValueDesc::serialize ( rapidjson::Value &  json,
rapidjson::Document::AllocatorType &  allocator 
)

Member Data Documentation

◆ data_type_

base::DataType nndeploy::ir::ValueDesc::data_type_

Definition at line 100 of file ir.h.

◆ name_

std::string nndeploy::ir::ValueDesc::name_

Definition at line 98 of file ir.h.

◆ shape_

base::IntVector nndeploy::ir::ValueDesc::shape_

Definition at line 102 of file ir.h.


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