(self, x: torch.Tensor, c: torch.Tensor)
| 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 | |
| 194 | class FlowMatchingTransformer(BaseModel): |
nothing calls this directly
no test coverage detected