mindspore.hal.communication_stream

mindspore.hal.communication_stream()[源代码]

返回此设备上的通信流,此接口将在后续版本中废弃,请使用接口 mindspore.runtime.communication_stream() 代替。

返回:

Stream,此设备上的通信流。

样例:

>>> import mindspore
>>> mindspore.hal.communication_stream()
Stream(device_name=Ascend, device_id:0, stream id:1)