SMAUG
Simulating Machine Learning Applications on gem5-Aladdin
Public Member Functions | Protected Attributes | List of all members
smaug::ReluOp< Backend > Class Template Reference

Implements the rectified linear unit operator: max(slope * x, 0). More...

#include <relu_op.h>

Detailed Description

template<typename Backend>
class smaug::ReluOp< Backend >

Implements the rectified linear unit operator: max(slope * x, 0).

Template Parameters
BackendThe Backend specialization of this Operator.

Definition at line 55 of file backend.h.

Public Member Functions

 ReluOp (const std::string &name, Workspace *workspace, float _slope=0)
 
void run () override
 
void setSlope (float _slope)
 
float getSlope () const
 
void run ()
 

Protected Attributes

float slope
 

The documentation for this class was generated from the following files: