Skip to content

Commit da7c39e

Browse files
Update docs/api/paddle/cuda/max_memory_allocated_cn.rst
Co-authored-by: zachary sun <[email protected]>
1 parent f30b392 commit da7c39e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api/paddle/cuda/max_memory_allocated_cn.rst

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

1010
.. note::
1111
Paddle 中分配给 Tensor 的显存块大小会进行 256 字节对齐,因此可能大于 Tensor 实际需要的显存大小。例如,一个 shape 为[1]的 float32 类型 Tensor 会占用 256 字节的显存,即使存储一个 float32 类型数据实际只需要 4 字节。
12-
paddle.device.max_memory_allocated 功能一致
12+
:ref:`cn_api_paddle_device_max_memory_allocated` 功能一致
1313

1414
参数
1515
::::::::::::

0 commit comments

Comments
 (0)