-
Notifications
You must be signed in to change notification settings - Fork 151
Cannot assign a device to node #1
Comments
Thanks for the bug report. I won't be able to reproduce this until I get to a computer with the proper version of cuda. The problem is basically that |
sorry, errant click. The basic problem is that it is trying to force a non-gpu op onto a GPU. I will see where the problem is coming from. |
I was able to reproduce the bug and the fix was to assign a device to the problem operation: with tf.device('/cpu:0'): |
Thanks - works now. |
Alternatively, you could let tensorflow pick which nodes to put it on with: |
@nistala Thank you. I must have missed this in the documentation. |
I encountered this problem on Tensorflow-gpu 1.8 and Tensorflow-gpu 1.5 on GPU clusters but I didn't get this issue after installing Tensorflow-gpu 1.0.1. |
Encountered a similar problem with Tensorflow-gpu 1.8 with the function save/SaveV2. |
@Bella31 , have you fixed this problem. I have the same problem. Thanks. |
No, I didn't, also will be happy to hear if there is a solution. |
Actually, the problem was in my code. It turned out that I called Saver in "with tf.device(device)" clause. When I put it under "with tf.Session(config=tf.ConfigProto(allow_soft_placement=True))" it was resolved |
I think giving using InteractiveSession might help. It seems that use Session and that operation can be done on gpu. |
I'm running the baby_names tutorial, and it is failing with the following error (excerpt):
tensorflow.python.framework.errors.InvalidArgumentError: Cannot assign a device to node 'Adagrad/update_baby_names/embedding_lookup/params/SparseApplyAdagrad': Could not satisfy explicit device specification '' because the node was colocated with a group of nodes that required incompatible device '/job:localhost/replica:0/task:0/GPU:0'
[[Node: Adagrad/update_baby_names/embedding_lookup/params/SparseApplyAdagrad = SparseApplyAdagrad[T=DT_FLOAT, Tindices=DT_INT32, use_locking=false](baby_names/embedding_lookup/params, baby_names/embedding_lookup/params/Adagrad, ExponentialDecay, gradients/concat, gradients/concat_1)]]
Caused by op u'Adagrad/update_baby_names/embedding_lookup/params/SparseApplyAdagrad', defined at:
File "tutorial/baby_names.py", line 193, in
tf.app.run()
It was previously erroring due to the .csv not being found (so I copied into
/usr/local/lib/python2.7/dist-packages/prettytensor/tutorial/)
Any suggestions for how to fix this?
The text was updated successfully, but these errors were encountered: