MCPcopy Create free account
hub / github.com/NVIDIA/DALI / _map_structure

Function _map_structure

dali/python/nvidia/dali/_conditionals.py:53–58  ·  view source on GitHub ↗

Custom wrapper over optree.tree_map that filters it out from the user-visible stack trace for error reporting purposes.

(func, *structures, **kwargs)

Source from the content-addressed store, hash-verified

51
52
53def _map_structure(func, *structures, **kwargs):
54 """Custom wrapper over optree.tree_map that filters it out from the user-visible stack trace
55 for error reporting purposes.
56 """
57 with _autograph.CustomModuleFilter(optree):
58 return optree.tree_map(func, *structures, **kwargs)
59
60
61class _Branch(Enum):

Callers 3

register_data_nodesMethod · 0.85
if_stmtMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected