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