nndeploy C++ API
0.2.0
nndeploy C++ API
framework
include
nndeploy
op
op_muls.h
Go to the documentation of this file.
1
2
#ifndef _NNDEPLOY_OP_OP_MULS_H_
3
#define _NNDEPLOY_OP_OP_MULS_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
OpMuls
:
public
OpUnary
{
13
public
:
14
OpMuls
() :
OpUnary
() {}
15
virtual
~OpMuls
() {}
16
17
virtual
base::Status
inferDataType
();
18
virtual
base::Status
inferDataFormat
();
19
virtual
base::Status
inferShape
();
20
virtual
base::Status
run
();
21
};
22
23
NNDEPLOY_CC_API
base::Status
muls
(
device::Tensor
*scale,
device::Tensor
*input,
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::OpMuls
Definition:
op_muls.h:12
nndeploy::op::OpMuls::inferShape
virtual base::Status inferShape()
形状推理
nndeploy::op::OpMuls::run
virtual base::Status run()
nndeploy::op::OpMuls::~OpMuls
virtual ~OpMuls()
Definition:
op_muls.h:15
nndeploy::op::OpMuls::inferDataType
virtual base::Status inferDataType()
类型推理
nndeploy::op::OpMuls::OpMuls
OpMuls()
Definition:
op_muls.h:14
nndeploy::op::OpMuls::inferDataFormat
virtual base::Status inferDataFormat()
数据格式推理
nndeploy::op::OpUnary
Definition:
op_unary.h:11
ir.h
NNDEPLOY_CC_API
#define NNDEPLOY_CC_API
api
Definition:
macro.h:29
nndeploy::op::muls
base::Status muls(device::Tensor *scale, device::Tensor *input, device::Tensor *output)
nndeploy
Definition:
common.h:10
op.h
op_unary.h
Generated by
1.9.1