Skip to content
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

Introduction to Tensor 链接修复 #59699

Closed
sunzhongkai588 opened this issue Dec 5, 2023 · 1 comment
Closed

Introduction to Tensor 链接修复 #59699

sunzhongkai588 opened this issue Dec 5, 2023 · 1 comment
Assignees
Labels
HappyOpenSource 快乐开源活动issue与PR status/close 已关闭

Comments

@sunzhongkai588
Copy link
Contributor

背景

有很多英文 API 文档会涉及到 Introduction to Tensor,如下以 broadcast_tensors 为例(引用方式参考 如何让文档相互引用情况二

def broadcast_tensors(input, name=None):
"""
Broadcast a list of tensors following broadcast semantics
Note:
If you want know more about broadcasting, please refer to `Introduction to Tensor`_ .
.. _Introduction to Tensor: ../../guides/beginner/tensor_en.html#chapter5-broadcasting-of-tensor

问题

但现在很多文档引用 Introduction to Tensor 都有错误

  • 比如 pow 的英文文档,引用的时候最后多了个 s,如下

    Note:
    ``paddle.pow`` supports broadcasting. If you want know more about broadcasting, please refer to `Introduction to Tensor`_ .
    .. _Introduction to Tensor: ../../guides/beginner/tensor_en.html#chapter5-broadcasting-of-tensors

  • 比如 bitwise_not 的英文文档,引用的时候最后多了个 .,如下

    .. _Introduction to Tensor: ../../guides/beginner/tensor_en.html#chapter5-broadcasting-of-tensor.

修改

建议在本地 vscode 或其他 IDE 中,全局搜索 Paddle 文件下 Introduction to Tensor,逐个对比是否写法正确,并对错误的进行修复。@ooooo-create @entired

@sunzhongkai588
Copy link
Contributor Author

#59445 已经解决,感谢o师傅 @ooooo-create

@github-project-automation github-project-automation bot moved this from In Progress to Done in Call for Contributions Dec 12, 2023
@paddle-bot paddle-bot bot added the status/close 已关闭 label Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
HappyOpenSource 快乐开源活动issue与PR status/close 已关闭
Projects
Development

No branches or pull requests

3 participants