Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
181
def
is_dist():
182
return
dist.is_available() and dist.is_initialized()
183
184
185
def
is_master(group=None):
Callers
10
get_logger
Function · 0.90
get_device
Method · 0.90
train_step
Method · 0.90
get_metric_values
Function · 0.90
train_step
Method · 0.90
train_step
Method · 0.90
train_step
Method · 0.90
get_dist_info
Function · 0.85
is_master
Function · 0.85
make_tmp_dir
Function · 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…