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