-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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 4th No.26】为 Paddle 新增 paddle.sparse.nn.Softmax 稀疏 API 的 coo 格式计算逻辑 #53613
Conversation
… softmax_sparse
… softmax_sparse
你的PR提交成功,感谢你对开源项目的贡献! |
Sorry to inform you that 8a7b606's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually. |
CI-Coverage没过,还需要补充些单测 |
@zkh2016 在反向时, 参考torch实现,有一种情况out_offsets != grad_offsets没有覆盖到,但是现在测试时,始终out_offsets==grad_offsets, 因为out和dout的indices是一样的。麻烦老师给个建议,是否可以删掉这个if分支,或者有没有其他办法可以单独测试这个反向并可以制定反向输入的参数。 |
行,这个可以先豁免下。 不过看了下反向的kernel好像没优化,看上去应该和前向差不多思路就行,要不也试试优化看? |
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 for docs
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
@thunder95 请补充下中文文档 |
PR types
New features
PR changes
APIs
Description
针对 Paddle 的稀疏 Tensor 格式 COO,需要新增 softmax 的计算逻辑.
RFC设计文档: PaddlePaddle/community#514
中文api文档: