SMAUG
Simulating Machine Learning Applications on gem5-Aladdin
smv_eltwise_add_op.h
1 #ifndef _OPERATORS_SMV_SMV_ELTWISE_ADD_OP_H_
2 #define _OPERATORS_SMV_SMV_ELTWISE_ADD_OP_H_
3 
4 #include "smaug/core/backend.h"
6 #include "smaug/operators/eltwise_add_op.h"
7 
8 namespace smaug {
9 
11 class SmvEltwiseAddOp : public EltwiseAddOp<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 
23 
24 } // namespace smaug
25 
26 #endif
smaug::EltwiseAddOp
Adds two Tensors elementwise.
Definition: backend.h:47
smaug::TiledTensor
A multidimensional container of Tensors.
Definition: tensor.h:552
smaug::SmvEltwiseAddOp
Elementwise addition on SMV.
Definition: smv_eltwise_add_op.h:11
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.