mindspore.hal.default_stream

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()