We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33791c8 commit 2171831Copy full SHA for 2171831
timm/layers/pos_embed_sincos.py
@@ -81,7 +81,7 @@ def build_sincos2d_pos_embed(
81
def swap_shape_xy(seq: List[int]) -> List[int]:
82
if len(seq) < 2:
83
return seq
84
- return [seq[1], seq[0]] + seq[2:]
+ return [seq[1], seq[0]] + list(seq[2:])
85
86
87
def build_fourier_pos_embed(
0 commit comments