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

Method forward

astroclip/models/specformer.py:51–54  ·  view source on GitHub ↗

Forward pass through the model.

(self, x: Tensor)

Source from the content-addressed store, hash-verified

49 self._reset_parameters_datapt()
50
51 def forward(self, x: Tensor) -> torch.Tensor:
52 """Forward pass through the model."""
53 x = self.preprocess(x)
54 return self.forward_without_preprocessing(x)
55
56 def forward_without_preprocessing(self, x: Tensor):
57 """Forward pass through the model.

Callers

nothing calls this directly

Calls 2

preprocessMethod · 0.95

Tested by

no test coverage detected