Created
August 14, 2018 05:36
-
-
Save arjun-kava/f13b8a1b81aa0241d4c3b55b14dd09cb to your computer and use it in GitHub Desktop.
Free GPU memory keras
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 | |
cfg = K.tf.ConfigProto() | |
cfg.gpu_options.allow_growth = True | |
K.set_session(K.tf.Session(config=cfg)) | |
K.clear_session() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment