Skip to content

Conversation

@eellison
Copy link
Contributor

@eellison eellison commented Aug 26, 2020

Stack from ghstack:

We weren't running inlining in the forward graph of differentiable subgraphs.

Differential Revision: D23358804

eellison pushed a commit that referenced this pull request Aug 26, 2020
ghstack-source-id: 893e29e
Pull Request resolved: #43636
@dr-ci
Copy link

dr-ci bot commented Aug 26, 2020

💊 CI failures summary and remediations

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


None of the CI failures appear to be your fault 💚



❄️ 1 failure tentatively classified as flaky

but reruns have not yet been triggered to confirm:

See CircleCI build pytorch_windows_vs2019_py36_cpu_build (1/1)

Step: "Checkout code" (full log | diagnosis details | 🔁 rerun) ❄️

Writing SSH key for checkout to id_rsa
Creating .ssh directory
Adding the following entries to known_hosts:
github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==
bitbucket.org ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAubiN81eDcafrgMeLzaFPsw2kNvEcqTKl/VqLat/MaB33pZy0y3rJZtnqwR2qOOvbwKZYKiEO1O6VqNEBxKvJJelCq0dTXWT5pbO2gDXC6h6QDXCaHo6pOHGPUy+YBaGQRGuSusMEASYiWunYN0vCAI8QaXnWMXNMdFP3jHAJH0eDsoiGnLPBlBp4TNm6rYI74nMzgz3B9IikW4WVK+dc8KZJZWYjAuORU3jc1c/NPskD2ASinf8v3xnfXeukU0sJ5N6m5E8VLjObPEO+mN2t/FZTMZLiFqPWc/ALSqnMnnhwrNi2rbfg/rd/IpL8Le3pSBne8+seeFVBoGqzHM9yXw==

Writing SSH key for checkout to id_rsa

🚧 3 fixed upstream failures:

These were probably caused by upstream breakages that were already fixed.

Please rebase on the viable/strict branch (expand for instructions)

Since your merge base is older than viable/strict, run these commands:

git fetch https://github.com/pytorch/pytorch viable/strict
git rebase FETCH_HEAD

Check out the recency history of this "viable master" tracking branch.


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 on the GitHub issue tracker or post in the (internal) Dr. CI Users group.

See how this bot performed.

This comment has been revised 52 times.

@ZolotukhinM
Copy link

I'm not sure I fully understand motivation of adding these passes (even after re-reading the description in the commit message). Could you please elaborate a bit more on why it wasn't needed before and why we need it now?


void ProfilingGraphExecutorImpl::runProfilingInsensitiveOptimizations(
std::shared_ptr<Graph>& graph) {
Inline(*graph);

Choose a reason for hiding this comment

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

Nit: might be worth adding a comment why we need it. I assume it's because we're now planning to generate function calls for fallbacks (if I didn't know that I'd assume this pass was useless)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We weren't running inlining in the forward graph of differentiable subgraphs at all

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Previously we would have

%514 : Function = prim::Constant[name="AD_mm_backward_self"]()
grad_self.54 : Tensor = prim::CallFunction(%514, %868, %17) # <string>:204:28

runNoGradOptimizations(copy);
}
EliminateDeadCode(copy);
ClearProfilingInformation(copy);

Choose a reason for hiding this comment

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

Why do we now need this?
Also, please add a GRAPH_DUMPstatement before it.

Copy link
Contributor Author

@eellison eellison Aug 26, 2020

Choose a reason for hiding this comment

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

Yea, I think this was added before the rebase, it's not needed since the tensorexpr fuser will remove the profiles.

We weren't running inlining in the forward graph of differentiable subgraphs, and we weren't getting rid of all profiles as part of optimization.

Differential Revision: [D23358804](https://our.internmc.facebook.com/intern/diff/D23358804)

[ghstack-poisoned]
@eellison eellison changed the title Add passes to profiling executor pipeline Add inline call to profiling executor pipeline Aug 26, 2020
@ZolotukhinM ZolotukhinM self-requested a review August 26, 2020 23:16
Copy link

@ZolotukhinM ZolotukhinM left a comment

Choose a reason for hiding this comment

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

✌️

Copy link
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:

We weren't running inlining in the forward graph of differentiable subgraphs.

Differential Revision: [D23358804](https://our.internmc.facebook.com/intern/diff/D23358804)

[ghstack-poisoned]
We weren't running inlining in the forward graph of differentiable subgraphs.

Differential Revision: [D23358804](https://our.internmc.facebook.com/intern/diff/D23358804)

[ghstack-poisoned]
We weren't running inlining in the forward graph of differentiable subgraphs.

Differential Revision: [D23358804](https://our.internmc.facebook.com/intern/diff/D23358804)

[ghstack-poisoned]
eellison pushed a commit that referenced this pull request Aug 27, 2020
ghstack-source-id: 960f0d2
Pull Request resolved: #43636
We weren't running inlining in the forward graph of differentiable subgraphs.

Differential Revision: [D23358804](https://our.internmc.facebook.com/intern/diff/D23358804)

[ghstack-poisoned]
eellison added 3 commits August 27, 2020 15:36
We weren't running inlining in the forward graph of differentiable subgraphs.

Differential Revision: [D23358804](https://our.internmc.facebook.com/intern/diff/D23358804)

[ghstack-poisoned]
We weren't running inlining in the forward graph of differentiable subgraphs.

Differential Revision: [D23358804](https://our.internmc.facebook.com/intern/diff/D23358804)

[ghstack-poisoned]
We weren't running inlining in the forward graph of differentiable subgraphs.

Differential Revision: [D23358804](https://our.internmc.facebook.com/intern/diff/D23358804)

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

@eellison merged this pull request in 259e5b7.

@facebook-github-bot facebook-github-bot deleted the gh/eellison/101/head branch September 4, 2020 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

6 participants