MCPcopy Create free account
hub / github.com/VisionXLab/OF-Diff / forward

Method forward

ldm/modules/midas/midas/vit.py:38–42  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

36 self.project = nn.Sequential(nn.Linear(2 * in_features, in_features), nn.GELU())
37
38 def forward(self, x):
39 readout = x[:, 0].unsqueeze(1).expand_as(x[:, self.start_index :])
40 features = torch.cat((x[:, self.start_index :], readout), -1)
41
42 return self.project(features)
43
44
45class Transpose(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected