nndeploy C++ API
0.2.0
nndeploy C++ API
framework
include
nndeploy
op
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
23
NNDEPLOY_CC_API
base::Status
neg
(
device::Tensor
* input,
device::Tensor
* output);
24
25
}
// namespace op
26
}
// namespace nndeploy
27
28
#endif
// _NNDEPLOY_OP_OP_NEG_H_
29
nndeploy::base::Status
Definition:
status.h:87
nndeploy::device::Tensor
Tensorē±»
Definition:
tensor.h:26
nndeploy::op::OpNeg
Definition:
op_neg.h:15
nndeploy::op::OpNeg::OpNeg
OpNeg()
Definition:
op_neg.h:17
nndeploy::op::OpNeg::~OpNeg
virtual ~OpNeg()
Definition:
op_neg.h:18
nndeploy::op::OpNeg::run
virtual base::Status run()
nndeploy::op::OpUnary
Definition:
op_unary.h:11
nndeploy::op::Op::is_inplace_
bool is_inplace_
Definition:
op.h:273
ir.h
NNDEPLOY_CC_API
#define NNDEPLOY_CC_API
api
Definition:
macro.h:29
nndeploy::op::neg
base::Status neg(device::Tensor *input, device::Tensor *output)
nndeploy
Definition:
common.h:10
op.h
op_unary.h
Generated by
1.9.1