Skip to content

[JIT] [Remove Mutation] Add handling of normal_#52175

Closed
eellison wants to merge 3 commits intopytorch:masterfrom
eellison:normal_fix
Closed

[JIT] [Remove Mutation] Add handling of normal_#52175
eellison wants to merge 3 commits intopytorch:masterfrom
eellison:normal_fix

Conversation

@eellison
Copy link
Copy Markdown
Contributor

Fixes #51735

@eellison eellison requested a review from Krovatkin February 12, 2021 00:02
@facebook-github-bot
Copy link
Copy Markdown
Contributor

facebook-github-bot commented Feb 12, 2021

💊 CI failures summary and remediations

As of commit c7d81bf (more details on the Dr. CI page):


  • 2/2 failures possibly* introduced in this PR
    • 1/2 non-scanned failure(s)

1 failure not recognized by patterns:

Job Step Action
GitHub Actions quick-checks Ensure no trailing spaces 🔁 rerun

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.

@facebook-github-bot facebook-github-bot added cla signed oncall: jit Add this issue/PR to JIT oncall triage queue labels Feb 12, 2021
// 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)});
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this transformation always on in RemoveMutation pass? I feel a little bit uneasy seeing how many extra ops we are adding here?

Copy link
Copy Markdown
Contributor Author

@eellison eellison Feb 17, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but RemoveMutation isn't always on anywhere (within JIT)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I opened issue here: #52334. I dont think it should block landing this bug fix.

@Krovatkin Krovatkin self-requested a review February 17, 2021 01:12
Copy link
Copy Markdown
Contributor

@Krovatkin Krovatkin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@eellison eellison mentioned this pull request Mar 9, 2021
Copy link
Copy Markdown
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Krovatkin has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 10, 2021

Codecov Report

Merging #52175 (c7d81bf) into master (ef3765b) will decrease coverage by 0.00%.
The diff coverage is 92.30%.

@@            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     

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@eellison merged this pull request in 5563248.

facebook-github-bot pushed a commit that referenced this pull request Mar 10, 2021
Summary: Pull Request resolved: #53762

Test Plan: CI.

Reviewed By: seemethere

Differential Revision: D26961133

Pulled By: samestep

fbshipit-source-id: 972ea480baa3f34b65327abdf7e8bfdf30788572
xsacha pushed a commit to xsacha/pytorch that referenced this pull request Mar 31, 2021
Summary:
Fixes pytorch#51735

Pull Request resolved: pytorch#52175

Reviewed By: mrshenli

Differential Revision: D26919193

Pulled By: eellison

fbshipit-source-id: d036cbc7b42377f88a3d381e4932a710b8d22a04
xsacha pushed a commit to xsacha/pytorch that referenced this pull request Mar 31, 2021
Summary: Pull Request resolved: pytorch#53762

Test Plan: CI.

Reviewed By: seemethere

Differential Revision: D26961133

Pulled By: samestep

fbshipit-source-id: 972ea480baa3f34b65327abdf7e8bfdf30788572
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
Summary:
Fixes pytorch#51735

Pull Request resolved: pytorch#52175

Reviewed By: mrshenli

Differential Revision: D26919193

Pulled By: eellison

fbshipit-source-id: d036cbc7b42377f88a3d381e4932a710b8d22a04
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
Summary: Pull Request resolved: pytorch#53762

Test Plan: CI.

Reviewed By: seemethere

Differential Revision: D26961133

Pulled By: samestep

fbshipit-source-id: 972ea480baa3f34b65327abdf7e8bfdf30788572
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla signed Merged oncall: jit Add this issue/PR to JIT oncall triage queue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

aten::normal_ not handled as a special op in RemoveTensorMutation pass.

3 participants