For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).
Mojo function
kv_cache_store_padded
def kv_cache_store_padded[cache_t: KVCacheT, //, target: StringSlice[StaticConstantOrigin], input_fn: def[width: Int, alignment: Int](idx: IndexList[Int(4)]) capturing -> SIMD[cache_t.dtype, width]](cache: cache_t, input_shape: IndexList[Int(4)], valid_lengths: LayoutTensor[DType.uint32, element_layout=valid_lengths.element_layout, layout_int_type=valid_lengths.layout_int_type, linear_idx_type=valid_lengths.linear_idx_type, masked=valid_lengths.masked, alignment=valid_lengths.alignment], context: DeviceContext)
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!