Update davit.py

pull/1630/head
Fredo Guan 3 years ago
parent 5f0a9e9a9f
commit 143a239e93

@ -70,6 +70,7 @@ class ConvPosEnc(nn.Module):
to_2tuple(k // 2), to_2tuple(k // 2),
groups=dim) groups=dim)
self.normtype = normtype self.normtype = normtype
self.norm = nn.Identity()
if self.normtype == 'batch': if self.normtype == 'batch':
self.norm = nn.BatchNorm2d(dim) self.norm = nn.BatchNorm2d(dim)
elif self.normtype == 'layer': elif self.normtype == 'layer':

Loading…
Cancel
Save