Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

PyTorch implementation of some attentions for Deep Learning Researchers.

License

NotificationsYou must be signed in to change notification settings

sooftware/attentions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 

Repository files navigation

An Apache 2.0 PyTorch implementation of some attentions for Deep Learning Researchers.


Intro

attentions provides some attentions used in natural language processing using pytorch.
these attentions can used in neural machine translation, speech recognition, image captioning etc...

image

attention allows to attend to different parts of the source sentence at each step of the output generation.
Instead of encoding the input sequence into a single fixed context vector, we let the model learn how to generate a context vector for each output time step.

Implementation list

NameCitation
Additive AttentionBahdanau et al., 2015
Dot-Product AttentionLuong et al., 2015
Location-Aware (Location Sensitive) AttentionChorowski et al., 2015
Scaled Dot-Product AttentionVaswani et al., 2017
Multi-Head AttentionVaswani et al., 2017
Relative Multi-Head Self AttentionZihangDai et al., 2019

Troubleshoots and Contributing

If you have any questions, bug reports, and feature requests, pleaseopen an issue on Github.
or Contactssh951011@gmail.com please.

I appreciate any kind of feedback or contribution. Feel free to proceed with small issues like bug fixes, documentation improvement. For major contributions and new features, please discuss with the collaborators in corresponding issues.

Code Style

I followPEP-8 for code style. Especially the style of docstrings is important to generate documentation.

Author


[8]ページ先頭

©2009-2025 Movatter.jp