我想指定gpu來運行我的進程。我把它設置如下: import tensorflow as tf
with tf.device('/gpu:0'):
a = tf.constant(3.0)
with tf.Session() as sess:
while True:
print sess.run(a)
但它仍然在我的兩個gpus中分配內存。 | 0 747
我試圖安裝tensorflow在很多方面(蟒蛇3.5)沒有成功: 通過鍵入 「PIP安裝tensorflow」 和 「點子安裝tensorflow-GPU」 和 收到錯誤: Could not find a version that satisfies the requirement tensorflow (from
versions:)
No matching distrib