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

#include <params.h>

Inheritance diagram for nndeploy::preprocess::DynamicShapeParam:
[legend]
Collaboration diagram for nndeploy::preprocess::DynamicShapeParam:
[legend]

Public Member Functions

virtual base::Status deserialize (rapidjson::Value &json) override
 
 DynamicShapeParam ()
 
virtual base::Status serialize (rapidjson::Value &json, rapidjson::Document::AllocatorType &allocator) override
 
virtual ~DynamicShapeParam ()
 
- Public Member Functions inherited from nndeploy::base::Param
base::Status addDropdownParam (const std::string &dropdown_param, const std::vector< std::string > &dropdown_values)
 
base::Status addIoParam (const std::string &io_param)
 
base::Status addRequiredParam (const std::string &required_param)
 
base::Status addUiParam (const std::string &ui_param)
 
base::Status clearDropdownParams ()
 
base::Status clearIoParams ()
 
base::Status clearRequiredParams ()
 
base::Status clearUiParams ()
 
virtual base::Status deserialize (const std::string &json_str)
 
virtual base::Status get (const std::string &key, base::Any &any)
 
std::map< std::string, std::vector< std::string > > getDropdownParams ()
 
std::vector< std::string > getIoParams ()
 
std::vector< std::string > getRequiredParams ()
 
std::vector< std::string > getUiParams ()
 
virtual base::Status loadFile (const std::string &path)
 
 Param ()
 
base::Status removeDropdownParam (const std::string &dropdown_param)
 
base::Status removeIoParam (const std::string &io_param)
 
base::Status removeRequiredParam (const std::string &required_param)
 
base::Status removeUiParam (const std::string &ui_param)
 
virtual base::Status saveFile (const std::string &path)
 
virtual std::string serialize ()
 
virtual base::Status set (const std::string &key, base::Any &any)
 
base::Status setDropdownParams (const std::map< std::string, std::vector< std::string >> &dropdown_params)
 
base::Status setIoParams (const std::vector< std::string > &io_params)
 
base::Status setRequiredParams (const std::vector< std::string > &required_params)
 
base::Status setUiParams (const std::vector< std::string > &ui_params)
 
virtual ~Param ()
 

Public Attributes

int h_align_ = 1
 
bool is_power_of_n_ = false
 
base::IntVector max_shape_
 
base::IntVector min_shape_
 
int n_ = 2
 
base::IntVector opt_shape_
 
int w_align_ = 1
 
- Public Attributes inherited from nndeploy::base::Param
std::map< std::string, std::vector< std::string > > dropdown_params_
 
std::vector< std::string > io_params_
 
std::vector< std::string > required_params_
 
std::vector< std::string > ui_params_
 

Detailed Description

Definition at line 250 of file params.h.

Constructor & Destructor Documentation

◆ DynamicShapeParam()

nndeploy::preprocess::DynamicShapeParam::DynamicShapeParam ( )
inline

Definition at line 252 of file params.h.

◆ ~DynamicShapeParam()

virtual nndeploy::preprocess::DynamicShapeParam::~DynamicShapeParam ( )
inlinevirtual

Definition at line 253 of file params.h.

Member Function Documentation

◆ deserialize()

virtual base::Status nndeploy::preprocess::DynamicShapeParam::deserialize ( rapidjson::Value &  json)
inlineoverridevirtual

Reimplemented from nndeploy::base::Param.

Definition at line 299 of file params.h.

Here is the call graph for this function:

◆ serialize()

virtual base::Status nndeploy::preprocess::DynamicShapeParam::serialize ( rapidjson::Value &  json,
rapidjson::Document::AllocatorType &  allocator 
)
inlineoverridevirtual

Reimplemented from nndeploy::base::Param.

Definition at line 264 of file params.h.

Here is the call graph for this function:

Member Data Documentation

◆ h_align_

int nndeploy::preprocess::DynamicShapeParam::h_align_ = 1

Definition at line 258 of file params.h.

◆ is_power_of_n_

bool nndeploy::preprocess::DynamicShapeParam::is_power_of_n_ = false

Definition at line 255 of file params.h.

◆ max_shape_

base::IntVector nndeploy::preprocess::DynamicShapeParam::max_shape_

Definition at line 261 of file params.h.

◆ min_shape_

base::IntVector nndeploy::preprocess::DynamicShapeParam::min_shape_

Definition at line 259 of file params.h.

◆ n_

int nndeploy::preprocess::DynamicShapeParam::n_ = 2

Definition at line 256 of file params.h.

◆ opt_shape_

base::IntVector nndeploy::preprocess::DynamicShapeParam::opt_shape_

Definition at line 260 of file params.h.

◆ w_align_

int nndeploy::preprocess::DynamicShapeParam::w_align_ = 1

Definition at line 257 of file params.h.


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