MCPcopy Create free account
hub / github.com/MiniMax-AI/VTP / parse

Function parse

vtp/models/utils/text_utils.py:71–74  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

69# From PyTorch internals
70def _ntuple(n):
71 def parse(x):
72 if isinstance(x, collections.abc.Iterable):
73 return x
74 return tuple(repeat(x, n))
75 return parse
76
77

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected