When I\'m trying to use TensorFlow with Keras using the gpu, I\'m getting this error message:
C:\\Users\\nicol\\Anaconda3\\envs\\tensorflow\\lib\\site-packag
This worked for me on TensorFlow 2.1.0 (per: https://www.tensorflow.org/api_docs/python/tf/config/experimental/set_memory_growth)
import tensorflow as tf physical_devices = tf.config.list_physical_devices('GPU') tf.config.experimental.set_memory_growth(physical_devices[0], True)