# tensorplay.cuda.device_count Source: https://www.tensorplay.cn/docs/generated/tensorplay.cuda.device_count.html ```python tensorplay.cuda.device_count() → int ``` Return the number of GPUs available. > **Note** > > This API will NOT poison fork if NVML discovery succeeds.