--- description: Explore the Ultralytics nn modules pages on Transformer and MLP blocks, LayerNorm2d, and Deformable Transformer Decoder Layer. keywords: Ultralytics, NN Modules, TransformerEncoderLayer, TransformerLayer, MLPBlock, LayerNorm2d, DeformableTransformerDecoderLayer, examples, code snippets, tutorials --- # TransformerEncoderLayer --- :::ultralytics.nn.modules.transformer.TransformerEncoderLayer

# AIFI --- :::ultralytics.nn.modules.transformer.AIFI

# TransformerLayer --- :::ultralytics.nn.modules.transformer.TransformerLayer

# TransformerBlock --- :::ultralytics.nn.modules.transformer.TransformerBlock

# MLPBlock --- :::ultralytics.nn.modules.transformer.MLPBlock

# MLP --- :::ultralytics.nn.modules.transformer.MLP

# LayerNorm2d --- :::ultralytics.nn.modules.transformer.LayerNorm2d

# MSDeformAttn --- :::ultralytics.nn.modules.transformer.MSDeformAttn

# DeformableTransformerDecoderLayer --- :::ultralytics.nn.modules.transformer.DeformableTransformerDecoderLayer

# DeformableTransformerDecoder --- :::ultralytics.nn.modules.transformer.DeformableTransformerDecoder