mirror of
https://github.com/lucidrains/DALLE2-pytorch.git
synced 2025-12-18 17:34:18 +01:00
new einops is torch compile friendly
This commit is contained in:
@@ -1,10 +1,3 @@
|
|||||||
import torch
|
|
||||||
from packaging import version
|
|
||||||
|
|
||||||
if version.parse(torch.__version__) >= version.parse('2.0.0'):
|
|
||||||
from einops._torch_specific import allow_ops_in_compiled_graph
|
|
||||||
allow_ops_in_compiled_graph()
|
|
||||||
|
|
||||||
from dalle2_pytorch.version import __version__
|
from dalle2_pytorch.version import __version__
|
||||||
from dalle2_pytorch.dalle2_pytorch import DALLE2, DiffusionPriorNetwork, DiffusionPrior, Unet, Decoder
|
from dalle2_pytorch.dalle2_pytorch import DALLE2, DiffusionPriorNetwork, DiffusionPrior, Unet, Decoder
|
||||||
from dalle2_pytorch.dalle2_pytorch import OpenAIClipAdapter, OpenClipAdapter
|
from dalle2_pytorch.dalle2_pytorch import OpenAIClipAdapter, OpenClipAdapter
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
__version__ = '1.15.3'
|
__version__ = '1.15.4'
|
||||||
|
|||||||
2
setup.py
2
setup.py
@@ -30,7 +30,7 @@ setup(
|
|||||||
'clip-anytorch>=2.5.2',
|
'clip-anytorch>=2.5.2',
|
||||||
'coca-pytorch>=0.0.5',
|
'coca-pytorch>=0.0.5',
|
||||||
'ema-pytorch>=0.0.7',
|
'ema-pytorch>=0.0.7',
|
||||||
'einops>=0.6.1',
|
'einops>=0.7.0',
|
||||||
'embedding-reader',
|
'embedding-reader',
|
||||||
'kornia>=0.5.4',
|
'kornia>=0.5.4',
|
||||||
'numpy',
|
'numpy',
|
||||||
|
|||||||
Reference in New Issue
Block a user