nndeploy C++ API
0.2.0
nndeploy C++ API
framework
include
nndeploy
op
op_abs.h
Go to the documentation of this file.
1
2
#ifndef _NNDEPLOY_OP_OP_ABS_H_
3
#define _NNDEPLOY_OP_OP_ABS_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
OpAbs
:
public
OpUnary
{
13
public
:
14
OpAbs
() :
OpUnary
() {
is_inplace_
=
false
; }
15
virtual
~OpAbs
() {}
16
17
virtual
base::Status
run
();
18
};
19
20
NNDEPLOY_CC_API
base::Status
abs
(
device::Tensor
*input,
device::Tensor
*output);
21
22
}
// namespace op
23
}
// namespace nndeploy
24
25
#endif
// _NNDEPLOY_OP_OP_ABS_H_
nndeploy::base::Status
Definition:
status.h:87
nndeploy::device::Tensor
Tensorē±»
Definition:
tensor.h:26
nndeploy::op::OpAbs
Definition:
op_abs.h:12
nndeploy::op::OpAbs::~OpAbs
virtual ~OpAbs()
Definition:
op_abs.h:15
nndeploy::op::OpAbs::OpAbs
OpAbs()
Definition:
op_abs.h:14
nndeploy::op::OpAbs::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::abs
base::Status abs(device::Tensor *input, device::Tensor *output)
nndeploy
Definition:
common.h:10
op.h
op_unary.h
Generated by
1.9.1