[BE][Bugfix]: Add rad2deg to pointwise ops (#140290)

Adds missing pontwise tags. Apparently this allows NestedTensor to properly generate a function for opinfo
Pull Request resolved: https://github.com/pytorch/pytorch/pull/140290
Approved by: https://github.com/jbschlosser
This commit is contained in:
Aaron Gokaslan
2024-11-13 00:02:00 +00:00
committed by PyTorch MergeBot
parent 3e82b1f6c0
commit 3d2dd14217
2 changed files with 3 additions and 1 deletions

View File

@ -4601,6 +4601,7 @@
CompositeExplicitAutograd: rad2deg
SparseCPU, SparseCUDA: rad2deg_sparse
SparseCsrCPU, SparseCsrCUDA, SparseCsrMeta: rad2deg_sparse_csr
tags: pointwise
- func: rad2deg_(Tensor(a!) self) -> Tensor(a!)
variants: function, method
@ -4608,12 +4609,14 @@
CompositeExplicitAutograd: rad2deg_
SparseCPU, SparseCUDA: rad2deg_sparse_
SparseCsrCPU, SparseCsrCUDA, SparseCsrMeta: rad2deg_sparse_csr_
tags: pointwise
- func: rad2deg.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!)
dispatch:
CompositeExplicitAutograd: rad2deg_out
SparseCPU, SparseCUDA: rad2deg_sparse_out
SparseCsrCPU, SparseCsrCUDA, SparseCsrMeta: rad2deg_sparse_csr_out
tags: pointwise
- func: deg2rad(Tensor self) -> Tensor
variants: function, method

View File

@ -7847,7 +7847,6 @@ FORWARD_FAILURES = [
"nn.functional.softplus",
"nn.functional.softshrink",
"nn.functional.threshold",
"rad2deg",
# binary
"__rsub__",
"complex",