Module neuralops.core.config
Simple YAML config loader.
Functions
def load_config(path: str) ‑> dict[str, typing.Any]-
Expand source code
def load_config(path: str) -> dict[str, Any]: """Load config from disk or config.""" with open(path) as f: return yaml.safe_load(f)Load config from disk or config.
def save_config(config: dict[str, typing.Any], path: str) ‑> None-
Expand source code
def save_config(config: dict[str, Any], path: str) -> None: """Persist config to disk.""" with open(path, "w") as f: yaml.safe_dump(config, f)Persist config to disk.