[TPU] Deprecate xm.mark_step in favor of `torch_xla.sync (#25254)

Signed-off-by: NickLucche <nlucches@redhat.com>
Co-authored-by: Ye (Charlotte) Qi <yeq@meta.com>
This commit is contained in:
Nicolò Lucchesi
2025-09-22 10:12:57 +00:00
committed by GitHub
co-authored by Ye Qi
parent a66d131381
commit 4cf71cc88a
5 changed files with 31 additions and 29 deletions
+2 -1
View File
@@ -6,6 +6,7 @@ Run `pytest tests/kernels/moe/test_moe_pallas.py`.
"""
import pytest
import torch
import torch_xla
# yapf conflicts with isort for this block
# yapf: disable
@@ -77,7 +78,7 @@ def test_pallas_moe(
expert_map=e_map,
renormalize=False,
)
xm.mark_step()
torch_xla.sync(wait=False)
# Compare outputs
torch.testing.assert_close(