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

Method __init__

sparsh/train_task.py:42–45  ·  view source on GitHub ↗
(self, base_model: nn.Module, sensor_type: int)

Source from the content-addressed store, hash-verified

40 model_encoder(x) without providing sensor_type explicitly."""
41
42 def __init__(self, base_model: nn.Module, sensor_type: int):
43 super().__init__()
44 self.base_model = base_model
45 self._sensor_type = sensor_type
46
47 def forward(self, x: torch.Tensor) -> torch.Tensor:
48 sensor = torch.full(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected