A device stream wrapper around StreamBase. :param device: Which device the stream runn on. If device is None, the device is the current device. Default: None.
System Message: ERROR/3 (/usr/local/lib/python3.8/site-packages/paddle/device/__init__.py:docstring of paddle.device.Stream, line 3)
Unexpected indentation.
It can be gpu, gpu:x,``custom_device``, custom_device:x, where custom_device is the name of CustomDevicec, where x is the index of the GPUs, XPUs. And it can be paddle.CUDAPlace(n) or paddle.CustomPlace(n).
System Message: WARNING/2 (/usr/local/lib/python3.8/site-packages/paddle/device/__init__.py:docstring of paddle.device.Stream, line 5)
Block quote ends without a blank line; unexpected unindent.
Parameters
priority (int, optional) – priority of the CUDA stream. Can be either 1 (high priority) or 2 (low priority). By default, streams have priority 2.
Returns
The stream.
Return type
Stream
Examples
System Message: ERROR/3 (/usr/local/lib/python3.8/site-packages/paddle/device/__init__.py:docstring of paddle.device.Stream, line 16)
Error in “code-block” directive: maximum 1 argument(s) allowed, 6 supplied.
Synchronizes with another stream. All future work submitted to this stream will wait until all kernels submitted to a given stream at the time of call complete. :param stream: a stream to synchronize. :type stream: Stream
Returns
None.
Examples
System Message: ERROR/3 (/usr/local/lib/python3.8/site-packages/paddle/device/__init__.py:docstring of paddle.device.Stream.wait_stream, line 11)
Error in “code-block” directive: maximum 1 argument(s) allowed, 6 supplied.