-
Notifications
You must be signed in to change notification settings - Fork 271
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
【Hackathon No.11】add RFC for index_fill #122
Conversation
PR暂先提交: PaddlePaddle/Paddle#42454 |
|
||
axis是index索引选择的轴, 只支持int参数类型。 | ||
|
||
index在指定轴上含索引下标的1-D Tensor。 |
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.
建议同时支持 python 的 list of int. 支持以 Tensor 或者非 Tensor 的方式传入此参数,这样使用更加灵活。
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.
提了若干设计细节的问题
PR格式检查通过,你的PR将接受Paddle专家以及开源社区的review,请及时关注PR动态。 |
你的PR有最新反馈,请及时修改。 |
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.
其实只需要写 value 是 tensor 的版本就可以了。value 是非 tensor 的版本可以不要。因为可以通过 to_tensor 把它先转为 tensor
新增api index_fill设计文档