megemini
megemini
### 文档链接&描述 Document Links & Description 中文文档书写时,遇到几个问题: 1. 一个文档可能涉及多个地方的修改,如 xxx_cn.rst, Overview_cn.rst(又可能存在多级), Tensor_cn.rst, pytorch_api_mapping_cn.rst 等,一不小心就遗漏了。 建议:在《文档贡献指南》中增加引导,在哪里增加的 api,需要对应 增加/修改 哪些中文文档。或者,只需要开发者添加中文文档,文档结构由工具根据英文文档生成,从而保持一致性。 2. Tensor_cn.rst 书写不规范,仍存在第一个 Tensor 参数,如: ```python multi_dot(x, name=None) ::::::::: ``` 建议:增加参数检查,或者由工具根据中英文文档自动生成,并删除第一个参数。 3....
### PR Category User Experience ### PR Types Others ### Description 关联 PR : https://github.com/PaddlePaddle/Paddle/issues/63597 任务:1-2 根据 https://github.com/PaddlePaddle/Paddle/pull/50211 生成 tensor.pyi 涉及文件: - `.pre-commit-config.yaml` pre-commit 不检查 tensor.pyi - `python/CMakeLists.txt` 编译后执行 gen_tensor_stub.py...
### PR Category User Experience ### PR Types Others ### Description 关联 PR : https://github.com/PaddlePaddle/Paddle/issues/63597 任务:1-4 在 CI 中引入 mypy 对 docstring 中示例代码的检查。与 xdoctest 的检查项共用一个 CI: `PR-CI-Static-Check`。如果后续有必要的话可以单独开一个 CI 。 涉及文件:...
### PR Category User Experience ### PR Types New features ### Description [NO.13 为 Paddle 新增 RAdam / NAdam API](https://github.com/PaddlePaddle/community/blob/master/hackathon/hackathon_6th/%E3%80%90Hackathon%206th%E3%80%91%E5%BC%80%E6%BA%90%E8%B4%A1%E7%8C%AE%E4%B8%AA%E4%BA%BA%E6%8C%91%E6%88%98%E8%B5%9B%E6%A1%86%E6%9E%B6%E5%BC%80%E5%8F%91%E4%BB%BB%E5%8A%A1%E5%90%88%E9%9B%86.md#no13-%E4%B8%BA-paddle-%E6%96%B0%E5%A2%9E-radam--nadam-api) 关联 RFC: - https://github.com/PaddlePaddle/community/pull/849 - https://github.com/PaddlePaddle/community/pull/875 本地测试通过,并且,使用以下代码,与 PyTorch 的结果进行比对,结果一致: ```...
## 任务简介 ### 为 Paddle 框架 API 添加类型提示(Type Hints) Python 在 [3.0 版本](https://peps.python.org/pep-3107/)引入了类型提示功能,并在 [PEP 484](https://peps.python.org/pep-0484/) 中将其规范化。之后随着相关规范和工具的逐渐完善,类型提示逐渐成为 Python 代码中的标准实践,如今较新的主流库也基本都提供了类型提示。由于 Python 本身类型高度动态化,类型提示的存在可以帮助开发者更快地了解代码的类型信息,提高代码的可读性和可维护性,结合工具还可以提供静态类型检查,在开发阶段就能发现一些潜在的类型错误。Paddle 框架由于历史原因尚未提供类型提示,本任务希望引入尽可能多的对 Paddle 有利的类型提示。 更多信息参考 [为 Paddle 框架 API 添加类型提示(Type Hints)](https://github.com/PaddlePaddle/community/blob/master/hackathon/hackathon_6th/%E3%80%90Hackathon%206th%E3%80%91FundableProject%E4%BB%BB%E5%8A%A1%E5%90%88%E9%9B%86.md#%E4%B8%80%E4%B8%BA-paddle-%E6%A1%86%E6%9E%B6-api-%E6%B7%BB%E5%8A%A0%E7%B1%BB%E5%9E%8B%E6%8F%90%E7%A4%BAtype-hints)...
`commit` https://github.com/PaddlePaddle/Paddle/commit/bff34fb14dd9d9111bfcbc2f523a403b6a589d2a **⚠️提示⚠️** `python/paddle/distributed` 模块难度稍高,可先认领其他模块任务 🤟🤟🤟 #### 🔚 第 1 批 🎉 | 序号 | 文件 | API 数量 | 认领人 Github id | PR 链接 | | ------ |...
### PR Category Others ### PR Types Others ### Description 临时 PR 用于监测全量类型标注,请勿合入 关联 PR https://github.com/PaddlePaddle/Paddle/issues/65008 @SigureMo
### PR Category User Experience ### PR Types Bug fixes ### Description 修改部分示例中的错误,以及添加 ignore 关联 PR https://github.com/PaddlePaddle/Paddle/issues/65008 https://github.com/PaddlePaddle/Paddle/pull/65397 @SigureMo
### PR Category User Experience ### PR Types Improvements ### Description 类型标注: - `python/paddle/distributed/communication/all_gather.py` ### Related links - https://github.com/PaddlePaddle/Paddle/issues/65008 @SigureMo @megemini
### PR Category User Experience ### PR Types Improvements ### Description 类型标注: - `python/paddle/base/compiler.py` ### Related links - https://github.com/PaddlePaddle/Paddle/issues/65008 @SigureMo @megemini