Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MiniMax-AI/VTP
/ make_2tuple
Function
make_2tuple
vtp/models/layers/embeddings.py:9–15 ·
view source on GitHub ↗
Convert input to 2-tuple.
(x)
Source
from the content-addressed store, hash-verified
7
8
9
def
make_2tuple(x):
10
""
"Convert input to 2-tuple."
""
11
if
isinstance(x, tuple):
12
assert len(x) == 2
13
return
x
14
assert isinstance(x, int)
15
return
(x, x)
16
17
18
class
PatchEmbed(nn.Module):
Callers
1
__init__
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected