SMAUG
Simulating Machine Learning Applications on gem5-Aladdin
fused_activation_op.h
1 #ifndef _OPERATORS_FUSED_ACTIVATION_OP_H_
2 #define _OPERATORS_FUSED_ACTIVATION_OP_H_
3 
4 #include <string>
5 
6 #include "smaug/core/operator.h"
8 #include "smaug/core/workspace.h"
9 
10 namespace smaug {
11 
20 class FusedActivationOp : public Operator {
21  public:
22  FusedActivationOp(const std::string& name,
23  OpType opType,
24  Workspace* workspace)
25  : Operator(name, opType, workspace) {}
26 
27  void setActivation(ActivationInfo _actInfo) { actInfo = _actInfo; }
28 
29  ActivationInfo getActivation() const { return actInfo; }
30 
31  protected:
32  ActivationInfo actInfo;
33 };
34 
35 } // namespace smaug
36 
37 #endif
ActivationInfo
Specifies an activation function and relevant parameters.
Definition: common.h:210
smaug::Workspace
Workspace is the container and owner of all Tensors and Operators in the Network.
Definition: workspace.h:17
tensor_utils.h
Utility functions for copying/printing/tiling tensors.
smaug::Operator
Operator is the base class for all graph operators supported by SMAUG.
Definition: operator.h:28
smaug
The smaug namespace is the parent namespace of all C++ code in SMAUG.
Definition: backend.cpp:38
smaug::FusedActivationOp
An Operator fused with an activation function.
Definition: fused_activation_op.h:20