Learn Before
Concept icon
Concept

Encoder-decoder network with attention

Computing the value for current decode is based on the previous hidden state, the previous word generated, and the current context vector. This context vector is derived from the attention computation based on comparing the previous hidden state to all of the encoder hidden states.

Image 0

0

1

Concept icon
Updated 2026-05-14

Tags

Data Science

D2L

Dive into Deep Learning @ D2L