Layer
A structural unit of a neural network: a set of neurons that process data at one stage. Layers are stacked — hence the term 'deep' learning.
Types of Layers
- input — receives data;
- hidden — intermediate transformations;
- output — produces the result.
In a Transformer
Layers are organized into blocks: attention + fully connected layer. Each block refines the hidden state.