Skip to content

Commit 53fe345

Browse files
committed
no longer needed with einops 0.7
1 parent efb9460 commit 53fe345

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
setup(
44
name = 'vit-pytorch',
55
packages = find_packages(exclude=['examples']),
6-
version = '1.6.0',
6+
version = '1.6.1',
77
license='MIT',
88
description = 'Vision Transformer (ViT) - Pytorch',
99
long_description_content_type = 'text/markdown',

vit_pytorch/__init__.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
import torch
2-
from packaging import version
3-
4-
if version.parse(torch.__version__) >= version.parse('2.0.0'):
5-
from einops._torch_specific import allow_ops_in_compiled_graph
6-
allow_ops_in_compiled_graph()
7-
81
from vit_pytorch.vit import ViT
92
from vit_pytorch.simple_vit import SimpleViT
103

0 commit comments

Comments
 (0)