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

[SCU][Docathon][Add API Legend No.1] Add the picture of broadcast_to #6977

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

yangrongxinuser
Copy link

broadcast_to函数图例展示
Copy link

paddle-bot bot commented Nov 18, 2024

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

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@luotao1 luotao1 added the HappyOpenSource Pro 进阶版快乐开源活动,更具挑战性的任务 label Nov 18, 2024
Copy link
Collaborator

Choose a reason for hiding this comment

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

broadcast_to 之后的tensor 可以用二维矩阵表示,不用叠上去

Comment on lines +12 to +14
Original Tensor” 显示了一个形状为 [3]的一维张量[1, 2, 3]。
通过 tensor.broadcast_to((2, 3))方法被广播扩展为一个形状为[2, 3]的二维张量。
其中每一行均为原张量的值,广播的结果在右侧图中展示。
Copy link
Collaborator

Choose a reason for hiding this comment

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

  • original tensor 是什么?通过 tensor.broadcast_to((2, 3))方法被... 也不准确,broadcast_to 是需要最少两个参数的,你可以优化一下,或者直接写 通过 broadcast_to 方法..
  • 得加图片的引用呀,否则在官网无法显示,请务必仔细参考示例

@sunzhongkai588
Copy link
Collaborator

先不用修改,我看 #6950 好像已经先提交PR了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor HappyOpenSource Pro 进阶版快乐开源活动,更具挑战性的任务
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants