SMAUG
Simulating Machine Learning Applications on gem5-Aladdin
smaug
operators
smv
smv_eltwise_mul_op.h
1
#ifndef _OPERATORS_SMV_SMV_ELTWISE_MUL_OP_H_
2
#define _OPERATORS_SMV_SMV_ELTWISE_MUL_OP_H_
3
4
#include "smaug/core/backend.h"
5
#include "
smaug/operators/common.h
"
6
#include "smaug/operators/eltwise_mul_op.h"
7
8
namespace
smaug
{
9
11
class
SmvEltwiseMulOp
:
public
EltwiseMulOp
<SmvBackend> {
12
public
:
13
using
EltwiseMulOp<SmvBackend>::EltwiseMulOp
;
14
void
tile()
override
;
15
void
run()
override
;
16
17
protected
:
18
void
runX(
TiledTensor
& inputs0,
TiledTensor
& inputs1,
TiledTensor
& outputs);
19
20
std::array<TiledTensor, 3> tiledTensors;
21
};
22
23
24
}
// namespace smaug
25
26
#endif
smaug::SmvEltwiseMulOp
Elementwise multiplication on SMV.
Definition:
smv_eltwise_mul_op.h:11
smaug::TiledTensor
A multidimensional container of Tensors.
Definition:
tensor.h:552
smaug
The smaug namespace is the parent namespace of all C++ code in SMAUG.
Definition:
backend.cpp:38
common.h
Utilities for writing and invoking Aladdin kernels from Operators.
smaug::EltwiseMulOp
Multiplies two Tensors elementwise.
Definition:
backend.h:48
Generated by
1.8.18