mindspore.hal.synchronize ============================= .. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/master/resource/_static/logo_source.svg :target: https://gitee.com/mindspore/mindspore/blob/master/docs/api/api_python/hal/mindspore.hal.synchronize.rst :alt: 查看源文件 .. py:function:: mindspore.hal.synchronize() 同步当前设备上的所有流。(每个MindSpore进程只占用一个设备)