mindspore.hal.current_stream

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

Return current stream used on this device, this api will be deprecated and removed in future versions, please use the api mindspore.runtime.current_stream() instead.

Returns

stream (Stream), current stream.

Examples

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