評價此頁

torch.xpu.current_stream#

torch.xpu.current_stream(device=None)[原始碼]#

返回給定裝置的當前選定的 Stream

引數

device (torch.deviceint, 可選) – 選定的裝置。如果 deviceNone(預設),則返回當前裝置透過 current_device() 獲得的當前選定的 Stream

返回型別