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

Method forward

distributed/FSDP2/model.py:86–89  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

84 )
85
86 def forward(self, x):
87 h = x + self.attention(self.attention_norm(x))
88 out = h + self.feed_forward(self.ffn_norm(h))
89 return out
90
91 def reset_parameters(self):
92 self.attention_norm.reset_parameters()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected