Skip to main content

Mojo function

kv_cache_store_padded

kv_cache_store_padded[cache_t: KVCacheT, //, target: StringSlice[StaticConstantOrigin], input_fn: fn[width: Int, alignment: Int](idx: IndexList[4]) capturing -> SIMD[cache_t.dtype, width]](cache: cache_t, input_shape: IndexList[4], valid_lengths: LayoutTensor[DType.uint32, layout, origin, element_layout=element_layout, layout_int_type=layout_int_type, linear_idx_type=linear_idx_type, masked=masked, alignment=alignment], context: Optional[DeviceContext])

Was this page helpful?