Spec-Zone.ru › PyTorch 1

StreamContext

class torch.cuda.StreamContext(stream) [source]

Context-manager that selects a given stream.

All CUDA kernels queued within its context will be enqueued on a selected stream.

Parameters:

Stream (Stream) – selected stream. This manager is a no-op if it’s None.

Note

Streams are per-device.

© 2024, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://pytorch.org/docs/1.13/generated/torch.cuda.StreamContext.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API