1 #ifndef _OPERATORS_GREATER_OP_H_
2 #define _OPERATORS_GREATER_OP_H_
4 #include "smaug/core/backend.h"
5 #include "smaug/core/operator.h"
7 #include "smaug/core/workspace.h"
8 #include "smaug/operators/eltwise_op.h"
17 template <
typename Backend>
18 class GreaterOp :
public EltwiseOp<Backend> {
20 GreaterOp(
const std::string& name, Workspace* workspace)
21 : EltwiseOp<Backend>(name, OpType::Greater, workspace) {}
24 assert(
false &&
"Please implement the run() method for this backend!");
33 template <
typename Backend>
34 class GreaterEqualOp :
public EltwiseOp<Backend> {
36 GreaterEqualOp(
const std::string& name, Workspace* workspace)
37 : EltwiseOp<Backend>(name, OpType::GreaterEqual, workspace) {}
40 assert(
false &&
"Please implement the run() method for this backend!");
44 REGISTER_SPECIAL_OP(GreaterOp, ReferenceBackend);
45 REGISTER_SPECIAL_OP(GreaterEqualOp, ReferenceBackend);