MCPcopy Create free account
hub / github.com/THUDM/GLM / forward

Method forward

model/distributed.py:91–93  ·  view source on GitHub ↗
(self, *inputs, **kwargs)

Source from the content-addressed store, hash-verified

89 self.allreduce_params = allreduce_params
90
91 def forward(self, *inputs, **kwargs):
92 self.needs_reduction = True
93 return self.module(*inputs, **kwargs)
94
95 def state_dict(self, destination=None, prefix='', keep_vars=False):
96 # [h.remove() for h in self.hook_handles]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected