In [2]:
import tensorflow as tf
In [3]:
tf.config.list_physical_devices()
Out [3]:
[PhysicalDevice(name='/physical_device:CPU:0', device_type='CPU')]
In [4]:
tf.config.list_physical_devices("GPU")
Out [4]:
[]
In [ ]:
# IF access to a GPU...
# tf AUTOMATICALLY USES IT WHENEVER POSSIBLE!!