fix: syntax error — missing closing paren in indexer.forward call

This commit is contained in:
2026-06-03 04:46:41 +00:00
parent 693975ec92
commit f5fa20c581

View File

@@ -387,7 +387,7 @@ def main():
# 4. Indexer top-k (CSA layers)
topk_idx = None
if indexer is not None and ratio == 4:
topk_idx = indexer.forward(q_a, x_normed, kc, dec_pos.to(dev), layer_idx=li
topk_idx = indexer.forward(q_a, x_normed, kc, dec_pos.to(dev), layer_idx=li)
if topk_idx is not None:
print(f" L{li} CSA: indexer topk shape={tuple(topk_idx.shape)} "
f"range=[{topk_idx.min().item()}, {topk_idx.max().item()}] "