Skip to content

Commit 8f02a8b

Browse files
Apply suggestion from @sunzhongkai588
Co-authored-by: zachary sun <[email protected]>
1 parent 7bdb45c commit 8f02a8b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/api/paddle/get_default_device_cn.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ get_default_device
1515
- 'xpu:x' (XPU 设备)
1616
- 'npu:x' (NPU 设备)
1717

18+
如果全局设备未明确设置,将根据以下规则返回:
1819
如果全局设备未明确设置,将根据以下规则返回:
1920

20-
- 当 CUDA 可用时返回'gpu:x'
21-
- 当 CUDA 不可用时返回'cpu'
21+
- 当 CUDA 可用时返回 'gpu:x'
22+
- 当 CUDA 不可用时返回 'cpu'
2223

2324
返回
2425
:::::::::

0 commit comments

Comments
 (0)