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

Function all_reduce_norm

yolox/utils/allreduce_norm.py:97–103  ·  view source on GitHub ↗

All reduce norm statistics in different devices.

(module)

Source from the content-addressed store, hash-verified

95
96
97def all_reduce_norm(module):
98 """
99 All reduce norm statistics in different devices.
100 """
101 states = get_async_norm_states(module)
102 states = all_reduce(states, op="mean")
103 module.load_state_dict(states, strict=False)

Callers 1

after_epochMethod · 0.90

Calls 2

get_async_norm_statesFunction · 0.85
all_reduceFunction · 0.85

Tested by

no test coverage detected