Skip to content
New issue

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

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

Already on GitHub? # to your account

[张量 & phi::DenseTensor] Remove all ‘张量’ & LoDTensor in Zh docs #5477

Merged
merged 20 commits into from
Dec 5, 2022

Conversation

@paddle-bot
Copy link

paddle-bot bot commented Dec 3, 2022

感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-5477.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html
预览工具的更多说明,请参考:[Beta]飞桨文档预览工具

@Liyulingyue Liyulingyue changed the title Remove all ‘张量’ in Zh docs [张量 & phi::DenseTensor] Remove all ‘张量’ & LoDTensor in Zh docs Dec 4, 2022
@@ -51,7 +51,7 @@ Sequence Expand As Layer,该 OP 根据输入 ``y`` 的第 0 级 lod 对输入
参数
:::::::::

- **x** (Variable) - 输入变量,维度为 :math:`[M, K]` 的二维 Tensor 或 LoDTensor,第一维必须与输入 ``y`` 的第 0 层 lod 大小相同,且仅支持 lod_level 为 1。数据类型支持 int32,int64,float32 或 float64。
- **x** (Variable) - 输入变量,维度为 :math:`[M, K]` 的二维 Tensor,第一维必须与输入 ``y`` 的第 0 层 lod 大小相同,且仅支持 lod_level 为 1。数据类型支持 int32,int64,float32 或 float64。
- **y** (Variable) - 输入变量,LoDTensor,lod level 必须为 1。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里还有lod呢

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lod暂时不动,怕改崩了之后整个都过不去了

@@ -8,7 +8,7 @@ sequence_expand



序列扩张层(Sequence Expand Layer),根据输入 ``y`` 的第 ``ref_level`` 层 lod 对输入 ``x`` 进行扩展。``x`` 的 lod level 最多为 1,若 ``x`` 的 lod level 为 1,则 ``x`` 的 lod 大小必须与 ``y`` 的第 ``ref_level`` 层 lod 大小相等;若 ``x`` 的 lod level 为 0,则 ``x`` 的第一维大小必须与 ``y`` 第 ``ref_level`` 层大小相等。``x`` 的秩最少为 2,当 ``x`` 的秩大于 2 时,将被当作是一个二维张量处理
序列扩张层(Sequence Expand Layer),根据输入 ``y`` 的第 ``ref_level`` 层 lod 对输入 ``x`` 进行扩展。``x`` 的 lod level 最多为 1,若 ``x`` 的 lod level 为 1,则 ``x`` 的 lod 大小必须与 ``y`` 的第 ``ref_level`` 层 lod 大小相等;若 ``x`` 的 lod level 为 0,则 ``x`` 的第一维大小必须与 ``y`` 第 ``ref_level`` 层大小相等。``x`` 的秩最少为 2,当 ``x`` 的秩大于 2 时,将被当作是一个二维 Tensor 处理
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里也有lod

@@ -53,7 +53,7 @@ sequence_expand
参数
:::::::::

- **x** (Variable) - 输入变量,维度为 :math:`[M, K]` ,lod level 至多 1 的二维 Tensor 或 LoDTensor。数据类型支持 int32,int64,float32 或 float64。
- **x** (Variable) - 输入变量,维度为 :math:`[M, K]` ,lod level 至多 1 的二维 Tensor。数据类型支持 int32,int64,float32 或 float64。
- **y** (Variable) - 输入变量,lod level 至少为 1 的 LoDTensor。数据类型不限。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LoDTensor

@@ -15,7 +15,7 @@ ____________________________________
参数
:::::::::

- **cond** (callable) - 返回 boolean 类型张量的可调用函数,用以判断循环是否继续执行。``cond`` 的参数和 ``loop_vars`` 相对应。
- **cond** (callable) - 返回 boolean 类型 Tensor 的可调用函数,用以判断循环是否继续执行。``cond`` 的参数和 ``loop_vars`` 相对应。
- **body** (callable) - 循环执行的结构体。其返回一个包含 tensor 或 LoDTensorArray 的列表或元组,且这些 tensor 或 LoDTensorArray 的长度,结构,类型和 ``loop_vars`` 中的相同。且``body`` 的参数与 ``loop_vars`` 相对应。
- **loop_vars** (list|tuple) - 包含 tensor 或 LoDTensorArray 的列表或是元组,将其传入至 ``cond`` 和 ``body`` 中,得到循环条件和输出值。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LoDTensorArray

Copy link
Collaborator

@luotao1 luotao1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Liyulingyue @Ligoml 可以考虑把 external 目录给删了,3年都没更新了

@Ligoml
Copy link
Collaborator

Ligoml commented Dec 5, 2022

@Liyulingyue @Ligoml 可以考虑把 external 目录给删了,3年都没更新了

done

Copy link
Collaborator

@Ligoml Ligoml left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good job!LGTM
fluid下的api文档修改没有仔细看,fluid api文档移出的时候再确认吧
lod tensor没有改完,下一个pr修改

@luotao1 luotao1 merged commit 5efcac1 into PaddlePaddle:develop Dec 5, 2022
@Liyulingyue Liyulingyue deleted the TensorTest1 branch December 5, 2022 13:21
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants