MCPcopy Create free account
hub / github.com/UVA-Computer-Vision-Lab/FrameINO / parse

Function parse

preprocess/SpaTrackV2_code/models/blocks.py:22–25  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

20# From PyTorch internals
21def _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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected