# tensorplay.cuda.is_available

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

# tensorplay.cuda.is_available

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

Return a bool indicating if CUDA is currently available.

Note

This function will NOT poison fork if the environment variable
TENSORPLAY_NVML_BASED_CUDA_CHECK=1 is set.
