megemini
megemini
> 顺师傅,可以提交下中文文档。另外,PIR 流水线失败: > > ``` > 2024-05-14 22:17:04 The following tests FAILED: > 2024-05-14 22:17:04 1036 - test_paddlescience (Failed) > 2024-05-14 22:17:04 1067 - test_radam_op (Failed) > 2024-05-14 22:17:04...
`Accuracy` 的示例代码会 fit ,时间可能比较长,加个 timeout 吧 ~ 
✨️ 大家好!✨️ 此次任务为 [为 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) 的子任务。 即,将原本的 `裸` 函数: ``` python def log(x, name=None): ... ``` 标注为: ``` python def log(x: paddle.Tensor, name: str | None...
#### 标注 Q&A ##### **问:** 我该如何下手? 答:Python 的类型标注特性一直在完善,目前已经是个相对庞大的体系了。 可以先学习一下 Python 官方的文档:[Static Typing with Python](https://typing.readthedocs.io/en/latest/),熟悉一下相关的 PEP 。 以 `通过 CI 检查` 作为最基础的实现目标。 另外,目前 Paddle 添加了 `_typing` 模块,对于一些常用的公用类型做了统一整理,如: ``` pyton # python/paddle/_typing/layout.py...
### python 3.8 至 python 3.9 类型标注映射表 | 旧类型 | 新类型 | | - | - | | typing.Tuple | tuple | | typing.List | list | | typing.Dict |...
@Liyulingyue @liyongchao911 @DrRyanHuang @ooooo-create @zrr1999 @gouzil @sunzhongkai588 之前 @SigureMo 有一个开源项目,是单独的 stub 标注文件的,可以参考一下里面已经标注的部分 ~ https://github.com/cattidea/paddlepaddle-stubs
【报名】:A-15
### 问题 1: `EagerParamBase` 该如何处理 参考如下代码: ``` python >>> from paddle import LazyGuard >>> from paddle.nn import Linear >>> with LazyGuard(): ... # w and b are initialized lazily and...
### 问题2:`[abstract]` 错误如何处理? 发现问题在 `python/paddle/distributed/fleet/utils/fs.py` 中: `class LocalFS(FS)` 继承了 `FS` 但是没有实现所有抽象方法,如 `"cat", "download", "upload" and "upload_dir"` `mypy` 错误提示: ``` shell :2:12: error: Cannot instantiate abstract class "LocalFS" with abstract attributes...
### 问题3:不能在 `@property` 与 `@xxx.setter` 中插入其他方法 以下测试代码发现问题: ``` python >>> import paddle.distributed.fleet as fleet >>> strategy = fleet.DistributedStrategy() >>> strategy.dgc = True >>> strategy.recompute = True >>> strategy.recompute_configs = {"checkpoints":...