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

Method forward

slowfast/models/uniformer.py:130–134  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

128 self.mlp = CMlp(in_features=dim, hidden_features=mlp_hidden_dim, act_layer=act_layer, drop=drop)
129
130 def forward(self, x):
131 x = x + self.pos_embed(x)
132 x = x + self.drop_path(self.conv2(self.attn(self.conv1(self.norm1(x)))))
133 x = x + self.drop_path(self.mlp(self.norm2(x)))
134 return x
135
136
137class SABlock(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected