SMAUG
Simulating Machine Learning Applications on gem5-Aladdin
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
b
c
d
f
g
i
k
m
n
q
r
s
t
u
v
w
Functions
b
c
d
f
g
i
m
q
r
s
v
w
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
Functions
a
c
d
e
f
g
i
j
m
o
p
r
s
t
u
v
w
Variables
a
c
d
e
f
g
h
i
l
n
o
p
r
s
t
u
v
w
Typedefs
Enumerations
Enumerator
Related Functions
Files
File List
File Members
All
Functions
Typedefs
Enumerations
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Modules
Pages
smaug
operators
smv
smv_relu_op.h
1
#ifndef _OPERATORS_SMV_SMV_RELU_OP_H_
2
#define _OPERATORS_SMV_SMV_RELU_OP_H_
3
4
#include "smaug/core/backend.h"
5
#include "
smaug/operators/common.h
"
6
#include "smaug/operators/relu_op.h"
7
#include "smaug/operators/smv/smv_unary_op_common.h"
8
9
namespace
smaug
{
10
12
class
SmvReluOp
:
public
ReluOp
<SmvBackend> {
13
public
:
14
using
ReluOp<SmvBackend>::ReluOp
;
15
void
tile()
override
{ tiledTensors = smv::unary::doTiling(
this
,
false
); }
16
void
run()
override
{ smv::unary::run(
this
, tiledTensors); };
17
18
protected
:
19
std::array<TiledTensor, 2> tiledTensors;
20
};
21
22
}
// namespace smaug
23
24
#endif
smaug::SmvReluOp
Rectified linear-unit operator on SMV.
Definition:
smv_relu_op.h:12
smaug::ReluOp
Implements the rectified linear unit operator: max(slope * x, 0).
Definition:
backend.h:55
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.
Generated by
1.8.18