Attention: feature selection

Spatial Attention

Untitled

Channel Attention

Squeeze-and-Excitation Net (SENet)

Untitled

Untitled

Attention: feature aggregation

(Scaled) dot-product attention (Transformer)

General Attention Layer

Untitled

Outputs:

Operations:

Inputs: