gigl.common.utils.hydra_config#
Hydra composition support for GiGL protobuf YAML configs.
Functions#
|
Compose a YAML config with Hydra using its parent as the config root. |
Module Contents#
- gigl.common.utils.hydra_config.compose_yaml_config(uri)[source]#
Compose a YAML config with Hydra using its parent as the config root.
A foreign Hydra context (e.g. a user application under
@hydra.main) is snapshotted before composition and restored afterwards.- Parameters:
uri (gigl.common.LocalUri) – Primary YAML config URI.
- Returns:
A fully composed and resolved mapping.
- Raises:
ValueError – If the result is not a mapping.
- Return type:
dict[str, Any]