| sd_sampler_begin | R Documentation |
Between begin and end the diffusion model keeps its GPU compute buffer alive
across sd_denoise_step calls, avoiding a large realloc per
step. Must be paired; sd_sampler_end frees the buffer. Not reentrant.
sd_sample_stepwise manages this for you.
sd_sampler_begin(ctx)
sd_sampler_end(ctx)
ctx |
SD context |
Invisibly NULL.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.