Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docathon][Fix note No.27-28] #7155

Merged
merged 1 commit into from
Mar 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions docs/api/paddle/static/Variable_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -176,16 +176,16 @@ persistable
'''''''''

.. note::
1. 该属性我们即将废弃,此介绍仅为了帮助用户理解概念,1.6 版本后用户可以不再关心该属性
2. 该属性除参数以外默认值为 ``False``,而参数的该属性默认值为 ``True`` 。
1. 该属性我们即将废弃,此介绍仅为了帮助用户理解概念,1.6 版本后用户可以不再关心该属性
2. 该属性除参数以外默认值为 ``False``,而参数的该属性默认值为 ``True`` 。

此 :ref:`api_guide_Variable` 是否是长期存活的 :ref:`api_guide_Variable`。

name
'''''''''

.. note::
静态图模式下,同一个 :ref:`api_guide_Block` 中的两个或更多 :ref:`api_guide_Variable` 拥有相同 ``name`` 将意味着他们会共享相同的内容。通常我们使用这种方式来实现参数共享。
静态图模式下,同一个 :ref:`api_guide_Block` 中的两个或更多 :ref:`api_guide_Variable` 拥有相同 ``name`` 将意味着他们会共享相同的内容。通常我们使用这种方式来实现参数共享。

此 :ref:`api_guide_Variable` 的名字(str)。

Expand All @@ -194,38 +194,38 @@ shape
'''''''''

.. note::
该属性是只读属性。
该属性是只读属性。

此 :ref:`api_guide_Variable` 在每个维度上的元素数量。

dtype
'''''''''

.. note::
该属性是只读属性。
该属性是只读属性。

此 :ref:`api_guide_Variable` 的实际数据类型。

lod_level
'''''''''

.. note::
该属性是只读属性。
该属性是只读属性。

此 :ref:`api_guide_Variable` 的 ``LoD`` 信息。

type
'''''''''

.. note::
该属性是只读属性。
该属性是只读属性。

此 :ref:`api_guide_Variable` 的内存模型,例如是:``DenseTensor``,或者 ``SelectedRows``。

ndim
'''''''''

.. note::
该属性是只读属性。
该属性是只读属性。

此 :ref:`api_guide_Variable` 的维度,也称作 rank。
2 changes: 1 addition & 1 deletion docs/api/paddle/static/set_program_state_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ set_program_state
如果参数的 shape 或 dtype 不匹配,则会引发异常。

.. note::
必须在运行 start_up_program 之后调用此函数。
必须在运行 start_up_program 之后调用此函数。

参数
::::::::::::
Expand Down