Skip to content

Conversation

@sneaxiy
Copy link
Collaborator

@sneaxiy sneaxiy commented Nov 11, 2021

Add gather CN FAQ for better understanding.

image

@paddle-bot-old
Copy link

Thanks for your contribution!


- `paddle.gather`不支持`torch.gather``sparse_grad`参数。

----------
Copy link
Collaborator

@Ligoml Ligoml Nov 12, 2021

Choose a reason for hiding this comment

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

使用预览工具 check 后发现在官网中序号有误,需要修改下 md:
image

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done


两者在输入形状、输出形状、计算公式等方面都有区别,具体如下:

1. `paddle.gather`
Copy link
Collaborator

Choose a reason for hiding this comment

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

建议增加 api 文档链接,格式:paddle.gather

Copy link
Collaborator Author

@sneaxiy sneaxiy Nov 12, 2021

Choose a reason for hiding this comment

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

链接加在了最前面,第一次出现paddle.gather的地方。

@TCChenlong TCChenlong merged commit 667aa66 into PaddlePaddle:develop Nov 12, 2021
@sneaxiy sneaxiy deleted the add_gather_faq branch November 12, 2021 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants