mindspore.restore_group_info_list

mindspore.restore_group_info_list(group_info_file_name)[source]

Build rank list, the checkpoint of ranks in the rank list has the same contents with the local rank who saves the group_info_file_name. To save the group info file, please export GROUP_INFO_FILE environment variables like “export GROUP_INFO_FILE=/data/group_info.pb”.

Parameters

group_info_file_name (str) – Name of group information file.

Returns

List, the rank list.

Raises
  • ValueError – group information file is incorrect.

  • TypeError – group_info_file_name is not str.

Examples

>>> restore_list = restore_group_info_list("./group_info.pb")