GetTilingData
Description
Obtains a typed tiling data pointer.
Prototype
template<typename T> auto GetTilingData() -> T*
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
T |
Output |
For the tiling data type, sizeof(T) cannot be greater than the maximum tiling data length specified in the compilation result. |
Returns
Pointer to the tiling data. If the operation fails, a null pointer is returned.
Restrictions
sizeof(T) cannot be greater than the maximum tiling data length specified in the compilation result.
Example
ge::graphStatus Tiling4XXX(TilingContext* context) {
auto tiling_data = context->GetTilingData<int64_t>();
// ...
}
Parent topic: TilingContext