1 #include "smaug/operators/smv/smv_tiling_common.h"
7 std::ostream& operator<<(std::ostream& os,
const TilingDims& dims) {
40 std::ostream& operator<<(std::ostream& os,
const TilingConfig& config) {
41 os <<
"inputs: " << config.inputs;
42 if (config.weights.ndims() != 0)
43 os <<
", weights: " << config.weights;
44 os <<
", outputs: " << config.outputs;
51 assert(dim != Invalid);
57 return (dim == DimNC) || (dim == DimNCH) || (dim == DimNCW);
62 return (dim == DimNH) || (dim == DimNHW) || (dim == DimNCH);
67 return (dim == DimNW) || (dim == DimNHW) || (dim == DimNCW);