nndeploy C++ API  0.2.0
nndeploy C++ API
op_tanh.h
Go to the documentation of this file.
1 #ifndef _NNDEPLOY_OP_OP_TANH_H_
2 #define _NNDEPLOY_OP_OP_TANH_H_
3 
4 #include "nndeploy/ir/ir.h"
5 #include "nndeploy/op/op.h"
6 #include "nndeploy/op/op_unary.h"
7 
8 namespace nndeploy {
9 namespace op {
10 
11 class OpTanh : public OpUnary {
12  public:
13  OpTanh() : OpUnary() { is_inplace_ = false; }
14  virtual ~OpTanh() {}
15 
16  virtual base::Status run();
17 };
18 
20  device::Tensor *output);
21 
22 } // namespace op
23 } // namespace nndeploy
24 
25 #endif // _NNDEPLOY_OP_OP_TANH_H_
Tensorē±»
Definition: tensor.h:26
virtual base::Status run()
virtual ~OpTanh()
Definition: op_tanh.h:14
bool is_inplace_
Definition: op.h:273
#define NNDEPLOY_CC_API
api
Definition: macro.h:29
base::Status tanh(device::Tensor *input, device::Tensor *output)