Disable inplace abs for complex tensors#45069
Disable inplace abs for complex tensors#45069anjali411 wants to merge 8 commits intogh/anjali411/56/basefrom
Conversation
[ghstack-poisoned]
[ghstack-poisoned]
💊 CI failures summary and remediationsAs of commit 93b7696 (more details on the Dr. CI page): ✅ None of the CI failures appear to be your fault 💚
❄️ 1 failure tentatively classified as flakybut reruns have not yet been triggered to confirm:
|
[ghstack-poisoned]
`torch.abs` is a `C -> R` function for complex input. Following the general semantics in torch, the in-place version of abs should be disabled for complex input. Differential Revision: [D23818397](https://our.internmc.facebook.com/intern/diff/D23818397) [ghstack-poisoned]
`torch.abs` is a `C -> R` function for complex input. Following the general semantics in torch, the in-place version of abs should be disabled for complex input. Differential Revision: [D23818397](https://our.internmc.facebook.com/intern/diff/D23818397) [ghstack-poisoned]
`torch.abs` is a `C -> R` function for complex input. Following the general semantics in torch, the in-place version of abs should be disabled for complex input. Differential Revision: [D23818397](https://our.internmc.facebook.com/intern/diff/D23818397) [ghstack-poisoned]
Codecov Report
@@ Coverage Diff @@
## gh/anjali411/56/base #45069 +/- ##
=======================================================
Coverage ? 68.02%
=======================================================
Files ? 393
Lines ? 50820
Branches ? 0
=======================================================
Hits ? 34572
Misses ? 16248
Partials ? 0 Continue to review full report at Codecov.
|
`torch.abs` is a `C -> R` function for complex input. Following the general semantics in torch, the in-place version of abs should be disabled for complex input. Differential Revision: [D23818397](https://our.internmc.facebook.com/intern/diff/D23818397) [ghstack-poisoned]
`torch.abs` is a `C -> R` function for complex input. Following the general semantics in torch, the in-place version of abs should be disabled for complex input. Differential Revision: [D23818397](https://our.internmc.facebook.com/intern/diff/D23818397) [ghstack-poisoned]
|
@anjali411 merged this pull request in 534f2ae. |
Summary: Pull Request resolved: pytorch#45069 `torch.abs` is a `C -> R` function for complex input. Following the general semantics in torch, the in-place version of abs should be disabled for complex input. Test Plan: Imported from OSS Reviewed By: glaringlee, malfet Differential Revision: D23818397 Pulled By: anjali411 fbshipit-source-id: b23b8d0981c53ba0557018824d42ed37ec13d4e2
Stack from ghstack:
torch.absis aC -> Rfunction for complex input. Following the general semantics in torch, the in-place version of abs should be disabled for complex input.Also added autograd test for
torch.absfor complex inputs.Differential Revision: D23818397