MCPcopy Create free account
hub / github.com/pytorch/examples / reset_parameters

Method reset_parameters

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

Source from the content-addressed store, hash-verified

89 return out
90
91 def reset_parameters(self):
92 self.attention_norm.reset_parameters()
93 self.attention.reset_parameters()
94 self.ffn_norm.reset_parameters()
95 self.feed_forward.reset_parameters()
96
97
98# A toy transformer model, partly inspired by the nanoGPT model:

Callers

nothing calls this directly

Calls 1

reset_parametersMethod · 0.45

Tested by

no test coverage detected