MCPcopy Create free account
hub / github.com/OpenBMB/AgentCPM-GUI / forward

Method forward

eval/utils/utils_odyssey/visual.py:326–329  ·  view source on GitHub ↗
(self, x: torch.Tensor, attn_mask: Optional[torch.Tensor] = None)

Source from the content-addressed store, hash-verified

324 return self.resblocks[0].mlp.c_fc.weight.device
325
326 def forward(self, x: torch.Tensor, attn_mask: Optional[torch.Tensor] = None):
327 for r in self.resblocks:
328 x = r(x, attn_mask=attn_mask)
329 return x
330
331
332class VisionTransformer(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected