MCPcopy Create free account
hub / github.com/SpatialVLA/SpatialVLA / tree_map

Function tree_map

data/utils/data_utils.py:21–24  ·  view source on GitHub ↗
(fn: Callable, tree: Dict)

Source from the content-addressed store, hash-verified

19import shutil
20
21def tree_map(fn: Callable, tree: Dict) -> Dict:
22 return {
23 k: tree_map(fn, v) if isinstance(v, dict) else fn(v) for k, v in tree.items()
24 }
25
26
27def tree_merge(*trees: Dict) -> Dict:

Callers 1

make_dataset_from_rldsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected