| ggml_timestep_embedding | R Documentation |
Creates sinusoidal timestep embeddings as used in diffusion models. Reference: CompVis/stable-diffusion util.py timestep_embedding
ggml_timestep_embedding(ctx, timesteps, dim, max_period = 10000L)
ctx |
GGML context |
timesteps |
Input tensor of timestep values [N] |
dim |
Embedding dimension |
max_period |
Maximum period for sinusoidal embedding (default 10000) |
Tensor of shape [N, dim] with timestep embeddings
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.