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