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