SMAUG
Simulating Machine Learning Applications on gem5-Aladdin
smv_less_op.h
1 #ifndef _OPERATORS_SMV_SMV_LESS_OP_H_
2 #define _OPERATORS_SMV_SMV_LESS_OP_H_
3 
4 #include "smaug/core/backend.h"
6 #include "smaug/operators/less_op.h"
7 
8 namespace smaug {
9 
11 class SmvLessOp : public LessOp<SmvBackend> {
12  public:
14  void tile() override;
15  void run() override;
16 
17  protected:
18  void runX(TiledTensor& inputs0, TiledTensor& inputs1, TiledTensor& outputs);
19 
20  std::array<TiledTensor, 3> tiledTensors;
21 };
22 
24 class SmvLessEqualOp : public LessEqualOp<SmvBackend> {
25  public:
27  void tile() override;
28  void run() override;
29 
30  protected:
31  void runX(TiledTensor& inputs0, TiledTensor& inputs1, TiledTensor& outputs);
32 
33  std::array<TiledTensor, 3> tiledTensors;
34 };
35 
36 
37 } // namespace smaug
38 
39 #endif
smaug::LessEqualOp
Implements an elementwise less-than-or-equal-to operator.
Definition: backend.h:50
smaug::TiledTensor
A multidimensional container of Tensors.
Definition: tensor.h:552
smaug::SmvLessOp
Elementwise less-than operator on SMV.
Definition: smv_less_op.h:11
smaug::LessOp
Implements an elementwise less-than operator.
Definition: backend.h:49
smaug
The smaug namespace is the parent namespace of all C++ code in SMAUG.
Definition: backend.cpp:38
common.h
Utilities for writing and invoking Aladdin kernels from Operators.
smaug::SmvLessEqualOp
Elementwise less-than-or-equal-to operator on SMV.
Definition: smv_less_op.h:24