torch.mtia.current_stream

torch.mtia.current_stream(device=None)[源代码]

返回给定设备当前选择的 Stream

参数

device (torch.deviceint, 可选) – 选定的设备。如果 deviceNone(默认值),则返回当前设备(由 current_device() 给出)的当前选定的 Stream

返回类型

Stream

本页目录