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

Method forward

intermediate_source/transformer_building_blocks.py:766–767  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

764 self.w3 = nn.Linear(dim, hidden_dim, bias=False, **factory_kwargs)
765
766 def forward(self, x):
767 return self.w2(F.silu(self.w1(x)) * self.w3(x))
768
769
770########################################################################

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected