absolute positional encoding [abs_pos] #8457
poyupaulchen
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
First appreciate the team providing such a great tool.
Currently I would like to try some experiments on the positional encoding for conformer. As I saw in the coding (see below), if I configure absolute positional encoding using
self_attention_model: abs_pos,
it will call the 'MultiHeadAttention'
https://github.com/NVIDIA/NeMo/blob/df5a39583e31fd99bda371759c7954f928195594/nemo/collections/asr/parts/submodules/conformer_modules.py#L124-L127
And it seems like 'pos_emb' is never applied to the self attention part.
https://github.com/NVIDIA/NeMo/blob/df5a39583e31fd99bda371759c7954f928195594/nemo/collections/asr/parts/submodules/multi_head_attention.py#L121-L147
Does it mean that 'abs_pos' implies 'no positional encoding'? or I miss something.
Thank you,
Paul
Beta Was this translation helpful? Give feedback.
All reactions