MCPcopy Create free account
hub / github.com/OpenGVLab/UniFormerV2 / forward

Method forward

slowfast/models/uniformerv2_model.py:179–182  ·  view source on GitHub ↗
(self, x, y)

Source from the content-addressed store, hash-verified

177 return out
178
179 def forward(self, x, y):
180 x = x + self.drop_path(self.attention(self.ln_1(x), self.ln_3(y)))
181 x = x + self.drop_path(self.mlp(self.ln_2(x)))
182 return x
183
184
185class Transformer(nn.Module):

Callers

nothing calls this directly

Calls 1

attentionMethod · 0.95

Tested by

no test coverage detected