Skip to content

Commit

Permalink
Fix bad tuple typing fix that was on XLA branch bust missed on master…
Browse files Browse the repository at this point in the history
… merge
  • Loading branch information
rwightman committed Mar 22, 2022
1 parent 341b464 commit e1e037b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions timm/models/swin_transformer_v2_cr.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ def window_partition(x, window_size: Tuple[int, int]):


@register_notrace_function # reason: int argument is a Proxy
def window_reverse(windows, window_size: tuple[int, int], img_size: tuple[int, int]):
"""
def window_reverse(windows, window_size: Tuple[int, int], img_size: Tuple[int, int]):
"""`
Args:
windows: (num_windows * B, window_size[0], window_size[1], C)
window_size (Tuple[int, int]): Window size
Expand Down

0 comments on commit e1e037b

Please sign in to comment.