MCPcopy Create free account
hub / github.com/PolymathicAI/AstroCLIP / forward

Method forward

astroclip/modules.py:243–246  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

241 self.mlp = MLP(embedding_dim, hidden_dim, nn.GELU(), dropout=dropout, bias=bias)
242
243 def forward(self, x):
244 x = x + self.attention(self.layernorm1(x))
245 x = x + self.mlp(self.layernorm2(x))
246 return x
247
248
249class LayerNorm(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected