MCPcopy Create free account
hub / github.com/ModelTC/LightX2V / grid

Function grid

lightx2v/common/kvcache/kernel.py:258–259  ·  view source on GitHub ↗
(meta)

Source from the content-addressed store, hash-verified

256 query_offset = query_token * query_token_stride + head * query_head_stride + feature * 2 * query_dim_stride
257 query_real = tl.load(query + query_offset, mask=current, other=0).to(tl.float32)
258 query_imag = tl.load(query + query_offset + query_dim_stride, mask=current, other=0).to(tl.float32)
259 query_real, query_imag = _interleaved_rope(query_real, query_imag, cosine, sine)
260 tl.store(query + query_offset, query_real, mask=current)
261 tl.store(query + query_offset + query_dim_stride, query_imag, mask=current)
262

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected