Last active
March 23, 2018 05:20
-
-
Save mohapatras/b6b1ebb3e738e72eb52b53a33b3fac9a 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
# memory growth options for keras and tensorflow. | |
from keras import backend as K | |
cfg = K.tf.ConfigProto() | |
cfg.gpu_options.allow_growth = True | |
K.set_session(K.tf.Session(config=cfg)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment