MCPcopy Create free account
hub / github.com/GeWu-Lab/AnyTouch2 / forward

Method forward

sparsh/train_task.py:47–51  ·  view source on GitHub ↗
(self, x: torch.Tensor)

Source from the content-addressed store, hash-verified

45 self._sensor_type = sensor_type
46
47 def forward(self, x: torch.Tensor) -> torch.Tensor:
48 sensor = torch.full(
49 (x.shape[0],), self._sensor_type, dtype=torch.long, device=x.device
50 )
51 return self.base_model(x, sensor_type=sensor, probe=True)
52
53
54def load_model_from_multi_clip(ckpt, model):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected