MCPcopy
hub / github.com/whai362/PVT / is_dist_avail_and_initialized

Function is_dist_avail_and_initialized

classification/utils.py:187–192  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

185
186
187def is_dist_avail_and_initialized():
188 if not dist.is_available():
189 return False
190 if not dist.is_initialized():
191 return False
192 return True
193
194
195def get_world_size():

Callers 3

get_world_sizeFunction · 0.85
get_rankFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected