├── .gitignore ├── README.md ├── attention.py ├── cnn-with-attention.py ├── figures ├── attn1.png ├── attn2.png ├── attn3.png └── rnn-with-attention.png ├── functions.py ├── models.py └── rnn-with-attention.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0aqz0/pytorch-attention-mechanism/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0aqz0/pytorch-attention-mechanism/HEAD/README.md -------------------------------------------------------------------------------- /attention.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0aqz0/pytorch-attention-mechanism/HEAD/attention.py -------------------------------------------------------------------------------- /cnn-with-attention.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0aqz0/pytorch-attention-mechanism/HEAD/cnn-with-attention.py -------------------------------------------------------------------------------- /figures/attn1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0aqz0/pytorch-attention-mechanism/HEAD/figures/attn1.png -------------------------------------------------------------------------------- /figures/attn2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0aqz0/pytorch-attention-mechanism/HEAD/figures/attn2.png -------------------------------------------------------------------------------- /figures/attn3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0aqz0/pytorch-attention-mechanism/HEAD/figures/attn3.png -------------------------------------------------------------------------------- /figures/rnn-with-attention.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0aqz0/pytorch-attention-mechanism/HEAD/figures/rnn-with-attention.png -------------------------------------------------------------------------------- /functions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0aqz0/pytorch-attention-mechanism/HEAD/functions.py -------------------------------------------------------------------------------- /models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0aqz0/pytorch-attention-mechanism/HEAD/models.py -------------------------------------------------------------------------------- /rnn-with-attention.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0aqz0/pytorch-attention-mechanism/HEAD/rnn-with-attention.py --------------------------------------------------------------------------------