Rate this Page
★★★★★
torch.cuda.current_stream#
- torch.cuda.current_stream(device=None)[source]#
Return the currently selected
Streamfor a given device.- Parameters
device (torch.device orint,optional) – selected device. Returnsthe currently selected
Streamfor the current device, givenbycurrent_device(), ifdeviceisNone(default).- Return type
On this page