Skip to main content

Mojo function

kv_cache_store_ragged

kv_cache_store_ragged[cache_t: KVCacheT, //, target: StringSlice[StaticConstantOrigin], input_fn: fn[Int, Int](idx: IndexList[3]) capturing -> SIMD[cache_t.dtype, $0]](cache: cache_t, input_shape: IndexList[3], input_row_offsets: NDBuffer[DType.uint32, 1, origin, shape, strides], context: Optional[DeviceContext])

Was this page helpful?