We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 547bf94 commit ec6c48bCopy full SHA for ec6c48b
setup.py
@@ -6,7 +6,7 @@
6
setup(
7
name = 'vit-pytorch',
8
packages = find_packages(exclude=['examples']),
9
- version = '1.7.1',
+ version = '1.7.2',
10
license='MIT',
11
description = 'Vision Transformer (ViT) - Pytorch',
12
long_description=long_description,
vit_pytorch/look_vit.py
@@ -77,7 +77,7 @@ def __init__(
77
78
self.split_heads = Rearrange('b n (h d) -> b h n d', h = heads)
79
80
- self.norm = LayerNorm(dim)
+ self.norm = LayerNorm(dim) if not reuse_attention else nn.Identity()
81
self.attend = nn.Softmax(dim = -1)
82
self.dropout = nn.Dropout(dropout)
83
0 commit comments