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

Method forward

slowfast/models/common.py:26–34  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

24 self.drop = nn.Dropout(drop_rate)
25
26 def forward(self, x):
27 x = self.fc1(x)
28 x = self.act(x)
29 if self.drop_rate > 0.0:
30 x = self.drop(x)
31 x = self.fc2(x)
32 if self.drop_rate > 0.0:
33 x = self.drop(x)
34 return x
35
36
37class Permute(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected