Skip to main content

Mojo function

kv_cache_store_ragged

kv_cache_store_ragged[cache_t: KVCacheT, input_row_offsets_layout: Layout, //, target: StringSlice[StaticConstantOrigin], input_fn: fn[width: Int, alignment: Int](idx: IndexList[3]) capturing -> SIMD[cache_t.dtype, width]](cache: cache_t, input_shape: IndexList[3], input_row_offsets: LayoutTensor[DType.uint32, input_row_offsets_layout, MutableAnyOrigin], context: Optional[DeviceContext])

Was this page helpful?