Skip to content

Commit 935950c

Browse files
committed
Fix F.sdpa attn drop prob
1 parent 0737cf2 commit 935950c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

timm/models/nextvit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ def forward(self, x):
263263
if self.fused_attn:
264264
x = F.scaled_dot_product_attention(
265265
q, k, v,
266-
dropout_p=self.attn_drop if self.training else 0.,
266+
dropout_p=self.attn_drop.p if self.training else 0.,
267267
)
268268
else:
269269
q = q * self.scale

0 commit comments

Comments
 (0)