Skip to content

Commit 2171831

Browse files
committed
Fix scripting?
1 parent 33791c8 commit 2171831

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

timm/layers/pos_embed_sincos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def build_sincos2d_pos_embed(
8181
def swap_shape_xy(seq: List[int]) -> List[int]:
8282
if len(seq) < 2:
8383
return seq
84-
return [seq[1], seq[0]] + seq[2:]
84+
return [seq[1], seq[0]] + list(seq[2:])
8585

8686

8787
def build_fourier_pos_embed(

0 commit comments

Comments
 (0)