mindchemistry.utils.load_yaml_config

查看源文件
mindchemistry.utils.load_yaml_config(file_path)[源代码]

加载一个 YAML 配置文件。

参数:
  • file_path (str) - YAML 配置文件的路径。

返回:
  • config (dict) - 以字典格式返回的配置信息。

支持平台:

Ascend CPU GPU

样例:

>>> from mindchemistry.utils import load_yaml_config
>>> config_file_path = 'xxx'    # 'xxx' is the file_path
>>> configs = load_yaml_config(config_file_path)