mindspore.ops.communication.set_comm_ops_inplace ================================================== .. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/master/resource/_static/logo_source.svg :target: https://atomgit.com/mindspore/mindspore/blob/master/docs/api/api_python/ops/mindspore.ops.communication.set_comm_ops_inplace.rst :alt: 查看源文件 .. py:function:: mindspore.ops.communication.set_comm_ops_inplace(is_enable, func_list=None) 设置通信函数的inplace属性。 参数: - **is_enable** (bool) - 是否启用inplace。 - **func_list** (list,可选) - 指示哪些函数设置了inplace属性。默认值: ``None`` 。 异常: - **TypeError** - 如果 `is_enable` 不是bool。 - **TypeError** - 如果 `func_list` 不是 ``None`` 且不是list。 - **ValueError** - `func_list` 中的函数名无效。 样例: .. note:: .. include:: ../mint/mindspore.mint.comm_note.txt