mindspore.hal.current_stream

View Source On Gitee
mindspore.hal.current_stream()[source]

Return current stream used on this device.

Returns

stream (Stream), current stream.

Examples

>>> import mindspore as ms
>>> cur_stream = ms.hal.current_stream()
>>> assert cur_stream == ms.hal.default_stream()