MCPcopy Create free account
hub / github.com/GuyTevet/motion-diffusion-model / forward

Method forward

model/mdm.py:310–313  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

308 self.register_buffer('pe', pe)
309
310 def forward(self, x):
311 # not used in the final model
312 x = x + self.pe[:x.shape[0], :]
313 return self.dropout(x)
314
315
316class TimestepEmbedder(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected