1 #ifndef _OPERATORS_LESS_OP_H_
2 #define _OPERATORS_LESS_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"
18 template <
typename Backend>
19 class LessOp :
public EltwiseOp<Backend> {
21 LessOp(
const std::string& name, Workspace* workspace)
22 : EltwiseOp<Backend>(name, OpType::Less, workspace) {}
25 assert(
false &&
"Please implement the run() method for this backend!");
35 template <
typename Backend>
36 class LessEqualOp :
public EltwiseOp<Backend> {
38 LessEqualOp(
const std::string& name, Workspace* workspace)
39 : EltwiseOp<Backend>(name, OpType::LessEqual, workspace) {}
42 assert(
false &&
"Please implement the run() method for this backend!");
46 REGISTER_SPECIAL_OP(LessOp, ReferenceBackend);
47 REGISTER_SPECIAL_OP(LessEqualOp, ReferenceBackend);