xnn.common.config.loaders.from_yaml#

xnn.common.config.loaders.from_yaml(path)[source]#

Load a YAML config file into a Config.

The file is parsed with yaml.safe_load() and funneled through from_dict().

Parameters:

path (str) – Path to the YAML file.

Returns:

The populated configuration object.

Return type:

Config