# tensorplay.accelerator.current_device_index Source: https://www.tensorplay.cn/docs/generated/tensorplay.accelerator.current_device_index.html ```python tensorplay.accelerator.current_device_index() → int ``` Index of the currently selected accelerator device.