torch.mtia.current_stream¶ torch.mtia.current_stream(device=None)[來源][來源]¶ 傳回給定裝置目前選取的 Stream。 參數 device ( torch.device 或 int, 可選) – 選擇的裝置。如果 device 為 None (預設值),則返回由 current_device() 給定的目前裝置所選定的 Stream。 返回類型 Stream