mr2.nn.attention
Attention modules.
Classes
Attention gate from Attention UNet. |
|
Temporal or patch attention with spatial convolutional projections. |
|
Linear multi-head self-attention via kernel trick. |
|
Attention where each query attends to a neighborhood of the key and value. |
|
Shifted Window Attention. |
|
Spatial transformer block. |
|
Squeeze-and-Excitation block. |
|
Transposed Self Attention from Restormer. |