-
Notifications
You must be signed in to change notification settings - Fork 769
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
fix paddle.vision.datasets.* cn docs #4944
fix paddle.vision.datasets.* cn docs #4944
Conversation
✅ This PR's description meets the template requirements! |
感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-4944.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html |
07d1683
to
142ad6d
Compare
COPY-FROM 已通过#4949 完成统一更新~ |
|
||
:ref:`cn_api_io_cn_Dataset`,DatasetFolder 实例。 | ||
|
||
属性 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
属性部分请参考规范
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
刚刚看了一下,但关于属性我有很大的疑问,这个属性如果中文文档这么写的话,英文文档要往哪里写呢?因为属性是不同于方法没有一个地方写 docstring 的呀(应该是这样子的吧)?
我看了下示例的 paddle.static.Program(paddle.Program 没有找到,貌似是 API 改名了?),我发现文档里暴露的属性都是 @property
装饰(或者说 getter)后的属性,这些属性确实是可以写 docstring,但相应的,非 @property
装饰的属性要如何写 docstring 呢?而且这个 API 文档里貌似有点混乱,属性里混入了大量的方法
唔,我又翻看了一些其他的类,貌似并没有找到相关可以参考的内容(非 @property
装饰的暴露的属性且中英文文档都完善的)~所以说属性的话是不管英文文档嘛?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@TCChenlong 呼唤龙哥,这个标准怎么说?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR 内容
paddle.vision.datasets API 文档修复
英文文档同步更新 PR
PaddlePaddle/Paddle#43649
PADDLEPADDLE_PR=43649
相关 issue
总结存在的问题:
代码示例缺少输出代码示例不统一,且无法表现各个 API 的特性及共性,全部重写部分使用 numpy 的示例同上transform
「VOC2012」的提升速度提示应作为 Note,然后中文同步增加该内容因为所有的数据集都不是从原始来源下载,因此这个说明显得有点多余,故删除可 close 的 issue:
closes PaddlePaddle/Paddle#43194
fixes #4792, fixes #4791, fixes #4790, fixes #4784, fixes #4782, fixes #4781
其它
另外因为发现之前修复的 paddle.Model API 时候 COPY-FROM 的规则搞错了,我原以为同一个类所有示例共享一个作用域需要用 label 分开,原来类下方法有自己的作用域,因此修复了下~
另外这个 PR 没做 COPY-FROM,所以中文文档是旧的示例代码,等 #4940 自动更新了合入的 #4949 莫名其妙没更新 paddle.vision.datasets 下面的……还要我手动更新……