-
Notifications
You must be signed in to change notification settings - Fork 74k
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
[TF 2.0] Using Keras custom layers, cannot learn on Colaboratory on TPU. #33890
Comments
It is a known issue #33517 . According to @yunxing (#33517 (comment) ), the fix should have been applied in the tf-nightly release. |
Thank you for telling me! I try tf-nightly release. |
I have the same issue with TF 2.6.0:
The model is compiled as: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
System information
Describe the current behavior
Tansfomer, which uses Keras custom layers, cannot learn on Colaboratory's TPU.
It shows the error below.
The code I used is from the following site and I wanted it to work with TPU.
(https://medium.com/tensorflow/a-transformer-chatbot-tutorial-with-tensorflow-2-0-88bf59e66fe2)
Describe the expected behavior
The Model can be learned on Colaboratory's TPU using custom layers.
Code to reproduce the issue
Here is a notebook to reproduce the problem. Look at this.
https://colab.research.google.com/github/july1997/transformer_chatbot_tpu/blob/master/transformer_chatbot_tf2_fix_tpu.ipynb
Other info / logs
Here all Logs.
The text was updated successfully, but these errors were encountered: