mindspore.runtime.communication_stream

View Source On Gitee
mindspore.runtime.communication_stream()[source]

Return communication stream on this device.

Returns

stream (Stream), communication stream.

Examples

>>> import mindspore as ms
>>> ms.set_device("Ascend", 0)
>>> ms.runtime.communication_stream()
Stream(device_name=Ascend, device_id:0, stream id:1)