torch.cpu.stream
-
torch.cpu.stream(stream)[source] -
Wrapper around the Context-manager StreamContext that selects a given stream.
N.B. This function only exists to facilitate device-agnostic code
- Return type
torch.cpu.stream(stream) [source]
Wrapper around the Context-manager StreamContext that selects a given stream.
N.B. This function only exists to facilitate device-agnostic code
© 2025, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://docs.pytorch.org/docs/2.9/generated/torch.cpu.stream.html