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

Method forward

mogen/models/transformers/intergen.py:31–34  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

29 self.register_buffer('pe', pe)
30
31 def forward(self, x):
32 # not used in the final model
33 x = x + self.pe[:x.shape[1], :].unsqueeze(0)
34 return self.dropout(x)
35
36
37class MotionEncoder(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected