nndeploy C++ API
0.2.0
nndeploy C++ API
framework
include
nndeploy
op
op_where.h
Go to the documentation of this file.
1
2
#ifndef _NNDEPLOY_OP_OP_WHERE_H_
3
#define _NNDEPLOY_OP_OP_WHERE_H_
4
5
#include "
nndeploy/ir/ir.h
"
6
#include "
nndeploy/op/op.h
"
7
8
namespace
nndeploy
{
9
namespace
op {
10
11
class
OpWhere
:
public
Op
{
12
public
:
13
OpWhere
() :
Op
() {}
14
virtual
~OpWhere
() {}
15
virtual
base::Status
inferShape
();
16
17
virtual
base::Status
run
();
18
};
19
20
NNDEPLOY_CC_API
base::Status
where
(
21
device::Tensor
*input1,
22
device::Tensor
*input2,
23
device::Tensor
*condition,
24
device::Tensor
*output);
25
26
}
// namespace op
27
}
// namespace nndeploy
28
29
#endif
nndeploy::base::Status
Definition:
status.h:87
nndeploy::device::Tensor
Tensor类
Definition:
tensor.h:26
nndeploy::op::OpWhere
Definition:
op_where.h:11
nndeploy::op::OpWhere::~OpWhere
virtual ~OpWhere()
Definition:
op_where.h:14
nndeploy::op::OpWhere::OpWhere
OpWhere()
Definition:
op_where.h:13
nndeploy::op::OpWhere::run
virtual base::Status run()
nndeploy::op::OpWhere::inferShape
virtual base::Status inferShape()
形状推理
nndeploy::op::Op
Op的基类
Definition:
op.h:42
ir.h
NNDEPLOY_CC_API
#define NNDEPLOY_CC_API
api
Definition:
macro.h:29
nndeploy::op::where
base::Status where(device::Tensor *input1, device::Tensor *input2, device::Tensor *condition, device::Tensor *output)
nndeploy
Definition:
common.h:10
op.h
Generated by
1.9.1