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

Regarding the undefined attention_weights in the train_symbol_decoder.ipynb file #1

Open
anonymouscoder1022 opened this issue Oct 20, 2024 · 1 comment

Comments

@anonymouscoder1022
Copy link

Hi,

Thank you for your work, I’ve learned a lot from it. However, in the train_symbol_decoder.ipynb file, attention_weights in cell 58 is not defined, which causes the code to fail. Could you please check this?

Additionally, sentence in cell 59 and translated_tokens in cells 60 and 61 are also not defined.

head = 0
# Shape: `(batch=1, num_heads, seq_len_q, seq_len_k)`.
attention_heads = tf.squeeze(attention_weights, 0)
attention = attention_heads[head]
attention.shape

Thanks in advance!

@tunaozates
Copy link
Collaborator

Thank you for your interest in our work and also helping us to fix the issue! We now updated the train_symbol_decoder.ipynb so that it runs without errors.

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

2 participants