For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Mojo function
rebase_row_offsets
def rebase_row_offsets[with_cache_offsets: Bool](row_offsets: Pointer[UInt32, MutAnyOrigin], cache_row_offsets: Pointer[UInt32, MutAnyOrigin], batch: Int, view: SplitView, ctx: DeviceContext) -> DeviceBuffer[.uint32]
Returns the tail view's offsets rebased to start at 0, in one 1-CTA launch: [0, view.rows] query offsets, then the cache offsets when with_cache_offsets.
The kernels address q, the output and the block ids at
row_offsets[b], so a view that does not start at row 0 needs
batch-local offsets.
Returns:
DeviceBuffer[.uint32]