MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / forward

Method forward

diffusers/src/diffusers/models/embeddings.py:773–781  ·  view source on GitHub ↗
(self, timesteps)

Source from the content-addressed store, hash-verified

771 self.scale = scale
772
773 def forward(self, timesteps):
774 t_emb = get_timestep_embedding(
775 timesteps,
776 self.num_channels,
777 flip_sin_to_cos=self.flip_sin_to_cos,
778 downscale_freq_shift=self.downscale_freq_shift,
779 scale=self.scale,
780 )
781 return t_emb
782
783
784class GaussianFourierProjection(nn.Module):

Callers

nothing calls this directly

Calls 1

get_timestep_embeddingFunction · 0.85

Tested by

no test coverage detected