Skip to content

Commit 4d9c87b

Browse files
committed
Fix polarity on prefix remove
1 parent cb3e5b7 commit 4d9c87b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

timm/models/naflexvit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1199,7 +1199,7 @@ def _pool(
11991199
q_len=1,
12001200
dtype=x.dtype,
12011201
)
1202-
if self.pool_include_prefix:
1202+
if not self.pool_include_prefix:
12031203
x = x[:, self.num_prefix_tokens:]
12041204
x = self.attn_pool(x, attn_mask=attn_mask)
12051205
return x

0 commit comments

Comments
 (0)