MCPcopy Create free account
hub / github.com/ImprintLab/MedSegDiff / mpi_weighted_mean

Function mpi_weighted_mean

guided_diffusion/logger.py:412–439  ·  view source on GitHub ↗

Copied from: https://github.com/openai/baselines/blob/ea25b9e8b234e6ee1bca43083f8f3cf974143998/baselines/common/mpi_util.py#L110 Perform a weighted average over dicts that are each on a different node Input: local_name2valcount: dict mapping key -> (value, count) Returns: key -> mea

(comm, local_name2valcount)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

dumpkvsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected