torch.mtia.current_stream#
- torch.mtia.current_stream(device=None)[source]#
返回给定设备上当前选定的
Stream
。- 参数
device (torch.device 或 int, optional) – selected device。如果
device
为None
(默认),则返回当前选定的Stream
,由current_device()
提供。- 返回类型
返回给定设备上当前选定的 Stream
。
device (torch.device 或 int, optional) – selected device。如果 device
为 None
(默认),则返回当前选定的 Stream
,由 current_device()
提供。