Skip to content

Commit

Permalink
no longer needed with einops 0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Oct 20, 2023
1 parent efb9460 commit 53fe345
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
setup(
name = 'vit-pytorch',
packages = find_packages(exclude=['examples']),
version = '1.6.0',
version = '1.6.1',
license='MIT',
description = 'Vision Transformer (ViT) - Pytorch',
long_description_content_type = 'text/markdown',
Expand Down
7 changes: 0 additions & 7 deletions vit_pytorch/__init__.py
Original file line number Diff line number Diff line change
@@ -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 vit_pytorch.vit import ViT
from vit_pytorch.simple_vit import SimpleViT

Expand Down

0 comments on commit 53fe345

Please sign in to comment.