philipperemy/keras-attention
A Keras/TensorFlow library providing attention layer implementations with Luong and Bahdanau score functions for deep learning models.

Velocity · 7d
+0.9
★ / day
Trend
→steady
star history
This repository implements attention mechanisms as reusable Keras layers, supporting both multiplicative (Luong) and additive (Bahdanau) scoring methods. It integrates with TensorFlow 2.x and provides utilities for visualizing attention weights in neural network predictions. The library serves as a building block for sequence-to-sequence models and transformer architectures.