TilingData

Function Usage

Sets the TilingData pointer of an operator. This pointer is used to write TilingData into the pointer during operator tiling computation.

Prototype

1
OpTilingContextBuilder &TilingData(const gert::TilingData *tiling_data, gert::Chain::Deleter deleter = nullptr)

Parameters

Parameter

Input/Output

Description

tiling_data

Input

Pointer to TilingData.

deleter

Input

Deleter of Tiling data. If the deleter is explicitly passed, it is called to release the Tiling data during the destruction of ContextHolder. By default, the deleter is not passed. The TilingDataSize API is recommended.

Returns

A reference to the OpTilingContextBuilder 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.
  • The caller has the memory ownership of the void* parameter passed through a pointer. They must ensure that the pointer is valid throughout the lifecycle of the ContextHolder object.