2017-03-11 76 views

回答

0
config = tf.ConfigProto() 
config.gpu_options.allow_growth = True 
config.gpu_options.per_process_gpu_memory_fraction = 0.9 
run_config = tf.contrib.learn.RunConfig(session_config=config) 

通行證上面的配置,以Estimator's session_config