MCPcopy Create free account
hub / github.com/Kitware/COAT / forward

Method forward

models/transformer.py:250–256  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

248 h, w = output_size
249
250 def forward(self, x):
251 feat = self.embedding(x)
252 b, n, c = feat.size()
253 feat = feat.permute(0, 2, 1)
254 feat = self.to_patch(feat)
255
256 return feat
257
258class MultiHeadedAttention(nn.Module):
259 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected