2️⃣ Implementing the Core Components#

In this section, we will implement the core modules that both the encoder and the decoder will use, i.e., Scaled Dot Product Attention, Multi-Headed Attention, Positional Encoding, and Feed-Forward Networks.