tf
2018-10-27 本文已影响0人
大海一滴写字的地方
with tf.Session() as sess:
with tf.device("/gpu:0"):
.................
a是一个tensor,如果要输出a的值,则print(a.eval())
with tf.Session() as sess:
with tf.device("/gpu:0"):
.................
a是一个tensor,如果要输出a的值,则print(a.eval())