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

Method forward

mogen/models/transformers/diffusion_transformer.py:25–28  ·  view source on GitHub ↗
(self, x, emb, **kwargs)

Source from the content-addressed store, hash-verified

23 self.proj_out = StylizationBlock(latent_dim, time_embed_dim, dropout)
24
25 def forward(self, x, emb, **kwargs):
26 y = self.linear2(self.dropout(self.activation(self.linear1(x))))
27 y = x + self.proj_out(y, emb)
28 return y
29
30
31class DecoderLayer(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected