Skip to content

Conversation

chenwhql
Copy link
Contributor

@chenwhql chenwhql commented Aug 9, 2022

Polish phi design cn doc

因为要与intel协作推进phi建设工作,因此先将中文文档完善一下,下个PR增加英文文档

@paddle-bot
Copy link

paddle-bot bot commented Aug 9, 2022

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

@chenwhql chenwhql changed the title Polish phi cn doc Polish phi design cn doc Aug 10, 2022

### 1.1.6 Op 及 Kernel 参数规范化

Python 2.0 API 项目规范了 Paddle Python 端 API 的参数列表,使其变得简洁、易用,但是限于当时的情况,Op 层面的参数列表并没有规范化,因此会有不少早期开发的算子和 Python API 参数相差较多,例如 conv op 这种,Python API 仅有 7 个参数, C++ Op 却有 30+参数的分裂情况,而 API 和 Op 本质上是同一层概念,都是对一个运算的描述,参数应该是一致的。推理为了解决此问题,推动了算子定义增强项目,为部分不需要的参数添加了 AsExtra 以及 AsQuant 的声明,但并未从根本上解决问题,这也是 phi 算子库构建希望重点去解决的。
2020 年的 Python 2.0 API 项目规范了 Paddle Python 端 API 的参数列表,使其变得简洁、易用、标准,但是当时出于成本考虑,Op 层面的参数列表并没有规范化,因此会有不少早期开发的算子和 Python API 参数相差较多,例如 conv op 这种,Python API 仅有 8 个参数,但相应的 C++ Conv Op 却有 30+ 个参数的分裂情况。 API 和 Op 本质上是同一层的概念,都是对一个运算的描述,参数应该是一致的。推理为了解决此问题,发动算子定义增强项目,为部分不需要的参数添加了 AsExtra 以及 AsQuant 的声明,但并未从根本上解决问题,这也是 phi 算子库构建希望重点去解决的。
Copy link
Contributor

Choose a reason for hiding this comment

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

"发动算子定义增强项目",这里是不是改成"发起"更好一点?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done, thx

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.

LGTM

@chenwhql chenwhql merged commit 04d56aa into PaddlePaddle:develop Aug 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants