Skip to content

Commit d93cd84

Browse files
committed
let windowed tokens exchange information across heads a la talking heads prior to pointwise attention in sep-vit
1 parent 5d4c798 commit d93cd84

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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 = '0.32.1',
6+
version = '0.32.2',
77
license='MIT',
88
description = 'Vision Transformer (ViT) - Pytorch',
99
author = 'Phil Wang',

vit_pytorch/sep_vit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def __init__(
103103
nn.LayerNorm(dim_head),
104104
nn.GELU(),
105105
Rearrange('b h n c -> b (h c) n'),
106-
nn.Conv1d(inner_dim, inner_dim * 2, 1, groups = heads),
106+
nn.Conv1d(inner_dim, inner_dim * 2, 1),
107107
Rearrange('b (h c) n -> b h n c', h = heads),
108108
)
109109

0 commit comments

Comments
 (0)