Closed ZYBOBO closed 3 months ago
To visualize the attention matrices, you can plot the output of get_last_attention_weights. You'll get one matrix per batch element.
Thanks for your question, it is planned to release the code to visualize the main figure of the paper. It should happen within 1-2 months, stay tuned :)
Best
To visualize the attention matrices, you can plot the output of get_last_attention_weights. You'll get one matrix per batch element.