MCPcopy Create free account
hub / github.com/deepbrainai-research/float / forward

Method forward

models/float/FMT.py:188–191  ·  view source on GitHub ↗
(self, x: torch.Tensor, c: torch.Tensor)

Source from the content-addressed store, hash-verified

186 return x * (1 + scale) + shift
187
188 def forward(self, x: torch.Tensor, c: torch.Tensor) -> torch.Tensor:
189 shift, scale = self.adaLN_modulation(c).chunk(2, dim=-1)
190 x = self.framewise_modulate(self.norm_final(x), shift, scale)
191 return self.linear(x)
192
193
194class FlowMatchingTransformer(BaseModel):

Callers

nothing calls this directly

Calls 1

framewise_modulateMethod · 0.95

Tested by

no test coverage detected