File size: 2,566 Bytes
8166792
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
---
description: Optimize your PyTorch models with Ultralytics YOLO's torch_utils functions such as ModelEMA, select_device, and is_parallel.
keywords: Ultralytics YOLO, Torch, Utils, Pytorch, Object Detection
---

## ModelEMA
---
### ::: ultralytics.yolo.utils.torch_utils.ModelEMA
<br><br>

## EarlyStopping
---
### ::: ultralytics.yolo.utils.torch_utils.EarlyStopping
<br><br>

## torch_distributed_zero_first
---
### ::: ultralytics.yolo.utils.torch_utils.torch_distributed_zero_first
<br><br>

## smart_inference_mode
---
### ::: ultralytics.yolo.utils.torch_utils.smart_inference_mode
<br><br>

## select_device
---
### ::: ultralytics.yolo.utils.torch_utils.select_device
<br><br>

## time_sync
---
### ::: ultralytics.yolo.utils.torch_utils.time_sync
<br><br>

## fuse_conv_and_bn
---
### ::: ultralytics.yolo.utils.torch_utils.fuse_conv_and_bn
<br><br>

## fuse_deconv_and_bn
---
### ::: ultralytics.yolo.utils.torch_utils.fuse_deconv_and_bn
<br><br>

## model_info
---
### ::: ultralytics.yolo.utils.torch_utils.model_info
<br><br>

## get_num_params
---
### ::: ultralytics.yolo.utils.torch_utils.get_num_params
<br><br>

## get_num_gradients
---
### ::: ultralytics.yolo.utils.torch_utils.get_num_gradients
<br><br>

## model_info_for_loggers
---
### ::: ultralytics.yolo.utils.torch_utils.model_info_for_loggers
<br><br>

## get_flops
---
### ::: ultralytics.yolo.utils.torch_utils.get_flops
<br><br>

## get_flops_with_torch_profiler
---
### ::: ultralytics.yolo.utils.torch_utils.get_flops_with_torch_profiler
<br><br>

## initialize_weights
---
### ::: ultralytics.yolo.utils.torch_utils.initialize_weights
<br><br>

## scale_img
---
### ::: ultralytics.yolo.utils.torch_utils.scale_img
<br><br>

## make_divisible
---
### ::: ultralytics.yolo.utils.torch_utils.make_divisible
<br><br>

## copy_attr
---
### ::: ultralytics.yolo.utils.torch_utils.copy_attr
<br><br>

## get_latest_opset
---
### ::: ultralytics.yolo.utils.torch_utils.get_latest_opset
<br><br>

## intersect_dicts
---
### ::: ultralytics.yolo.utils.torch_utils.intersect_dicts
<br><br>

## is_parallel
---
### ::: ultralytics.yolo.utils.torch_utils.is_parallel
<br><br>

## de_parallel
---
### ::: ultralytics.yolo.utils.torch_utils.de_parallel
<br><br>

## one_cycle
---
### ::: ultralytics.yolo.utils.torch_utils.one_cycle
<br><br>

## init_seeds
---
### ::: ultralytics.yolo.utils.torch_utils.init_seeds
<br><br>

## strip_optimizer
---
### ::: ultralytics.yolo.utils.torch_utils.strip_optimizer
<br><br>

## profile
---
### ::: ultralytics.yolo.utils.torch_utils.profile
<br><br>