MCPcopy Index your code
hub / github.com/NVIDIA/TensorRT-LLM / forward

Method forward

tensorrt_llm/layers/embedding.py:556–564  ·  view source on GitHub ↗
(self, timesteps)

Source from the content-addressed store, hash-verified

554 self.scale = scale
555
556 def forward(self, timesteps) -> Tensor:
557 t_emb = get_timestep_embedding(
558 timesteps,
559 self.num_channels,
560 flip_sin_to_cos=self.flip_sin_to_cos,
561 downscale_freq_shift=self.downscale_freq_shift,
562 scale=self.scale,
563 )
564 return t_emb
565
566
567class PixArtAlphaTextProjection(Module):

Callers 1

test_timestepsMethod · 0.95

Calls 1

get_timestep_embeddingFunction · 0.70

Tested by 1

test_timestepsMethod · 0.76