# tensorplay.cuda.current_device

Source: https://www.tensorplay.cn/docs/generated/tensorplay.cuda.current_device.html

# tensorplay.cuda.current_device

tensorplay.cuda.current_device() &#x2192; [int](https://docs.python.org/3/library/functions.html#int)[[source]](../_modules/tensorplay/cuda.html#current_device)

Return the index of a currently selected device.
