nndeploy C++ API
0.2.0
nndeploy C++ API
framework
include
nndeploy
op
op_mat_mul.h
Go to the documentation of this file.
1
2
#ifndef _NNDEPLOY_OP_OP_MAT_MUL_H_
3
#define _NNDEPLOY_OP_OP_MAT_MUL_H_
4
5
#include "
nndeploy/ir/ir.h
"
6
#include "
nndeploy/op/op.h
"
7
8
namespace
nndeploy
{
9
namespace
op {
10
11
class
OpMatMul
:
public
Op
{
12
public
:
13
OpMatMul
() :
Op
() {}
14
virtual
~OpMatMul
() {}
15
16
virtual
base::Status
inferShape
();
17
18
virtual
base::Status
run
();
19
};
20
21
NNDEPLOY_CC_API
base::Status
matmul
(
device::Tensor
*inputs_a,
22
device::Tensor
*inputs_b,
23
std::shared_ptr<ir::MatMulParam> param,
24
device::Tensor
*output);
25
26
NNDEPLOY_CC_API
base::Status
matmul
(
device::Tensor
*inputs_a,
27
device::Tensor
*inputs_b,
28
std::shared_ptr<ir::MatMulParam> param,
29
device::Tensor
*output,
30
device::Tensor
*inputs_bias);
31
32
}
// namespace op
33
}
// namespace nndeploy
34
35
#endif
nndeploy::base::Status
Definition:
status.h:87
nndeploy::device::Tensor
Tensor类
Definition:
tensor.h:26
nndeploy::op::OpMatMul
Definition:
op_mat_mul.h:11
nndeploy::op::OpMatMul::OpMatMul
OpMatMul()
Definition:
op_mat_mul.h:13
nndeploy::op::OpMatMul::inferShape
virtual base::Status inferShape()
形状推理
nndeploy::op::OpMatMul::~OpMatMul
virtual ~OpMatMul()
Definition:
op_mat_mul.h:14
nndeploy::op::OpMatMul::run
virtual base::Status run()
nndeploy::op::Op
Op的基类
Definition:
op.h:42
ir.h
NNDEPLOY_CC_API
#define NNDEPLOY_CC_API
api
Definition:
macro.h:29
nndeploy::op::matmul
base::Status matmul(device::Tensor *inputs_a, device::Tensor *inputs_b, std::shared_ptr< ir::MatMulParam > param, device::Tensor *output)
nndeploy
Definition:
common.h:10
op.h
Generated by
1.9.1