nndeploy C++ API  0.2.0
nndeploy C++ API
default_interpret.h
Go to the documentation of this file.
1 
2 #ifndef _NNDEPLOY_IR_DEFAULT_INTERPRET_H_
3 #define _NNDEPLOY_IR_DEFAULT_INTERPRET_H_
4 
6 #include "nndeploy/ir/ir.h"
7 
8 namespace nndeploy {
9 namespace ir {
10 
12  public:
19  // DefaultInterpret();
20 
26  explicit DefaultInterpret(ModelDesc *model_desc = nullptr,
27  bool is_external = false);
28 
34  virtual ~DefaultInterpret();
35 
37  const std::vector<std::string> &model_value,
38  const std::vector<ValueDesc> &input = std::vector<ValueDesc>());
39 
40  private:
46 #ifdef ENABLE_NNDEPLOY_SAFETENSORS_CPP
47  std::vector<std::shared_ptr<safetensors::safetensors_t>> st_ptr_;
48 #endif
49 };
50 
51 } // namespace ir
52 } // namespace nndeploy
53 
54 #endif /* _NNDEPLOY_IR_DEFAULT_INTERPRET_H_ */
virtual ~DefaultInterpret()
虚析构函数
DefaultInterpret(ModelDesc *model_desc=nullptr, bool is_external=false)
DefaultInterpret类的默认构造函数
virtual base::Status interpret(const std::vector< std::string > &model_value, const std::vector< ValueDesc > &input=std::vector< ValueDesc >())
解释模型
参照onnx的格式,描述模型的结构
Definition: ir.h:109
#define NNDEPLOY_CC_API
api
Definition: macro.h:29