-
Notifications
You must be signed in to change notification settings - Fork 874
Add paddle.incubate.graph_send_recv API docs #4104
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
Conversation
|
Thanks for your contribution! |
|
|
||
| .. py:function:: paddle.incubate.send_recv(x, src_index, dst_index, pool_type="sum", name=None) | ||
|
|
||
| 此API主要应用于图领域,目的是为了减少在消息传递过程中带来的中间变量显存或内存的损耗。其中,``x``作为输入Tensor,首先利用``src_index``作为索引来gather出在``x``中相应位置的条目,随后再将gather出的结果利用``dst_index``来scatter到对应的输出结果中,其中``pool_type``表示scatter的不同处理方式,包括sum、mean、max、min共计4种处理模式。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
图领域->图学习领域,条目-> 数据
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
| .. code-block:: python | ||
|
|
||
| import paddle | ||
| import numpy as np |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
numpy提前
在import后面留一个空行
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已删除 numpy
wawltor
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
88ee3ab to
dc18987
Compare
Add doc for paddle.incubate.graph_send_recv api.
The origin PR is Paddle PR 37205.
中文文档:

英文文档:
