torch.mtia.default_stream#
- torch.mtia.default_stream(device=None)[源代码]#
返回给定设备的默认
Stream
。- 参数
device (torch.device 或 int, 可选) – 选择的设备。如果
device
为None
(默认值),则返回当前设备(由current_device()
给出)的默认Stream
。- 返回类型
返回给定设备的默认 Stream
。
device (torch.device 或 int, 可选) – 选择的设备。如果 device
为 None
(默认值),则返回当前设备(由 current_device()
给出)的默认 Stream
。