MCPcopy Index your code
hub / github.com/modelscope/modelscope / is_dist

Function is_dist

modelscope/utils/torch_utils.py:181–182  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

179
180
181def is_dist():
182 return dist.is_available() and dist.is_initialized()
183
184
185def is_master(group=None):

Callers 10

get_loggerFunction · 0.90
get_deviceMethod · 0.90
train_stepMethod · 0.90
get_metric_valuesFunction · 0.90
train_stepMethod · 0.90
train_stepMethod · 0.90
train_stepMethod · 0.90
get_dist_infoFunction · 0.85
is_masterFunction · 0.85
make_tmp_dirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…