Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
185
class
Transformer(nn.Module):
Callers
nothing calls this directly
Calls
1
attention
Method · 0.95
Tested by
no test coverage detected