MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / parse

Function parse

monai/networks/blocks/pos_embed_utils.py:26–29  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

24def _ntuple(n):
25
26 def parse(x):
27 if isinstance(x, collections.abc.Iterable) and not isinstance(x, str):
28 return tuple(x)
29 return tuple(repeat(x, n))
30
31 return parse
32

Callers

nothing calls this directly

Calls 1

repeatFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…