Created
August 11, 2018 09:15
-
-
Save fo40225/e1e06b0f0cc9de991ac99fedb9e7dee7 to your computer and use it in GitHub Desktop.
keras dynamic vram
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
from keras import backend as K | |
import tensorflow as tf | |
config = tf.ConfigProto() | |
config.gpu_options.allow_growth = True | |
session = tf.Session(config=config) | |
K.set_session(session) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment