-
Notifications
You must be signed in to change notification settings - Fork 283
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
Attention example is not working #983
Comments
This looks like a TensorFlow installation/ something related to the GPU installation. Does any other example works? I have just runned the example locally and it worked fine. |
Hi @dfalbel , the following is the output of
It seems to be very short. Is this all what you need?
the following example works fine:
It loads keras and tensorflow and it trains nomally. |
Hi @dfalbel , I have tried to install a new conda environment with tensorflow CPU version and I am getting a similar error:
|
This is very strange, I would suspect a problem with the Windows build of TF, but I don't find related issues in the TF repo... Did you install TensorFlow via You could try the following...
(((Evidently they have recently updated the tutorial: https://www.tensorflow.org/tutorials/text/nmt_with_attention))) Independently, in the original version, it would be interesting to see the datatypes of
Could you add something like
and tell us what it prints? Finally, just - even in the CPU case, where this doens't look so likely ... - just to exclude it's a memory problem, could you just reduce the dataset to say 100 items, restart the session, and run the model on that? |
Hi @skeydan , I installed with install_tensorflow()
But I have seen an issue in github for python version and it should be ok.
The following instruction does not work:
I am getting:
I also forgot to mention I need to use:
instead of
That you use in your article. Last thing, I am getting same issue even with 100 samples. Just tested with CPU version only. Please let me know what you think about it. |
Are you using the version on github which was updated for TF? https://github.com/rstudio/keras/blob/master/vignettes/examples/nmt_attention.R This does not have
Could you first just test what happens when you use the code from there please? Still, the output from the datatypes makes me wonder... So if it still fails, could you try explicitly casting
? |
@skeydan if I use that code I am getting:
if I add the printing instruction to this script I am getting:
|
Hello, the following example:
https://keras.rstudio.com/articles/examples/nmt_attention.html
is not working. I am getting the following error:
could you please help me?
I have also opened the following issue:
rstudio/ai-blog#70
Please let me know.
Thanks.
The text was updated successfully, but these errors were encountered: