评价此页

torch.cpu.current_stream#

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

返回给定设备的当前选定的Stream

参数

device (torch.deviceint, 可选) – 已忽略。

返回类型

注意:此函数仅用于方便设备无关的代码