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

Method forward

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

Source from the content-addressed store, hash-verified

200 self.resblocks = nn.Sequential(*[ResidualAttentionBlock(width, heads, attn_mask) for _ in range(layers)])
201
202 def forward(self, x: torch.Tensor):
203 return self.resblocks(x)
204
205
206class VisionTransformer(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected