[JIT] [Remove Mutation] Add handling of normal_#52175
[JIT] [Remove Mutation] Add handling of normal_#52175eellison wants to merge 3 commits intopytorch:masterfrom
Conversation
💊 CI failures summary and remediationsAs of commit c7d81bf (more details on the Dr. CI page):
1 failure not recognized by patterns:
This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions to the (internal) Dr. CI Users group. |
| // normal(float mean, float std, int[] size, *, Generator? generator=None, | ||
| // ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? | ||
| // pin_memory=None) -> Tensor | ||
| auto size = graph_->insert(aten::size, {n->inputs().at(0)}); |
There was a problem hiding this comment.
Is this transformation always on in RemoveMutation pass? I feel a little bit uneasy seeing how many extra ops we are adding here?
There was a problem hiding this comment.
Yes, but RemoveMutation isn't always on anywhere (within JIT)
There was a problem hiding this comment.
I opened issue here: #52334. I dont think it should block landing this bug fix.
facebook-github-bot
left a comment
There was a problem hiding this comment.
@Krovatkin has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Codecov Report
@@ Coverage Diff @@
## master #52175 +/- ##
==========================================
- Coverage 77.63% 77.63% -0.01%
==========================================
Files 1869 1869
Lines 182394 182407 +13
==========================================
+ Hits 141603 141605 +2
- Misses 40791 40802 +11 |
Summary: Fixes pytorch#51735 Pull Request resolved: pytorch#52175 Reviewed By: mrshenli Differential Revision: D26919193 Pulled By: eellison fbshipit-source-id: d036cbc7b42377f88a3d381e4932a710b8d22a04
Summary: Pull Request resolved: pytorch#53762 Test Plan: CI. Reviewed By: seemethere Differential Revision: D26961133 Pulled By: samestep fbshipit-source-id: 972ea480baa3f34b65327abdf7e8bfdf30788572
Summary: Fixes pytorch#51735 Pull Request resolved: pytorch#52175 Reviewed By: mrshenli Differential Revision: D26919193 Pulled By: eellison fbshipit-source-id: d036cbc7b42377f88a3d381e4932a710b8d22a04
Summary: Pull Request resolved: pytorch#53762 Test Plan: CI. Reviewed By: seemethere Differential Revision: D26961133 Pulled By: samestep fbshipit-source-id: 972ea480baa3f34b65327abdf7e8bfdf30788572
Fixes #51735