MCPcopy Create free account
hub / github.com/OpenImagingLab/FlashVSR / parse

Function parse

diffsynth/extensions/ImageQualityMetric/open_clip/utils.py:49–52  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

47# From PyTorch internals
48def _ntuple(n):
49 def parse(x):
50 if isinstance(x, collections.abc.Iterable):
51 return x
52 return tuple(repeat(x, n))
53 return parse
54
55

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected