这个加上后,不能顺利利用gpu了,
with tf.Session(config=tf.ConfigProto(log_device_placement=True)) as sess,tf.device('/gpu:0'):
这个反而能顺利调用gpu:
with tf.Session() as sess,tf.device('/gpu:0'):
这个加上后,不能顺利利用gpu了,
with tf.Session(config=tf.ConfigProto(log_device_placement=True)) as sess,tf.device('/gpu:0'):
这个反而能顺利调用gpu:
with tf.Session() as sess,tf.device('/gpu:0'):