Skip to main content

Mojo function

kv_cache_store_ragged

kv_cache_store_ragged[cache_t: KVCacheT, //, target: StringSlice[StaticConstantOrigin], input_fn: def[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, input_row_offsets.origin, element_layout=input_row_offsets.element_layout, layout_int_type=input_row_offsets.layout_int_type, linear_idx_type=input_row_offsets.linear_idx_type, masked=input_row_offsets.masked, alignment=input_row_offsets.alignment], context: Optional[DeviceContext])

Was this page helpful?