MCPcopy Create free account
hub / github.com/VCIP-RGBD/DFormer / get_dist_info

Function get_dist_info

utils/load_utils.py:6–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4
5
6def get_dist_info():
7 if dist.is_available():
8 initialized = dist.is_initialized()
9 else:
10 initialized = False
11 if initialized:
12 rank = dist.get_rank()
13 world_size = dist.get_world_size()
14 else:
15 rank = 0
16 world_size = 1
17 return rank, world_size
18
19
20def load_state_dict(module, state_dict, strict=False, logger=None):

Callers 5

load_state_dictFunction · 0.85
sync_random_seedFunction · 0.85
add_paramsMethod · 0.85
init_random_seedFunction · 0.85
multi_gpu_testFunction · 0.85

Calls

no outgoing calls

Tested by 1

multi_gpu_testFunction · 0.68