StreamContext¶ class torch.cpu.StreamContext(stream)[原始碼][原始碼]¶ 選擇給定 stream 的上下文管理器。 注意:此類僅用於方便編寫與裝置無關的程式碼