MCPcopy Create free account
hub / github.com/modelscope/FunASR / to_plain_list

Function to_plain_list

funasr/bin/export.py:16–27  ·  view source on GitHub ↗

To plain list. Args: cfg_item: TODO.

(cfg_item)

Source from the content-addressed store, hash-verified

14 cfg: Configuration overrides.
15 """
16 def to_plain_list(cfg_item):
17 """To plain list.
18
19 Args:
20 cfg_item: TODO.
21 """
22 if isinstance(cfg_item, ListConfig):
23 return OmegaConf.to_container(cfg_item, resolve=True)
24 elif isinstance(cfg_item, DictConfig):
25 return {k: to_plain_list(v) for k, v in cfg_item.items()}
26 else:
27 return cfg_item
28
29 kwargs = to_plain_list(cfg)
30

Callers 1

main_hydraFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…