[DeepSeekV32] Bug fix to ensure page_table and result in same type (#12300)

This commit is contained in:
Johnsonms
2025-10-30 18:56:51 -07:00
committed by GitHub
parent 82cfcd3bb8
commit 662725b936

View File

@@ -103,7 +103,7 @@ def transform_index_page_table_decode_ref(
result = torch.empty_like(topk_indices, dtype=torch.int32)
assert result.shape == topk_indices.shape
torch.gather(
page_table,
page_table.to(result.dtype),
dim=1,
index=topk_indices.clamp(min=0),
out=result,