mirror of
https://github.com/lucidrains/DALLE2-pytorch.git
synced 2025-12-20 10:14:19 +01:00
scaffold for latent diffusion
This commit is contained in:
12
dalle2_pytorch/latent_diffusion.py
Normal file
12
dalle2_pytorch/latent_diffusion.py
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
import torch
|
||||||
|
import torch.nn.functional as F
|
||||||
|
from torch import nn, einsum
|
||||||
|
|
||||||
|
from einops import rearrange
|
||||||
|
|
||||||
|
class LatentDiffusion(nn.Module):
|
||||||
|
def __init__(self):
|
||||||
|
super().__init__()
|
||||||
|
|
||||||
|
def forward(self, x):
|
||||||
|
return x
|
||||||
Reference in New Issue
Block a user