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