Skip to content

Conversation

@HZ1ovo
Copy link
Contributor

@HZ1ovo HZ1ovo commented Feb 5, 2026

Description

Fix one error in #7663:

Errors in docs/api/paddle/slice_cn.rst
[404] https://docs.scipy.org/doc/numpy/reference/arrays.indexing.html | Rejected status code (this depends on your "accept" configuration): Not Found

This error also can be seen in https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/slice_cn.html:
image

Resolution

Change https://docs.scipy.org/doc/numpy/reference/arrays.indexing.html to https://numpy.org/doc/stable/user/basics.indexing.html, which is a stable page and same as origin link.

Origin page in 1.18 version:
image

Stable page:
image

@Echo-Nie

@CLAassistant
Copy link

CLAassistant commented Feb 5, 2026

CLA assistant check
All committers have signed the CLA.

@paddle-bot
Copy link

paddle-bot bot commented Feb 5, 2026

感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-7726.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html
预览工具的更多说明,请参考:飞桨文档预览工具

@github-actions
Copy link

github-actions bot commented Feb 5, 2026

📚 本次 PR 文档预览链接(点击展开)
ℹ️ 预览提醒
请等待 Docs-NEW 流水线运行完成后再点击预览链接,否则可能会看到旧版本内容或遇到链接无法访问的情况。



沿多个轴生成 ``input`` 的切片。与 numpy 类似:https://docs.scipy.org/doc/numpy/reference/arrays.indexing.html 该 OP 使用 ``axes`` 、 ``starts`` 和 ``ends`` 属性来指定轴列表中每个轴的起点和终点位置,并使用此信息来对 ``input`` 切片。如果向 ``starts`` 或 ``ends`` 传递负值如 :math:`-i`,则表示该轴的反向第 :math:`i-1` 个位置(这里以 0 为初始位置)。如果传递给 ``starts`` 或 ``end`` 的值大于 n(维度中的元素数目),则表示 n。当切片一个未知数量的维度时,建议传入 ``INT_MAX``。 ``axes`` 、 ``starts`` 和 ``ends`` 三个参数的元素数目必须相等。以下示例将解释切片如何工作:
沿多个轴生成 ``input`` 的切片。与 numpy 类似:https://numpy.org/doc/stable/user/basics.indexing.html该 OP 使用 ``axes`` 、 ``starts`` 和 ``ends`` 属性来指定轴列表中每个轴的起点和终点位置,并使用此信息来对 ``input`` 切片。如果向 ``starts`` 或 ``ends`` 传递负值如 :math:`-i`,则表示该轴的反向第 :math:`i-1` 个位置(这里以 0 为初始位置)。如果传递给 ``starts`` 或 ``end`` 的值大于 n(维度中的元素数目),则表示 n。当切片一个未知数量的维度时,建议传入 ``INT_MAX``。 ``axes`` 、 ``starts`` 和 ``ends`` 三个参数的元素数目必须相等。以下示例将解释切片如何工作:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Echo-Nie 对应Paddle 仓库里的英文注释里的链接,应该也要改

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Paddle 仓库的修改我可以后续合并提交

@luotao1
Copy link
Collaborator

luotao1 commented Feb 5, 2026

@Echo-Nie
Copy link
Collaborator

Echo-Nie commented Feb 5, 2026

Merging once CI passes.
Thx for your contribution! I’ve found the relevant files in the Paddle repo for you: slice_op.cc, manipulation.py
Feel free to submit a PR when you have time!

@luotao1 luotao1 merged commit 9eb74b1 into PaddlePaddle:develop Feb 5, 2026
6 checks passed
@luotao1
Copy link
Collaborator

luotao1 commented Feb 5, 2026

同学你好,如果有兴趣的话,可以将 #7663 整理成容易认领的模式。可参考

发布一个新的issue,然后号召更多的社区小伙伴来认领修复。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants