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

Function build_parallel

modelscope/trainers/parallel/builder.py:13–20  ·  view source on GitHub ↗

build parallel Args: cfg (:obj:`ConfigDict`): config dict for parallel object. default_args (dict, optional): Default initialization arguments.

(cfg: ConfigDict, default_args: dict = None)

Source from the content-addressed store, hash-verified

11
12
13def build_parallel(cfg: ConfigDict, default_args: dict = None):
14 """ build parallel
15
16 Args:
17 cfg (:obj:`ConfigDict`): config dict for parallel object.
18 default_args (dict, optional): Default initialization arguments.
19 """
20 return build_from_cfg(cfg, PARALLEL, default_args=default_args)

Callers 2

to_parallelMethod · 0.90
to_parallelMethod · 0.85

Calls 1

build_from_cfgFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…