Skip to content

Commit c364df1

Browse files
committed
fix doc in stream_guard
1 parent 6321ed1 commit c364df1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

python/paddle/device/cuda/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ def stream_guard(stream=None):
159159
160160
Examples:
161161
.. code-block:: python
162+
163+
# required: gpu
162164
import paddle
163165
164166
s = paddle.device.cuda.Stream()

0 commit comments

Comments
 (0)