pytorch/torch/accelerator
Yuanhao Ji 1239260a0e [Accelerator][Chore] Use existing acc when raising an error (#150829)
As the title said, `acc` already exists so we just use it instead of calling `current_accelerator()` again.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/150829
Approved by: https://github.com/guangyey, https://github.com/Skylion007
2025-04-08 16:05:06 +00:00
..
__init__.py Move get accelerator to use build time flags when possible (#146098) 2025-03-10 13:17:58 +00:00
_utils.py [Accelerator][Chore] Use existing acc when raising an error (#150829) 2025-04-08 16:05:06 +00:00