Overview

TilingData is used to store the computation result of operator tiling, that is, the parameters related to the data tiling algorithm (such as the size of data blocks transferred each time and the number of movement and computation cycles) determined based on the operator shape and other information.

Header Files to Be Included

1
#include <tiling_data.h>

Public Member Functions

TilingData(const TilingData &) = delete
TilingData(TilingData &&) = delete
TilingData operator=(const TilingData &) = delete
TilingData operator=(TilingData &&) = delete
size_t GetCapacity() const
size_t GetDataSize() const
void SetDataSize(const size_t size)
void *GetData()
const void *GetData() const
template<typename T, typename std::enable_if<std::is_standard_layout<T>::value, int>::type = 0>
ge::graphStatus Append(const T &data)
template<typename T, typename std::enable_if<std::is_standard_layout<T>::value, int>::type = 0>
ge::graphStatus Append(const T *data, size_t append_num)
static std::unique_ptr<uint8_t[]> CreateCap(const size_t cap_size)
static ge::graphStatus CalcTotalSize(const size_t cap_size, size_t &total_size)
void Init(const size_t cap_size, void *const data)
ge::graphStatus AppendConvertedAttrVal(const RuntimeAttrs *attrs, const size_t attr_index, const AttrDataType src_type, const AttrDataType dst_type)
template<typename T>
TilingData &operator<<(TilingData &out, const T &data)
void *Expand(size_t size)