MCPcopy Create free account
hub / github.com/SHI-Labs/Versatile-Diffusion / timestep_embedding

Function timestep_embedding

lib/model_zoo/diffusion_utils.py:131–151  ·  view source on GitHub ↗

Create sinusoidal timestep embeddings. :param timesteps: a 1-D Tensor of N indices, one per batch element. These may be fractional. :param dim: the dimension of the output. :param max_period: controls the minimum frequency of the embeddings. :return: an [N

(timesteps, dim, max_period=10000, repeat_only=False)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 14

forwardMethod · 0.85
forwardMethod · 0.85
forwardMethod · 0.85
forwardMethod · 0.85
forwardMethod · 0.85
forwardMethod · 0.85
forwardMethod · 0.85
forwardMethod · 0.85
forwardMethod · 0.85
forwardMethod · 0.85
forward_dcMethod · 0.85
forwardMethod · 0.85

Calls 1

toMethod · 0.80

Tested by

no test coverage detected