This commit is contained in:
Phil Wang
2022-04-12 13:02:18 -07:00
parent bd1e3b676e
commit e504e0e554
@@ -335,8 +335,6 @@ class GaussianDiffusion(nn.Module):
self.num_timesteps = int(timesteps)
self.loss_type = loss_type
to_torch = partial(torch.tensor, dtype=torch.float32)
self.register_buffer('betas', betas)
self.register_buffer('alphas_cumprod', alphas_cumprod)
self.register_buffer('alphas_cumprod_prev', alphas_cumprod_prev)