SMAUG
Simulating Machine Learning Applications on gem5-Aladdin
|
1 #ifndef _OPERATORS_SMV_SMV_POOLING_OP_H_
2 #define _OPERATORS_SMV_SMV_POOLING_OP_H_
4 #include "smaug/core/backend.h"
6 #include "smaug/operators/pooling_op.h"
15 extern const int kVectorSize;
17 class TilingOptimizer;
33 std::array<TiledTensor, 2> tiledTensors;
49 :
SmvPoolingOp(name, OpType::AveragePooling, workspace){};
void run() override
Executes the Operator.
Base class for SMV pooling oeprators.
Tiling optimizer for pooling operators on SMV.
Workspace is the container and owner of all Tensors and Operators in the Network.
A multidimensional container of Tensors.
void run() override
Executes the Operator.
Max-pooling operator on SMV.
Average pooling operator on SMV.
std::vector< TensorBase * > outputs
An ordered list of output tensors produced by this operator.
void run() override
Executes the Operator.
The smaug namespace is the parent namespace of all C++ code in SMAUG.
Utilities for writing and invoking Aladdin kernels from Operators.
Implements a pooling operator.
std::vector< TensorBase * > inputs
An ordered list of input tensors consumed by this operator.