Skip to content

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

@anonymouscoder1022

Description

@anonymouscoder1022

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions