mirror of
https://github.com/wassname/denoising-diffusion-pytorch.git
synced 2026-10-05 12:40:36 +08:00
11 lines
235 B
Python
11 lines
235 B
Python
import torch
|
|
from torch import nn, einsum
|
|
import torch.nn.functional as F
|
|
from einops import rearrange
|
|
|
|
class DenoisingDiffusion(nn.Module):
|
|
def __init__(self):
|
|
super().__init__()
|
|
|
|
def forward(self, x):
|
|
return x |