Created
June 20, 2018 18:24
-
-
Save Sangarshanan/b5fba5cbabe41a01f16bdaf73202ca2f to your computer and use it in GitHub Desktop.
This file contains 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.3 | |
set_session(tf.Session(config=config)) | |
By default system uses max GPU and that seems to return an error while training |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment