[XPU] Enable Kimi K3 KDA kernel tests on XPU (#51809)

Signed-off-by: pmanczak <pawel.manczak@intel.com>
This commit is contained in:
pmanczak
2026-08-17 17:21:34 +08:00
committed by GitHub
parent bb233626ca
commit cc7cf71fc8
2 changed files with 8 additions and 2 deletions
@@ -49,7 +49,7 @@ def gather_initial_states(
) -> torch.Tensor:
"""Gather dense state rows, replacing uninitialized rows with zeros."""
assert state.ndim >= 2
assert state.is_cuda
assert state.is_cuda or state.is_xpu
assert indices.ndim == 1 and has_initial_state.ndim == 1
assert indices.shape == has_initial_state.shape
assert indices.device == state.device