-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
【complex op No.50】tan_coo/tan_csr(sparse) #67848
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
@luotao1 @zhiminzhang0830 请老师检查一下 |
@@ -76,6 +75,7 @@ PD_REGISTER_SPARSE_UNARY_CPU_GRAD_KERNEL(expm1, Expm1) | |||
PD_REGISTER_SPARSE_UNARY_CPU_GRAD_KERNEL(relu6, Relu6) | |||
PD_REGISTER_SPARSE_UNARY_CPU_GRAD_KERNEL(leaky_relu, LeakyRelu) | |||
|
|||
PD_REGISTER_SPARSE_UNARY_CPU_GRAD_KERNEL_WITH_COMPLEX(tan, Tan) |
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.
gpu处的反向也需要进行注册一下
self.compare_with_dense(paddle.tan, paddle.sparse.tan, 'float32') | ||
self.compare_with_dense(paddle.tan, paddle.sparse.tan, 'float64') | ||
self.compare_with_dense(paddle.tan, paddle.sparse.tan, 'complex64') | ||
self.compare_with_dense(paddle.tan, paddle.sparse.tan, 'complex128') |
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.
静态图的TestSparseUnaryStatic也需要添加上test
由于分支提交历史混乱,修改之后重新提交pr,#67885 |
Sorry to inform you that fa099e2's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually. |
PR Category
Operator Mechanism
PR Types
New features
Description
add complex support for tan_coo/tan_csr in sparse