# Diffusion The class diagram is illustrated below, where - red blocks are classes having abstract methods. - yellow blocks are classes used during training, with `sample()` not being implemented. - green blocks are classes used during inference, with `sample()` implemented.