MCPcopy Create free account
hub / github.com/Sense-GVT/DeCLIP / hook

Method hook

prototype/utils/dist.py:72–73  ·  view source on GitHub ↗
(*ignore)

Source from the content-addressed store, hash-verified

70
71 def _make_hook(self, name, p, i):
72 def hook(*ignore):
73 link.allreduce_async(p.grad.data)
74 return hook
75
76 def sync_gradients(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected