MCPcopy Create free account
hub / github.com/FoundationVision/ByteTrack / get_async_norm_states

Function get_async_norm_states

yolox/utils/allreduce_norm.py:32–38  ·  view source on GitHub ↗
(module)

Source from the content-addressed store, hash-verified

30
31
32def get_async_norm_states(module):
33 async_norm_states = OrderedDict()
34 for name, child in module.named_modules():
35 if isinstance(child, ASYNC_NORM):
36 for k, v in child.state_dict().items():
37 async_norm_states[".".join([name, k])] = v
38 return async_norm_states
39
40
41def pyobj2tensor(pyobj, device="cuda"):

Callers 1

all_reduce_normFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected