Check if there are GPUs instead of if TF is built with CUDA support.
The TF pip packages are always built with CUDA support, so tf.test.is_built_with_cuda() would return True even if the user had no GPU. PiperOrigin-RevId: 302928378
Showing
Please register or sign in to comment