怎样知道tensorflow计算用的是CPU还是GPU
sess.run()这行命令前面,加上如下:sess = tf.Session(config=tf.ConfigProto(allow_soft_placement=True, log_device_placement=True)) 终端的device mappingDevice mapping:/job:localhost/replica:0/task:0/device:GP...