Adapting the Denoising Diffusion Probabilistic Models as described in the original paper (https://arxiv.org/pdf/2006.11239.pdf) for PyTorch.