mirror of
https://github.com/wassname/denoising-diffusion-pytorch.git
synced 2026-10-30 13:10:09 +08:00
cleanup
This commit is contained in:
1 parent
bd1e3b676e
commit
e504e0e554
1 file changed
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user