---
description: Learn about Ultralytics transformer encoder, layer, MLP block, LayerNorm2d and the deformable transformer decoder layer. Expand your understanding of these crucial AI modules.
keywords: Ultralytics, Ultralytics documentation, TransformerEncoderLayer, TransformerLayer, MLPBlock, LayerNorm2d, DeformableTransformerDecoderLayer
---
## TransformerEncoderLayer
---
### ::: ultralytics.nn.modules.transformer.TransformerEncoderLayer
< br > < br >
## AIFI
---
### ::: ultralytics.nn.modules.transformer.AIFI
< br > < br >
## TransformerLayer
---
### ::: ultralytics.nn.modules.transformer.TransformerLayer
< br > < br >
## TransformerBlock
---
### ::: ultralytics.nn.modules.transformer.TransformerBlock
< br > < br >
## MLPBlock
---
### ::: ultralytics.nn.modules.transformer.MLPBlock
< br > < br >
## MLP
---
### ::: ultralytics.nn.modules.transformer.MLP
< br > < br >
## LayerNorm2d
---
### ::: ultralytics.nn.modules.transformer.LayerNorm2d
< br > < br >
## MSDeformAttn
---
### ::: ultralytics.nn.modules.transformer.MSDeformAttn
< br > < br >
## DeformableTransformerDecoderLayer
---
### ::: ultralytics.nn.modules.transformer.DeformableTransformerDecoderLayer
< br > < br >
## DeformableTransformerDecoder
---
### ::: ultralytics.nn.modules.transformer.DeformableTransformerDecoder
< br > < br >