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

Method get_cast_device

eval/utils/utils_odyssey/visual.py:323–324  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

321 return self.resblocks[0].mlp.c_fc.weight.dtype
322
323 def get_cast_device(self) -> torch.device:
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:

Callers 1

forwardMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected