torch.accelerator.current\_device\_idx ====================================== .. currentmodule:: torch.accelerator .. autofunction:: current_device_idx