torch.cpu.current_stream¶ torch.cpu.current_stream(device=None)[source][source]¶ 傳回給定裝置目前選定的 Stream。 參數 device (torch.device 或 int, 選用) – 忽略。 傳回類型 Stream 注意:此函式僅為了方便與裝置無關的程式碼而存在