-
Notifications
You must be signed in to change notification settings - Fork 36
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
调研和排查当前 API 文档中需要改善的接口 #447
Comments
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在 API 文档 https://oneflow.readthedocs.io/en/master/ 中,因为历史遗留问题,存在一些低级的问题。
主要有以下几类问题:
导出了 API,但是没有文档
如:https://oneflow.readthedocs.io/en/master/module.html#oneflow.nn.Module.apply
导出了 API,但是函数原型是空的,并且不正确
如:https://oneflow.readthedocs.io/en/master/oneflow.html#oneflow.tensor
这个
tensor
方法,显然有多个参数,原型并不是tensor()
解决方法
这类问题常常是因为,直接从 C 导出的接口,文档编译生成系统无法提取到正确的函数原型。因此其实要在 docstring 中的第一行显式写出。
像这样:https://github.com/Oneflow-Inc/oneflow/blob/master/python/oneflow/framework/docstr/array_ops.py#L369
公式格式问题
如:https://oneflow.readthedocs.io/en/master/functional.html#oneflow.nn.functional.hardsigmoid
这类问题是往往是错误使用了
latex
语法。解决办法就是参考其它显示正确的 docstring,进行修改,编译,知道调整正确后再提交。
任务
需要遍历 https://oneflow.readthedocs.io/en/master/ 中的所有 API,找出有问题的 API,整理成表。方便后续找相应开发解决。
表格
The text was updated successfully, but these errors were encountered: