A newer version of the Gradio SDK is available:
5.23.3
metadata
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
Reference for ultralytics/nn/modules/transformer.py
!!! note
Full source code for this file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/nn/modules/transformer.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/nn/modules/transformer.py). Help us fix any issues you see by submitting a [Pull Request](https://docs.ultralytics.com/help/contributing/) ๐ ๏ธ. Thank you ๐!