MCPcopy Create free account
hub / github.com/OpenImagingLab/FlashVSR / forward

Method forward

diffsynth/models/hunyuan_dit.py:223–226  ·  view source on GitHub ↗
(self, t)

Source from the content-addressed store, hash-verified

221 self.frequency_embedding_size = frequency_embedding_size
222
223 def forward(self, t):
224 t_freq = timestep_embedding(t, self.frequency_embedding_size).type(self.mlp[0].weight.dtype)
225 t_emb = self.mlp(t_freq)
226 return t_emb
227
228
229class HunyuanDiT(torch.nn.Module):

Callers

nothing calls this directly

Calls 1

timestep_embeddingFunction · 0.85

Tested by

no test coverage detected