Skip to content

Instantly share code, notes, and snippets.

@Sangarshanan
Created June 20, 2018 18:24
Show Gist options
  • Save Sangarshanan/b5fba5cbabe41a01f16bdaf73202ca2f to your computer and use it in GitHub Desktop.
Save Sangarshanan/b5fba5cbabe41a01f16bdaf73202ca2f to your computer and use it in GitHub Desktop.
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