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