-
Notifications
You must be signed in to change notification settings - Fork 269
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
Throws error when running with rnn_dropout_embedding: true parameter #111
Comments
Hi @rajatbhatnagar94 i'm experiencing the same issue. Were you able to find a way to use dropout? |
Hey @ibakarr In the dropout_hidden and dropout_embedding function, I replaced You can make these changes in the nematus code or use my fork of nematus! https://github.com/rajatbhatnagar94/nematus/ Thanks! Hope it helps |
Yeah i used your fork and works well. Thanks! |
thanks for reporting this; I fixed this in the Tensorflow 2 branch, which has now also been merged into master. |
Awesome! I had this error in a different repo, but also related to tf.shape. For me, it helped replacing something like this (trying to fold time dim back into batch dim [B, T, ...] -> [B+T, ...]):
with
|
When I try to give dropout options for in rnn model, it doesn't run and throws the following error.
My tensorflow version is 1.15
python - 3.7.6
I think the error is in line 57, in the following code -
It is because of the noise_shape. If I remove it the code runs fine.
Please fix this ASAP. I have to train a model urgently with those parameters.
The text was updated successfully, but these errors were encountered: