File size: 899 Bytes
d439dc1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
.. role:: hidden
    :class: hidden-section

mmengine.dist
===================================

.. contents:: mmengine.dist
   :depth: 2
   :local:
   :backlinks: top

.. currentmodule:: mmengine.dist

dist
----------------

.. autosummary::
   :toctree: generated
   :nosignatures:

   gather
   gather_object
   all_gather
   all_gather_object
   all_reduce
   all_reduce_dict
   all_reduce_params
   broadcast
   sync_random_seed
   broadcast_object_list
   collect_results
   collect_results_cpu
   collect_results_gpu

utils
----------------

.. autosummary::
   :toctree: generated
   :nosignatures:

   get_dist_info
   init_dist
   init_local_group
   get_backend
   get_world_size
   get_rank
   get_local_size
   get_local_rank
   is_main_process
   master_only
   barrier
   is_distributed
   get_local_group
   get_default_group
   get_data_device
   get_comm_device
   cast_data_device