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

Function _get_reduce_op

yolox/utils/allreduce_norm.py:52–56  ·  view source on GitHub ↗
(op_name)

Source from the content-addressed store, hash-verified

50
51
52def _get_reduce_op(op_name):
53 return {
54 "sum": dist.ReduceOp.SUM,
55 "mean": dist.ReduceOp.SUM,
56 }[op_name.lower()]
57
58
59def all_reduce(py_dict, op="sum", group=None):

Callers 1

all_reduceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected