nndeploy C++ API  0.2.0
nndeploy C++ API
op_reduce_mean.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2025
3  * All rights reserved.
4  */
5 #ifndef _NNDEPLOY_OP_OP_REDUCE_MEAN_H_
6 #define _NNDEPLOY_OP_OP_REDUCE_MEAN_H_
7 
8 #include "nndeploy/ir/ir.h"
9 #include "nndeploy/op/op.h"
10 
11 namespace nndeploy {
12 namespace op {
13 
14 class OpReduceMean : public Op {
15  public:
16  OpReduceMean() : Op() {}
17  virtual ~OpReduceMean() {}
18 
20  virtual base::Status run();
21 };
22 
24  device::Tensor* axes,
25  std::shared_ptr<ir::ReduceMeanParam> param,
26  device::Tensor* output);
27 
28 } // namespace op
29 } // namespace nndeploy
30 
31 #endif // _NNDEPLOY_OP_OP_REDUCE_MEAN_H_
32 
virtual base::Status run()
virtual base::Status inferShape()
形状推理
Op的基类
Definition: op.h:42
#define NNDEPLOY_CC_API
api
Definition: macro.h:29
base::Status reduceMean(device::Tensor *input, device::Tensor *axes, std::shared_ptr< ir::ReduceMeanParam > param, device::Tensor *output)