Skip to content

Commit 5d8bdfd

Browse files
committed
review change
1 parent 2e4d469 commit 5d8bdfd

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

docs/api/paddle/cuda/Stream_cn.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ CUDA 流类,用于管理异步操作。
1010
参数
1111
::::::::::::
1212
- **device** (int|paddle.Place|str|int|None) - 设备 ID 或设备对象
13-
- **priority** (int, 可选) - 流的优先级,默认为 0; 可以是 1 或-1(高优先级)或 0 或 2(低优先级)。默认情况下,流具有优先级 2。
13+
- **priority** (int, 可选) - 流的优先级,默认为 None; 可以是 1 或-1(高优先级)或 0 或 2(低优先级)。默认情况下,流具有优先级 0。
14+
- **blocking** (bool|None,可选) - stream 是否同步执行。默认值为 False。
1415

1516
代码示例
1617
::::::::::::

docs/api/paddle/cuda/get_device_capability_cn.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ get_device_capability
99

1010
参数
1111
::::::::::::
12-
- **device** (int|str|paddle.Place|None) - 设备、设备的 id 或设备的字符串名称,如 ``npu:x``,从中获取设备的属性。如果设备为“无”,则该设备为当前设备,认值:无
12+
- **device** (int|str|paddle.Place|None) - 设备、设备的 id 或设备的字符串名称,如 ``npu:x``,从中获取设备的属性。如果设备为 None,则该设备为当前设备。
1313

1414
返回
1515
::::::::::::

docs/api/paddle/device/Stream_cn.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ custom device stream 的句柄。
1111
::::::::::::
1212

1313
- **device** (paddle.CUDAPlace|paddle.CustomPlace|str) - 希望分配 stream 的设备或设备类型。如果为 None,则为当前期望的 place。默认值为 None。
14-
- **priority** (int|None,可选) - stream 的优先级。优先级可以为 1(高优先级)或者 2(正常优先级)。如果优先级为 None,优先级为 2(正常优先级)。默认值为 None
14+
- **priority** (int|None,可选) - (int, 可选) - 流的优先级,默认为 None; 可以是 1 或-1(高优先级)或 0 或 2(低优先级)。默认情况下,流具有优先级 0
1515
- **blocking** (bool|None,可选) - stream 是否同步执行。默认值为 False。
1616

1717

docs/api/paddle/device/get_device_capability_cn.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ get_device_capability
99

1010
参数
1111
::::::::::::
12-
- **device** (int|str|paddle.Place|None) - 设备、设备的 id 或设备的字符串名称,如 npu:x',从中获取设备的属性。如果设备为“无”,则该设备为当前设备,认值:无
12+
- **device** (int|str|paddle.Place|None) - 设备、设备的 id 或设备的字符串名称,如 npu:x',从中获取设备的属性。如果设备为 None,则该设备为当前设备。
1313

1414
返回
1515
::::::::::::

0 commit comments

Comments
 (0)