评价此页

torch.cuda.set_stream#

torch.cuda.set_stream(stream)[source]#
设置当前流。这是一个用于设置流的包装 API。

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

参数

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