Skip to content

Commit 6ddd1c2

Browse files
committed
Fix
1 parent 148d477 commit 6ddd1c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchvision/models/maxvit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ def __init__(
688688
p_stochastic=p_stochastic[p_idx : p_idx + num_layers],
689689
),
690690
)
691-
input_size = self.blocks[-1].grid_size
691+
input_size = self.blocks[-1].grid_size # type: ignore[assignment]
692692
p_idx += num_layers
693693

694694
# see https://github.com/google-research/maxvit/blob/da76cf0d8a6ec668cc31b399c4126186da7da944/maxvit/models/maxvit.py#L1137-L1158

0 commit comments

Comments
 (0)