torchgpe.utils.configuration.parse_config#

torchgpe.utils.configuration.parse_config(path)[source]#

Parses a YAML configuration file.

Parameters:

path (str) – The path to the configuration file.

Returns:

The parsed configuration.

Return type:

dict

Raises:

yaml.YAMLError – If the configuration file is not valid YAML.