Qeravio
Canonical AI event

Ciflow replaces torchao helper with torch.accelerator.current_accelerator()

The code review in ciflow/xpu/4637 replaces a helper function with torch.accelerator.current_accelerator() API. The change is limited to the call site added by this pull request.

9 Sept 20261 verified claims1 sources1 observations
What happened

The official source reports this update: ciflow/xpu/4637: Address review: use torch.accelerator.current_accelerator(). Per review feedback, replace the torchao.utils.get_current_accelerator_device() helper with the upstream torch.accelerator.current_accelerator() API, which is the direction tracked in #2917 / #4384 . Note the suggested spelling in the review comment, torch.accelerator.get_current_accelerator(), does not exist; the actual API is torch.accelerator.current_accelerator(). Scoped to the call site added by this PR; the pre-existing ones in this file are left to the file-wide migration.

Why it matters

This official update documents a development concerning ciflow/xpu/4637: Address review: use torch.accelerator.current_accelerator(). Its practical significance depends on the scope and evidence stated by the source.

What to watch next

Read the official source update and verify its stated scope, evidence and timing before acting on it.

Connected knowledge

Entities affected by this event

Continue this topic
Evidence trail

Sources behind the event