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

Method stem

extract_clip/model.py:139–144  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

137
138 def forward(self, x):
139 def stem(x):
140 x = self.relu1(self.bn1(self.conv1(x)))
141 x = self.relu2(self.bn2(self.conv2(x)))
142 x = self.relu3(self.bn3(self.conv3(x)))
143 x = self.avgpool(x)
144 return x
145
146 x = x.type(self.conv1.weight.dtype)
147 x = stem(x)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected