评价此页

torch.cpu.current_stream#

torch.cpu.current_stream(device=None)[源代码]#

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

参数

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

返回类型

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