评价此页

torch.xpu.current_stream#

torch.xpu.current_stream(device=None)[source]#

返回指定设备上当前选定的Stream

参数

device (torch.deviceint, optional) – 选定的设备。如果 deviceNone(默认),则返回当前设备(由 current_device() 指定)上当前选定的Stream

返回类型