tilelang.carver.common_schedules¶
Common schedule strategies for TIR.
Functions¶
|
Get the target block from a schedule. |
|
Get the output blocks of a schedule. |
|
Try to inline as many blocks as possible, and return the remaining blocks. |
|
Try to inline contiguous spatial blocks in a schedule |
Module Contents¶
- tilelang.carver.common_schedules.get_block(sch, blocks, name)¶
Get the target block from a schedule.
- Parameters:
sch (tir.Schedule) – The TIR schedule used to get target block.
name (str) – The name of the target block.
blocks (List[tilelang.carver.analysis.BlockInfo])
- Returns:
target_block – The target block.
- Return type:
BlockRV
- tilelang.carver.common_schedules.get_output_blocks(sch, blocks)¶
Get the output blocks of a schedule.
- tilelang.carver.common_schedules.try_inline(sch, blocks)¶
Try to inline as many blocks as possible, and return the remaining blocks.
- tilelang.carver.common_schedules.try_inline_contiguous_spatial(sch, block_infos)¶
Try to inline contiguous spatial blocks in a schedule