SMAUG
Simulating Machine Learning Applications on gem5-Aladdin
|
1 #ifndef _OPERATORS_SMV_SMV_TILING_BASE_H_
2 #define _OPERATORS_SMV_SMV_TILING_BASE_H_
4 #include "smaug/core/backend.h"
5 #include "smaug/core/tensor.h"
6 #include "smaug/operators/smv/smv_tiling_common.h"
39 const std::vector<int>& minShape);
52 const std::vector<int>& minShape,
53 const std::vector<int>& strides,
54 std::vector<TensorShape>& configs);
66 const std::vector<int>& minShape,
67 const std::vector<int>& strides,
68 std::vector<TensorShape>& configs);
static void enum4DTensorTilingConfigs(TensorShape shape, int maxTileSize, const std::vector< int > &minShape, const std::vector< int > &strides, std::vector< TensorShape > &configs)
Enumerates all tiling configs for a four dimensional Tensor.
TilingDims
The set of supported tiling strategies.
static void enum2DTensorTilingConfigs(TensorShape shape, int maxTileSize, const std::vector< int > &minShape, const std::vector< int > &strides, std::vector< TensorShape > &configs)
Enumerates all tiling configs for a two dimensional Tensor.
TensorShape describes the shape of a Tensor.
static TilingDims findBestTilingDims(const TensorShape &shape, int maxTileSize, const std::vector< int > &minShape)
Find the best set of dimensions to tile a given tensor shape.
The smaug namespace is the parent namespace of all C++ code in SMAUG.