-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Add kernel sparse_mask_helper; sparse_coo_tensor_grad #41586
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
@@ -101,3 +167,16 @@ PD_REGISTER_KERNEL(sparse_mask, | |||
int64_t) { | |||
kernel->InputAt(1).SetDataLayout(phi::DataLayout::SPARSE_COO); | |||
} | |||
|
|||
PD_REGISTER_KERNEL(sparse_mask_helper, |
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.
sparse_mask_helper API 命名是什么呢 ?
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.
这个主要是后端使用,辅助求sparse_coo_tensor的反向,不准备暴露给前端。
PR types
New features
PR changes
APIs
Describe
支持中间构造SparseCooTensor,例子: