MCPcopy Create free account
hub / github.com/EvelynFan/FaceFormer / forward

Method forward

faceformer.py:58–60  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

56 pe = pe.repeat(1, repeat_num, 1)
57 self.register_buffer('pe', pe)
58 def forward(self, x):
59 x = x + self.pe[:, :x.size(1), :]
60 return self.dropout(x)
61
62class Faceformer(nn.Module):
63 def __init__(self, args):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected