MCPcopy Index your code
hub / github.com/modelscope/DiffSynth-Studio / forward

Method forward

diffsynth/models/omnigen.py:229–232  ·  view source on GitHub ↗
(self, t, dtype=torch.float32)

Source from the content-addressed store, hash-verified

227 return embedding
228
229 def forward(self, t, dtype=torch.float32):
230 t_freq = self.timestep_embedding(t, self.frequency_embedding_size).to(dtype)
231 t_emb = self.mlp(t_freq)
232 return t_emb
233
234
235class FinalLayer(nn.Module):

Callers

nothing calls this directly

Calls 2

timestep_embeddingMethod · 0.95
toMethod · 0.45

Tested by

no test coverage detected