You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.3 KiB
51 lines
1.3 KiB
---
|
|
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).
|
|
|
|
---
|
|
## ::: ultralytics.nn.modules.transformer.TransformerEncoderLayer
|
|
<br><br>
|
|
|
|
---
|
|
## ::: ultralytics.nn.modules.transformer.AIFI
|
|
<br><br>
|
|
|
|
---
|
|
## ::: ultralytics.nn.modules.transformer.TransformerLayer
|
|
<br><br>
|
|
|
|
---
|
|
## ::: ultralytics.nn.modules.transformer.TransformerBlock
|
|
<br><br>
|
|
|
|
---
|
|
## ::: ultralytics.nn.modules.transformer.MLPBlock
|
|
<br><br>
|
|
|
|
---
|
|
## ::: ultralytics.nn.modules.transformer.MLP
|
|
<br><br>
|
|
|
|
---
|
|
## ::: ultralytics.nn.modules.transformer.LayerNorm2d
|
|
<br><br>
|
|
|
|
---
|
|
## ::: ultralytics.nn.modules.transformer.MSDeformAttn
|
|
<br><br>
|
|
|
|
---
|
|
## ::: ultralytics.nn.modules.transformer.DeformableTransformerDecoderLayer
|
|
<br><br>
|
|
|
|
---
|
|
## ::: ultralytics.nn.modules.transformer.DeformableTransformerDecoder
|
|
<br><br>
|