nndeploy C++ API
0.2.0
nndeploy C++ API
framework
include
nndeploy
op
op_reshape.h
Go to the documentation of this file.
1
2
#ifndef _NNDEPLOY_OP_OP_RESHAPE_H_
3
#define _NNDEPLOY_OP_OP_RESHAPE_H_
4
5
#include "
nndeploy/ir/ir.h
"
6
#include "
nndeploy/op/op.h
"
7
8
namespace
nndeploy
{
9
namespace
op {
10
11
class
OpReshape
:
public
Op
{
12
public
:
13
OpReshape
() :
Op
() {
is_inplace_
=
true
; }
14
virtual
~OpReshape
() {}
15
16
virtual
base::Status
inferShape
();
17
18
virtual
base::Status
inferDataFormat
();
19
20
virtual
base::Status
run
();
21
};
22
23
NNDEPLOY_CC_API
base::Status
reshape
(
device::Tensor
*input,
device::Tensor
*
shape
,
24
std::shared_ptr<ir::ReshapeParam> param,
25
device::Tensor
*output);
26
27
}
// namespace op
28
}
// namespace nndeploy
29
30
#endif
nndeploy::base::Status
Definition:
status.h:87
nndeploy::device::Tensor
Tensor类
Definition:
tensor.h:26
nndeploy::op::OpReshape
Definition:
op_reshape.h:11
nndeploy::op::OpReshape::inferDataFormat
virtual base::Status inferDataFormat()
数据格式推理
nndeploy::op::OpReshape::inferShape
virtual base::Status inferShape()
形状推理
nndeploy::op::OpReshape::OpReshape
OpReshape()
Definition:
op_reshape.h:13
nndeploy::op::OpReshape::run
virtual base::Status run()
nndeploy::op::OpReshape::~OpReshape
virtual ~OpReshape()
Definition:
op_reshape.h:14
nndeploy::op::Op
Op的基类
Definition:
op.h:42
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::shape
base::Status shape(device::Tensor *input, std::shared_ptr< ir::ShapeParam > param, device::Tensor *output)
nndeploy::op::reshape
base::Status reshape(device::Tensor *input, device::Tensor *shape, std::shared_ptr< ir::ReshapeParam > param, device::Tensor *output)
nndeploy
Definition:
common.h:10
op.h
Generated by
1.9.1