Last active
February 20, 2019 17:45
-
-
Save juliensimon/d27654818342f42635f399c1f2ee2bcb to your computer and use it in GitHub Desktop.
tensorflow-memory-1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tensorflow as tf | |
from keras.backend.tensorflow_backend import set_session | |
config = tf.ConfigProto() | |
config.gpu_options.per_process_gpu_memory_fraction = 0.9 | |
config.gpu_options.visible_device_list = "0" | |
set_session(tf.Session(config=config)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment