nndeploy C++ API  0.2.0
nndeploy C++ API
op_dequantize_linear.h
Go to the documentation of this file.
1 
2 #ifndef _NNDEPLOY_OP_DEQUANTIZE_LINEAR_H_
3 #define _NNDEPLOY_OP_DEQUANTIZE_LINEAR_H_
4 
5 #include "nndeploy/ir/ir.h"
6 #include "nndeploy/op/op.h"
7 
8 namespace nndeploy {
9 namespace op {
10 
11 class OpDequantizeLinear : public Op {
12  public:
14  virtual ~OpDequantizeLinear() {}
15 
16  virtual base::Status run();
17 
19 
21 
22  private:
23  template <typename T>
24  base::Status dequantizeImpl(device::Tensor* input, device::Tensor* scale,
25  device::Tensor* zero_point, void* output_data,
26  int axis);
27 };
28 
30  device::Tensor* input, device::Tensor* scale, device::Tensor* zero_point,
31  std::shared_ptr<ir::DequantizeLinearParam> param, device::Tensor* output);
32 
33 } // namespace op
34 } // namespace nndeploy
35 
36 #endif
virtual base::Status inferShape()
形状推理
virtual base::Status inferDataType()
类型推理
virtual base::Status run()
Op的基类
Definition: op.h:42
#define NNDEPLOY_CC_API
api
Definition: macro.h:29
base::Status dequantizeLinear(device::Tensor *input, device::Tensor *scale, device::Tensor *zero_point, std::shared_ptr< ir::DequantizeLinearParam > param, device::Tensor *output)