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

Method forward

extract_clip/model.py:42–55  ·  view source on GitHub ↗
(self, x: torch.Tensor)

Source from the content-addressed store, hash-verified

40 ]))
41
42 def forward(self, x: torch.Tensor):
43 identity = x
44
45 out = self.relu1(self.bn1(self.conv1(x)))
46 out = self.relu2(self.bn2(self.conv2(out)))
47 out = self.avgpool(out)
48 out = self.bn3(self.conv3(out))
49
50 if self.downsample is not None:
51 identity = self.downsample(x)
52
53 out += identity
54 out = self.relu3(out)
55 return out
56
57
58class AttentionPool2d(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected