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

InternalError: Assigned device '/job:worker/replica:0/task:0/device:TPU:0' does not have registered OpKernel support for _Arg #36980

Closed
bestpredicts opened this issue Feb 22, 2020 · 4 comments
Assignees
Labels
comp:dist-strat Distribution Strategy related issues comp:tpus tpu, tpuestimator stat:awaiting tensorflower Status - Awaiting response from tensorflower TF 2.1 for tracking issues in 2.1 release type:bug Bug

Comments

@bestpredicts
Copy link

bestpredicts commented Feb 22, 2020

when run bert tpu on colab get error info :
InternalError: Assigned device '/job:worker/replica:0/task:0/device:TPU:0' does not have registered OpKernel support for _Arg

here is my code on colab You can reproduce this bug through my code

@gadagashwini-zz gadagashwini-zz added TF 2.1 for tracking issues in 2.1 release comp:tpus tpu, tpuestimator labels Feb 24, 2020
@gadagashwini-zz
Copy link
Contributor

Was able to reproduce the reported issue with Tf2.1.
Please find the gist here. Thanks!

@gowthamkpr gowthamkpr assigned rxsang and unassigned gowthamkpr Feb 25, 2020
@gowthamkpr gowthamkpr added stat:awaiting tensorflower Status - Awaiting response from tensorflower comp:dist-strat Distribution Strategy related issues labels Feb 25, 2020
@simonsays1980
Copy link

Same problem for me. Did anyone succeed in solving this issue? Shutting off eager mode?

@google-ml-butler
Copy link

Are you satisfied with the resolution of your issue?
Yes
No

@rxsang
Copy link
Member

rxsang commented Apr 2, 2020

Hi @bestpredicts and @simonsays1980,

You need to use
tf.config.experimental_connect_to_cluster(resolver) API instead of
tf.config.experimental_connect_to_host(resolver.master())
See https://www.tensorflow.org/guide/tpu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:dist-strat Distribution Strategy related issues comp:tpus tpu, tpuestimator stat:awaiting tensorflower Status - Awaiting response from tensorflower TF 2.1 for tracking issues in 2.1 release type:bug Bug
Projects
None yet
Development

No branches or pull requests

5 participants