标签:device mem ssi pre 训练 ble memory session prot
import tensorflow as tf import os os.environ["CUDA_VISIBLE_DEVICES"] = ‘0‘ #use GPU with ID=0 config = tf.ConfigProto() config.gpu_options.per_process_gpu_memory_fraction = 0.5 # maximun alloc gpu50% of MEM config.gpu_options.allow_growth = True #allocate dynamically sess = tf.Session(config = config)
标签:device mem ssi pre 训练 ble memory session prot
原文地址:https://www.cnblogs.com/ywheunji/p/12148434.html