torch.cuda.default_stream¶
- torch.cuda.default_stream(device=None)[source]¶
Return the default
Stream
for a given device.- Parameters
device (torch.device or int, optional) – selected device. Returns the default
Stream
for the current device, given bycurrent_device()
, ifdevice
isNone
(default).- Return type