# tensorplay.cuda.device_count

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

# tensorplay.cuda.device_count

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

Return the number of GPUs available.

Note

This API will NOT poison fork if NVML discovery succeeds.
