MCPcopy Index your code
hub / github.com/FoundationVision/ByteTrack / is_parallel

Function is_parallel

yolox/utils/ema.py:11–18  ·  view source on GitHub ↗

check if model is in parallel mode.

(model)

Source from the content-addressed store, hash-verified

9
10
11def is_parallel(model):
12 """check if model is in parallel mode."""
13
14 parallel_type = (
15 nn.parallel.DataParallel,
16 nn.parallel.DistributedDataParallel,
17 )
18 return isinstance(model, parallel_type)
19
20
21def copy_attr(a, b, include=(), exclude=()):

Callers 2

__init__Method · 0.85
updateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected