Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Ropedia/SpatialBench
/ make_2tuple
Function
make_2tuple
benchmark/models/zipmap/zipmap/layers/patch_embed.py:13–19 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
11
12
13
def
make_2tuple(x):
14
if
isinstance(x, tuple):
15
assert len(x) == 2
16
return
x
17
18
assert isinstance(x, int)
19
return
(x, x)
20
21
22
class
PatchEmbed(nn.Module):
Callers
1
__init__
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected