Skip to content

Commit

Permalink
Link to tf.test.is_built_with_cuda
Browse files Browse the repository at this point in the history
  • Loading branch information
lc0 committed Apr 6, 2019
1 parent ca2ddb5 commit 0ec1786
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tensorflow/python/framework/test_util.py
Expand Up @@ -1332,7 +1332,8 @@ def is_gpu_available(cuda_only=False, min_cuda_compute_capability=None):
"""Returns whether TensorFlow can access a GPU.
Warning: if not GPU version of the package is installed, the function would
also, return False.
also, return False. Use `tf.test.is_built_with_cuda` to validate if TensorFlow
was build with CUDA support.
Args:
cuda_only: limit the search to CUDA GPUs.
Expand Down

0 comments on commit 0ec1786

Please sign in to comment.