評價此頁

torch.cpu.current_stream#

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

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

引數

device (torch.deviceint, optional) – 忽略。

返回型別

注意:此函式僅用於方便裝置無關的程式碼