Return the number of GPUs available.
the number of GPUs available.
int
Note
This function returns 0 when compiled without CUDA support.
Examples
>>> import paddle >>> paddle.device.device_count()