Adding the code below right after the imports solved the issue for me ! Thanks !
physical_devices = tf.config.list_physical_devices(‘GPU’)
tf.config.experimental.set_memory_growth(physical_devices[0], True)
Adding the code below right after the imports solved the issue for me ! Thanks !
physical_devices = tf.config.list_physical_devices(‘GPU’)
tf.config.experimental.set_memory_growth(physical_devices[0], True)