mindspore.get_auto_parallel_context
- mindspore.get_auto_parallel_context(attr_key)[source]
Get the auto parallel context attribute value according to the key. This API will be deprecated and removed in future versions.
- Parameters
attr_key (str) – The key of the attribute.
- Returns
Attribute value according to the key.
- Raises
ValueError – If input key is not an attribute in auto parallel context.
Examples
>>> import mindspore as ms >>> parallel_mode = ms.get_auto_parallel_context("parallel_mode") >>> dataset_strategy = ms.get_auto_parallel_context("dataset_strategy")