MCPcopy Create free account
hub / github.com/NVlabs/DiffPure / get_timestep_embedding

Function get_timestep_embedding

ddpm/unet_ddpm.py:14–32  ·  view source on GitHub ↗

This matches the implementation in Denoising Diffusion Probabilistic Models: From Fairseq. Build sinusoidal embeddings. This matches the implementation in tensor2tensor, but differs slightly from the description in Section 3.5 of "Attention Is All You Need".

(timesteps, embedding_dim)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

forwardMethod · 0.70

Calls 1

logMethod · 0.45

Tested by

no test coverage detected