Skip to content

Demonstrates the property of transformers' positional encodings to be represented by linear function independent on the word indexes

License

Notifications You must be signed in to change notification settings

malashinroman/pe_computation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Demonstration of linear property of Transformers positional encodings

This notebook demonstrates the linear property of transformers from the paper Attention is all you need [https://arxiv.org/abs/1706.03762]. The code shows how positoinal encodings can be represented by linear transformaitons of each other inside the transformer architecture.

About

Demonstrates the property of transformers' positional encodings to be represented by linear function independent on the word indexes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published