fix mbconv residual block

This commit is contained in:
Phil Wang
2022-04-06 16:43:06 -07:00
parent 13f8e123bb
commit 81661e3966
2 changed files with 2 additions and 2 deletions

View File

@@ -3,7 +3,7 @@ from setuptools import setup, find_packages
setup(
name = 'vit-pytorch',
packages = find_packages(exclude=['examples']),
version = '0.33.1',
version = '0.33.2',
license='MIT',
description = 'Vision Transformer (ViT) - Pytorch',
author = 'Phil Wang',

View File

@@ -71,7 +71,7 @@ class MBConvResidual(nn.Module):
def forward(self, x):
out = self.fn(x)
out = self.dropsample(out)
return out
return out + x
class Dropsample(nn.Module):
def __init__(self, prob = 0):