Skip to content

Commit 81661e3

Browse files
committed
fix mbconv residual block
1 parent 13f8e12 commit 81661e3

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

vit_pytorch/max_vit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def __init__(self, fn, dropout = 0.):
7171
def forward(self, x):
7272
out = self.fn(x)
7373
out = self.dropsample(out)
74-
return out
74+
return out + x
7575

7676
class Dropsample(nn.Module):
7777
def __init__(self, prob = 0):

0 commit comments

Comments
 (0)