tf

2018-10-27  本文已影响0人  大海一滴写字的地方

with tf.Session() as sess:

    with tf.device("/gpu:0"):

        .................

a是一个tensor,如果要输出a的值,则print(a.eval())

上一篇 下一篇

猜你喜欢

热点阅读