Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

source = dataset.make_one_shot_iterator().get_next() save_embedding报错 #44

Closed
lixusign opened this issue Feb 25, 2019 · 1 comment
Closed

Comments

@lixusign
Copy link

lixusign commented Feb 25, 2019

找不到设备? 我是分布式训练完之后,save_embedding过程中,出现这个错误,为啥可用设备名字变成下面这个列表
available devices are [ /job:localhost/replica:0/task:0/device:CPU:0, /job:localhost/replica:0/task:0/device:XLA_CPU:0 ].

异常栈如下:
InvalidArgumentError (see above for traceback): Restoring from checkpoint failed. This is most likely due to a mismatch between the current graph and the graph from the checkpoint. Please ensure that you have not altered the graph expected based on the checkpoint. Original error:

Cannot assign a device for operation IteratorToStringHandle: Operation was explicitly assigned to /job:worker/task:0 but available devices are [ /job:localhost/replica:0/task:0/device:CPU:0, /job:localhost/replica:0/task:0/device:XLA_CPU:0 ]. Make sure the device specification refers to a valid device.
[[node IteratorToStringHandle (defined at /usr/lib/python2.7/site-packages/tf_euler/python/run_loop.py:163) = IteratorToStringHandle_device="/job:worker/task:0"]]

@lixusign
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant