MCPcopy Index your code
hub / github.com/pytorch/examples / reset_parameters

Method reset_parameters

distributed/FSDP2/model.py:53–57  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

51 return self.resid_dropout(self.wo(output))
52
53 def reset_parameters(self):
54 self.wq.reset_parameters()
55 self.wk.reset_parameters()
56 self.wv.reset_parameters()
57 self.wo.reset_parameters()
58
59
60class FeedForward(nn.Module):

Callers 3

reset_parametersMethod · 0.45
reset_parametersMethod · 0.45
reset_parametersMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected