mindspore.ops.communication.set_comm_ops_inplace
- mindspore.ops.communication.set_comm_ops_inplace(is_enable, func_list=None)[source]
Set inplace attribute to communication function.
- Parameters
- Raises
TypeError – If is_enable is not bool.
TypeError – If func_list is not
Noneand not list.ValueError – The function name in func_list is invalid.
- Supported Platforms:
Ascend
Examples
Note
Before running the following examples, you need to configure the communication environment variables.
For Ascend devices, it is recommended to use the msrun startup method without any third-party or configuration file dependencies. Please see the msrun startup for more details.
>>> from mindspore.ops.communication import set_comm_ops_inplace >>> set_comm_ops_inplace(True)