TilingDataSize
Function Usage
Sets the TilingData size of an operator. After the size is set, the memory of the corresponding size is allocated to store the TilingData of the operator. Compared with TilingData, the pointer to the generated TilingData is owned by ContextHolder when this API is called. Callers do not need to manage the lifecycle of TilingData.
Note that this API is mutually exclusive with TilingData. If TilingDataSize and TilingData are both called, the result of the latter call overwrites the result of the previous call.
Prototype
1 | OpTilingContextBuilder &TilingDataSize(size_t tiling_data_size) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
tiling_data_size |
Output |
Size of tiling data. |
Returns
A reference to the TilingContextBuilder object. It is used for chaining method calls.
Constraints
TilingData or TilingDataSize must be set before the Build method call. Otherwise, the constructed TilingContext will contain undefined data.