MCPcopy Create free account
hub / github.com/MotrixLab/FineMoGen / forward

Method forward

mogen/models/transformers/remodiffuse.py:24–27  ·  view source on GitHub ↗
(self, x, **kwargs)

Source from the content-addressed store, hash-verified

22 self.dropout = nn.Dropout(dropout)
23
24 def forward(self, x, **kwargs):
25 y = self.linear2(self.dropout(self.activation(self.linear1(x))))
26 y = x + y
27 return y
28
29
30class EncoderLayer(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected