評價此頁

torch.mtia.current_stream#

torch.mtia.current_stream(device=None)[原始碼]#

返回給定裝置的當前選定 Stream

引數

device (torch.deviceint, optional) – 選定的裝置。如果 deviceNone (預設),則返回當前裝置上透過 current_device() 獲取的當前選定 Stream

返回型別