mindspore.hal.default_stream

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

Return default stream on this device.

Returns

stream (Stream), default stream.

Examples

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