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

Method forward

mogen/models/transformers/mdm.py:204–207  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

202 self.register_buffer('pe', pe)
203
204 def forward(self, x):
205 # not used in the final model
206 x = x + self.pe[:x.shape[0], :]
207 return self.dropout(x)
208
209
210class TimestepEmbedder(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected