mindspore.reset_auto_parallel_context

View Source On Gitee
mindspore.reset_auto_parallel_context()[source]

Reset auto parallel context attributes to the default values.

  • device_num: 1.

  • global_rank: 0.

  • gradients_mean: False.

  • gradient_fp32_sync: True.

  • parallel_mode: 'stand_alone'.

  • search_mode: 'recursive_programming'.

  • auto_parallel_search_mode: 'recursive_programming'.

  • parameter_broadcast: False.

  • strategy_ckpt_load_file: ''.

  • strategy_ckpt_save_file: ''.

  • full_batch: False.

  • enable_parallel_optimizer: False.

  • force_fp32_communication: False

  • enable_alltoall: False.

  • pipeline_stages: 1.

  • pipeline_result_broadcast: False.

  • fusion_threshold: 64.

  • auto_pipeline: False.

Examples

>>> import mindspore as ms
>>> ms.reset_auto_parallel_context()