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

Method forward

astroclip/modules.py:99–105  ·  view source on GitHub ↗
(self, x: torch.Tensor)

Source from the content-addressed store, hash-verified

97 self.dropout_layer = nn.Dropout(dropout) if dropout > 0 else None
98
99 def forward(self, x: torch.Tensor) -> torch.Tensor:
100 x = self.encoder(x)
101 x = self.activation(x)
102 x = self.decoder(x)
103 if self.dropout_layer is not None:
104 x = self.dropout_layer(x)
105 return x
106
107
108class SelfAttention(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected