MCPcopy Create free account
hub / github.com/OpenMeshLab/MeshXL / all_reduce_average

Function all_reduce_average

utils/dist.py:80–82  ·  view source on GitHub ↗
(tensor)

Source from the content-addressed store, hash-verified

78
79
80def all_reduce_average(tensor):
81 val = all_reduce_sum(tensor)
82 return val / get_world_size()
83
84
85# Function from DETR - https://github.com/facebookresearch/detr/blob/master/util/misc.py

Callers

nothing calls this directly

Calls 2

all_reduce_sumFunction · 0.85
get_world_sizeFunction · 0.85

Tested by

no test coverage detected