MCPcopy Create free account
hub / github.com/apple/ml-pointersect / set_needs_reduction

Function set_needs_reduction

cdslib/core/utils/multigpu_utils.py:143–144  ·  view source on GitHub ↗
(self, input, output)

Source from the content-addressed store, hash-verified

141 param.register_hook(allreduce_hook)
142
143 def set_needs_reduction(self, input, output):
144 self.needs_reduction = True
145
146 module.register_forward_hook(set_needs_reduction)
147 return module

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected