Skip to content

Commit 3c0283f

Browse files
committed
Fix reparameterize for NextViT. Fix #2187
1 parent e748805 commit 3c0283f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

timm/models/nextvit.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def __init__(
197197
def reparameterize(self):
198198
if not self.is_fused:
199199
merge_pre_bn(self.mlp.fc1, self.norm)
200-
self.norm = None
200+
self.norm = nn.Identity()
201201
self.is_fused = True
202202

203203
def forward(self, x):

0 commit comments

Comments
 (0)