attention is a small educational repository containing TensorFlow and Keras implementations of the attention mechanism described in Attention Is All You Need. It provides separate source files for framework-specific implementations rather than a larger training application. The project was created as a compact reference for understanding and experimenting with attention layers. Its documented test environment uses Python 2.7, TensorFlow 1.8 or later, and Keras 2.2.4. The repository is no longer maintained for newer TensorFlow or Keras releases. Users needing updated implementations are directed toward related layers in the author's bert4keras project. Its main value today is as a concise historical example of early Transformer-style attention code.
Features
- TensorFlow attention implementation
- Keras attention implementation
- Transformer-style attention mechanics
- Compact standalone source files
- Legacy TensorFlow and Keras compatibility
- Educational reference for attention architectures