SMAUG
Simulating Machine Learning Applications on gem5-Aladdin
sigmoid_op.h
1 #ifndef _OPERATORS_SIGMOID_OP_H_
2 #define _OPERATORS_SIGMOID_OP_H_
3 
4 #include <string>
5 
6 #include "smaug/core/backend.h"
7 #include "smaug/operators/unary_op.h"
8 
9 namespace smaug {
10 
17 template <typename Backend>
18 class SigmoidOp : public UnaryOp<Backend> {
19  public:
20  SigmoidOp(const std::string& name, Workspace* workspace)
21  : UnaryOp<Backend>(name, OpType::Sigmoid, workspace) {}
22 
23  void run() override {}
24 };
25 
26 REGISTER_SPECIAL_OP(SigmoidOp, ReferenceBackend);
27 
28 } // namespace smaug
29 
30 #endif
smaug
The smaug namespace is the parent namespace of all C++ code in SMAUG.
Definition: backend.cpp:38