Spec-Zone.ru › PyTorch 1

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/1.13/generated/torch.cuda.default_stream.html

Spec-Zone.ru

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