On this page
torch.cuda.default_stream
torch.cuda.default_stream(device=None)
[source]-
Returns 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
© 2024, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://pytorch.org/docs/2.1/generated/torch.cuda.default_stream.html