nndeploy C++ API  0.2.0
nndeploy C++ API
op_where.h
Go to the documentation of this file.
1 
2 #ifndef _NNDEPLOY_OP_OP_WHERE_H_
3 #define _NNDEPLOY_OP_OP_WHERE_H_
4 
5 #include "nndeploy/ir/ir.h"
6 #include "nndeploy/op/op.h"
7 
8 namespace nndeploy {
9 namespace op {
10 
11 class OpWhere : public Op {
12  public:
13  OpWhere() : Op() {}
14  virtual ~OpWhere() {}
16 
17  virtual base::Status run();
18 };
19 
21  device::Tensor *input1,
22  device::Tensor *input2,
23  device::Tensor *condition,
24  device::Tensor *output);
25 
26 } // namespace op
27 } // namespace nndeploy
28 
29 #endif
virtual ~OpWhere()
Definition: op_where.h:14
virtual base::Status run()
virtual base::Status inferShape()
形状推理
Op的基类
Definition: op.h:42
#define NNDEPLOY_CC_API
api
Definition: macro.h:29
base::Status where(device::Tensor *input1, device::Tensor *input2, device::Tensor *condition, device::Tensor *output)