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

How to extract attention layer for each token ? #2

Open
gg4u opened this issue Mar 10, 2023 · 0 comments
Open

How to extract attention layer for each token ? #2

gg4u opened this issue Mar 10, 2023 · 0 comments

Comments

@gg4u
Copy link

gg4u commented Mar 10, 2023

Hi,

could you please show how to extract the attention weights learned for each token in sequences ?

Suppose I want to fine-tune AVES on vocalizations of one species, giving in input a sequence of utterances, and in output multiple classes (i.e. observations).
I want to inquire the attention weights learned for the utterances.

Can you please help and show a code snippet for doing so, so that I can have a reference ?

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

1 participant