pytorch / 2 / generated / torch.cuda.default_stream.html

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 by current_device(), if device is None (default).

Return type

Stream

© 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