Spec-Zone.ru › PyTorch 1

torch.cuda.set_stream

torch.cuda.set_stream(stream) [source]
Sets the current stream.This is a wrapper API to set the stream.

Usage of this function is discouraged in favor of the stream context manager.

Parameters:

stream (Stream) – selected stream. This function is a no-op if this argument is None.

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

Spec-Zone.ru

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