Skip to content

Instantly share code, notes, and snippets.

@aurora1625
Last active March 27, 2022 23:22
Show Gist options
  • Save aurora1625/dead45111e2edbbea66d4b266cfcd4cc to your computer and use it in GitHub Desktop.
Save aurora1625/dead45111e2edbbea66d4b266cfcd4cc to your computer and use it in GitHub Desktop.
Check #tensorflow #CUDA
import tensorflow as tf
print(tf.test.is_built_with_cuda())
from tensorflow.python.client import device_lib
print(device_lib.list_local_devices())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment