### 文档链接&描述 Document Links & Description 您好, 部分API的rst文档的`代码示例`中,`COPY-FROM`后给出的内容与API名称不符,通常多出一个“子命名空间”。 这可能不是文档bug,因为我并不了解代码示例的真实含义。 我仅从字面上理解,认为代码示例的内容应与API名称一致,因此报告此类错误。 1.多出`layers` ``` paddle.audio.features.MFCC rst文档路径:docs/api/paddle/audio/features/MFCC_cn.rst paddle.audio.features.LogMelSpectrogram rst文档路径:docs/api/paddle/audio/features/LogMelSpectrogram_cn.rst ``` 2.多出`communication` ``` paddle.distributed.stream.all_gather rst文档路径:docs/api/paddle/distributed/stream/all_gather_cn.rst paddle.distributed.stream.all_reduce rst文档路径:docs/api/paddle/distributed/stream/all_reduce_cn.rst paddle.distributed.stream.alltoall rst文档路径:docs/api/paddle/distributed/stream/alltoall_cn.rst paddle.distributed.stream.alltoall_single rst文档路径:docs/api/paddle/distributed/stream/alltoall_single_cn.rst paddle.distributed.stream.broadcast rst文档路径:docs/api/paddle/distributed/stream/broadcast_cn.rst paddle.distributed.stream.recv rst文档路径:docs/api/paddle/distributed/stream/recv_cn.rst paddle.distributed.stream.reduce rst文档路径:docs/api/paddle/distributed/stream/reduce_cn.rst paddle.distributed.stream.reduce_scatter rst文档路径:docs/api/paddle/distributed/stream/reduce_scatter_cn.rst paddle.distributed.stream.scatter rst文档路径:docs/api/paddle/distributed/stream/scatter_cn.rst paddle.distributed.stream.send rst文档路径:docs/api/paddle/distributed/stream/send_cn.rst ``` 3.多出`:code-static`, `code-example2`等内容 ``` 如:paddle.optimizer.lr.LinearLR:code-static、paddle.profiler.make_scheduler:code-example2、paddle.regularizer.L1Decay:code-example2、paddle.regularizer.L2Decay:code-example2等 ``` ### 请提出你的建议/提个PR修复这个问题 Please give your suggestion/update a PR to fix it 认为:`COPY-FROM`后给出的API名称应该与目前的API名称保持一致
Activity
Zoeeeeey commentedon May 28, 2024
其他:
1.方法名称缺少参数
2.部分参数缺少描述
ooooo-create commentedon Jun 18, 2024
是的,两者应该保持一致。同时
COPY-FROM以及API名称也都需要使用是 API 的公开路径(简单来说,在英文 api 文档中可以查到的 api 目前都属于公开 API,暴露的位置就是公开位置)。COPY-FROM 的用法可以参考这里 COPY-FROM。
这些可以参考 COPY-FROM
里面对于name 标识的设计