Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit00e07b7

Browse files
committed
force einops 0.6.1 or greater and call allow_ops_in_compiled_graph
1 parent0069857 commit00e07b7

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

‎dalle2_pytorch/__init__.py‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
importtorch
2+
frompackagingimportversion
3+
4+
ifversion.parse(torch.__version__)>=version.parse('2.0.0'):
5+
fromeinops._torch_specificimportallow_ops_in_compiled_graph
6+
allow_ops_in_compiled_graph()
7+
18
fromdalle2_pytorch.versionimport__version__
29
fromdalle2_pytorch.dalle2_pytorchimportDALLE2,DiffusionPriorNetwork,DiffusionPrior,Unet,Decoder
310
fromdalle2_pytorch.dalle2_pytorchimportOpenAIClipAdapter,OpenClipAdapter

‎dalle2_pytorch/version.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__='1.14.0'
1+
__version__='1.14.2'

‎setup.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
'clip-anytorch>=2.5.2',
3131
'coca-pytorch>=0.0.5',
3232
'ema-pytorch>=0.0.7',
33-
'einops>=0.6',
33+
'einops>=0.6.1',
3434
'embedding-reader',
3535
'kornia>=0.5.4',
3636
'numpy',

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp