Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Docathon][BUPT][Add API Legend No.24]为slice_scatter添加图例 #70559

Closed
wants to merge 2 commits into from

Conversation

ZHOU05030
Copy link
Contributor

PR Category

User Experience

PR Types

Docs

Description

update doc for PaddlePaddle/docs#6974

Copy link

paddle-bot bot commented Dec 30, 2024

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@paddle-bot paddle-bot bot added the contributor External developers label Dec 30, 2024
@luotao1 luotao1 changed the title 添加英文文档 [Docathon][BUPT][Add API Legend No.24]为slice_scatter添加图例 Dec 31, 2024
@luotao1 luotao1 added the HappyOpenSource Pro 进阶版快乐开源活动,更具挑战性的任务 label Dec 31, 2024
Comment on lines 7490 to 7494
The image below demonstrates the case 2 — a tensor x with shape [3, 9], where a slice scatter operation is performed along axis 1, embedding a value tensor with shape [3, 1] into a specified range. The diagram shows the original tensor, the value tensor, and the resulting tensor after the operation.
.. image:: https://githubraw.cdn.bcebos.com/PaddlePaddle/docs/develop/docs/images/api_legend/slice_scatter.png
:width: 500
:alt: Illustration of Case 2
:align: center
Copy link
Contributor

Choose a reason for hiding this comment

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

  • 这块儿放在 api 介绍的下面,参数介绍的上方

  • ..image:: 上面需要空一行,否则渲染会出错

Copy link
Contributor

@sunzhongkai588 sunzhongkai588 left a comment

Choose a reason for hiding this comment

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

LGTM

@luotao1
Copy link
Contributor

luotao1 commented Jan 14, 2025

@ZHOU05030 需要修复下 PR-CI-Codestyle-Check

2025-01-13 15:44:22 diff --git a/python/paddle/tensor/manipulation.py b/python/paddle/tensor/manipulation.py
2025-01-13 15:44:22 index 0ab7320d..f4a6d74e 100644
2025-01-13 15:44:22 --- a/python/paddle/tensor/manipulation.py
2025-01-13 15:44:22 +++ b/python/paddle/tensor/manipulation.py
2025-01-13 15:44:22 @@ -7548,9 +7548,9 @@ def slice_scatter(
2025-01-13 15:44:22      """
2025-01-13 15:44:22      Embeds the `value` tensor into `x` along multiple axes. Returns a new tensor instead of a view.
2025-01-13 15:44:22      The size of `axes` must be equal to `starts` , `ends` and `strides`.
2025-01-13 15:44:22 -    
2025-01-13 15:44:22 +
2025-01-13 15:44:22      The image below demonstrates the  case 2 ??? a tensor x with shape [3, 9], where a slice scatter operation is performed along axis 1, embedding a value tensor with shape [3, 1] into a specified range. The diagram shows the original tensor, the value tensor, and the resulting tensor after the operation.
2025-01-13 15:44:22 -    
2025-01-13 15:44:22 +
2025-01-13 15:44:22      .. image:: https://githubraw.cdn.bcebos.com/PaddlePaddle/docs/develop/docs/images/api_legend/slice_scatter.png
2025-01-13 15:44:22         :width: 500

@luotao1 luotao1 closed this Jan 14, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
contributor External developers HappyOpenSource Pro 进阶版快乐开源活动,更具挑战性的任务
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants