mindspore.hal.set_cur_stream ============================= .. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/br_base/resource/_static/logo_source.svg :target: https://gitee.com/mindspore/mindspore/blob/br_base/docs/api/api_python/hal/mindspore.hal.set_cur_stream.rst :alt: 查看源文件 .. py:function:: mindspore.hal.set_cur_stream(stream) 设置当前流,此接口将在后续版本中废弃,请使用接口 :func:`mindspore.runtime.set_cur_stream` 代替。 参数: - **stream** (Stream) - 指定的流。如果是 ``None`` ,这个上下文管理器无操作。