torch.mtia.default_stream¶ torch.mtia.default_stream(device=None)[源][源]¶ 返回給定裝置的預設 Stream。 引數 device (torch.device 或 int, 可選) – 所選裝置。如果 device 是 None (預設值),則返回由 current_device() 給出的當前裝置的預設 Stream。 返回型別 Stream