File size: 1,657 Bytes
ab854b9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
description: Get in-depth insights about Ultralytics Tiny Encoder Modules such as Conv2d_BN, MBConv, ConvLayer, Attention, BasicLayer, and TinyViT. Improve your understanding of machine learning model components.
keywords: Ultralytics, Tiny Encoder, Conv2d_BN, MBConv, ConvLayer, Attention, BasicLayer, TinyViT, Machine learning modules, Ultralytics models
---

# Reference for `ultralytics/models/sam/modules/tiny_encoder.py`

!!! note

    Full source code for this file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/sam/modules/tiny_encoder.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/sam/modules/tiny_encoder.py). Help us fix any issues you see by submitting a [Pull Request](https://docs.ultralytics.com/help/contributing/) ๐Ÿ› ๏ธ. Thank you ๐Ÿ™!

---
## ::: ultralytics.models.sam.modules.tiny_encoder.Conv2d_BN
<br><br>

---
## ::: ultralytics.models.sam.modules.tiny_encoder.PatchEmbed
<br><br>

---
## ::: ultralytics.models.sam.modules.tiny_encoder.MBConv
<br><br>

---
## ::: ultralytics.models.sam.modules.tiny_encoder.PatchMerging
<br><br>

---
## ::: ultralytics.models.sam.modules.tiny_encoder.ConvLayer
<br><br>

---
## ::: ultralytics.models.sam.modules.tiny_encoder.Mlp
<br><br>

---
## ::: ultralytics.models.sam.modules.tiny_encoder.Attention
<br><br>

---
## ::: ultralytics.models.sam.modules.tiny_encoder.TinyViTBlock
<br><br>

---
## ::: ultralytics.models.sam.modules.tiny_encoder.BasicLayer
<br><br>

---
## ::: ultralytics.models.sam.modules.tiny_encoder.LayerNorm2d
<br><br>

---
## ::: ultralytics.models.sam.modules.tiny_encoder.TinyViT
<br><br>