Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/UVA-Computer-Vision-Lab/FrameINO
/ _ntuple
Function
_ntuple
preprocess/SpaTrackV2_code/models/blocks.py:21–27 ·
view source on GitHub ↗
(n)
Source
from the content-addressed store, hash-verified
19
20
# From PyTorch internals
21
def
_ntuple(n):
22
def
parse(x):
23
if
isinstance(x, collections.abc.Iterable) and not isinstance(x, str):
24
return
tuple(x)
25
return
tuple(repeat(x, n))
26
27
return
parse
28
29
30
def
exists(val):
Callers
1
blocks.py
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected