MCPcopy Create free account
hub / github.com/CompVis/zigma / forward

Method forward

model_zigma.py:270–275  ·  view source on GitHub ↗
(self, t)

Source from the content-addressed store, hash-verified

268 return embedding
269
270 def forward(self, t):
271 t_freq = self.timestep_embedding(
272 t, self.frequency_embedding_size, dtype=self.dtype
273 )
274 t_emb = self.mlp(t_freq.to(dtype=self.dtype))
275 return t_emb
276
277
278class LabelEmbedder(nn.Module):

Callers

nothing calls this directly

Calls 2

timestep_embeddingMethod · 0.95
toMethod · 0.80

Tested by

no test coverage detected