MCPcopy Create free account
hub / github.com/Shank2358/TS-Conv / de_parallel

Function de_parallel

utils/utils_basic.py:637–639  ·  view source on GitHub ↗
(model)

Source from the content-addressed store, hash-verified

635
636
637def de_parallel(model):
638 # De-parallelize a model: returns single-GPU model if model is of type DP or DDP
639 return model.module if is_parallel(model) else model
640
641
642def copy_attr(a, b, include=(), exclude=()):

Callers 2

__init__Method · 0.85
updateMethod · 0.85

Calls 1

is_parallelFunction · 0.85

Tested by

no test coverage detected