torch.accelerator.current_device_index# torch.accelerator.current_device_index()[source]# Return the index of a currently selected device for the current accelerator. Returns the index of a currently selected device. Return type int