MCPcopy Create free account
hub / github.com/BrainCoTech/RevoLab / _resolve_scale_keys_from_config

Function _resolve_scale_keys_from_config

scripts/hora/export_onnx.py:232–238  ·  view source on GitHub ↗
(cfg: Any | None)

Source from the content-addressed store, hash-verified

230
231
232def _resolve_scale_keys_from_config(cfg: Any | None) -> list[float]:
233 scale_list = _get_cfg_value(cfg, "env_runtime.randomize_scale_list", None)
234 if scale_list is not None:
235 parsed = [float(s) for s in scale_list]
236 if len(parsed) > 0:
237 return parsed
238 return []
239
240
241def main() -> None:

Callers 1

mainFunction · 0.85

Calls 1

_get_cfg_valueFunction · 0.85

Tested by

no test coverage detected