tensorflow设定程序运行时gpu使用率

import tensorflow as tf
from keras.backend.tensorflow_backend import set_session
config.gpu_options.per_process_gpu_memory_fraction=0.3
set_session(tf.Session(config=config))

你可能感兴趣的:(DeepLearning)