SMAUG
Simulating Machine Learning Applications on gem5-Aladdin
softmax_op.h
1 #ifndef _OPERATORS_SOFTMAX_OP_H_
2 #define _OPERATORS_SOFTMAX_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 SoftmaxOp : public UnaryOp<Backend> {
19  public:
20  SoftmaxOp(const std::string& name, Workspace* workspace)
21  : UnaryOp<Backend>(name, OpType::Softmax, workspace) {}
22 
23  void run() override {}
24 };
25 
26 REGISTER_SPECIAL_OP(SoftmaxOp, 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