Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JIT] fix resolving of functions in torch/functional. fix compilation of torch.stft #33504

Closed
wants to merge 12 commits into from

Conversation

eellison
Copy link
Contributor

@eellison eellison commented Feb 19, 2020

Stack from ghstack:

Fix resolution fo functions that are bound onto torch in torch/functional.py. This does not fix compilation of all of those functions, those will be done in follow ups. Does torch.stft as a start.

Fixes #21478

Differential Revision: D20014591

@eellison eellison changed the title fix resolving of functions in torch/functional [JIT] fix resolving of functions in torch/functional Feb 19, 2020
@facebook-github-bot facebook-github-bot added the oncall: jit Add this issue/PR to JIT oncall triage queue label Feb 19, 2020
eellison pushed a commit that referenced this pull request Feb 19, 2020
ghstack-source-id: ec658b69fab9feab4b836ad76586c869e441aee2
Pull Request resolved: #33504
@eellison eellison changed the title [JIT] fix resolving of functions in torch/functional [JIT] fix resolving of functions in torch/functional & torch.stft Feb 19, 2020
@eellison eellison changed the title [JIT] fix resolving of functions in torch/functional & torch.stft [JIT] fix resolving of functions in torch/functional. fix compilation of torch.stft Feb 19, 2020
@dr-ci
Copy link

dr-ci bot commented Feb 19, 2020

💊 CircleCI build failures summary and remediations

As of commit 442016a:

Commit 442016a was recently pushed. Waiting for builds...


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.

This comment has been revised 31 times.

@eellison eellison requested a review from suo February 19, 2020 18:57
…compilation of torch.stft"


Fix resolution fo functions that are bound onto torch in torch/functional.py. This does not fix compilation of all of those functions, those will be done in follow ups. Does torch.stft as a start.

Fix for #21478

[ghstack-poisoned]
eellison pushed a commit that referenced this pull request Feb 20, 2020
ghstack-source-id: fe824a5a6e1ff7b3f980ddadfa152dcd5e77a427
Pull Request resolved: #33504
…compilation of torch.stft"


Fix resolution fo functions that are bound onto torch in torch/functional.py. This does not fix compilation of all of those functions, those will be done in follow ups. Does torch.stft as a start.

Fix for #21478

[ghstack-poisoned]
Copy link
Contributor

@driazati driazati left a comment

Choose a reason for hiding this comment

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

Looks good to go after a couple mechanical changes

torch/functional.py Outdated Show resolved Hide resolved
@@ -83,8 +83,25 @@
(torch.nn.init._no_grad_zero_, "aten::_no_grad_zero_"),
(torch._C._get_tracing_state, "aten::_get_tracing_state"),
(warnings.warn, "aten::warn"),
(torch._C._VariableFunctions.stft, "aten::stft")
Copy link
Contributor

Choose a reason for hiding this comment

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

if you do the above you shouldn't need this here, instances in nn/functional.py resolve to their aten:: equivalent already

return (_VF.dropout_(input, p, training)
if inplace

Copy link
Contributor Author

@eellison eellison Feb 20, 2020

Choose a reason for hiding this comment

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

For some reason I had to add _VF.stft here, not sure why. But I moved _VF so that i can just use _VF.stft inline.

…compilation of torch.stft"


Fix resolution fo functions that are bound onto torch in torch/functional.py. This does not fix compilation of all of those functions, those will be done in follow ups. Does torch.stft as a start.

Fixes #21478

[ghstack-poisoned]
…compilation of torch.stft"


Fix resolution fo functions that are bound onto torch in torch/functional.py. This does not fix compilation of all of those functions, those will be done in follow ups. Does torch.stft as a start.

Fixes #21478

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

[ghstack-poisoned]
eellison pushed a commit that referenced this pull request Feb 20, 2020
ghstack-source-id: 23bd174a965c5c38e9cc9d18cc212c9872e8cba3
Pull Request resolved: #33504
…compilation of torch.stft"


Fix resolution fo functions that are bound onto torch in torch/functional.py. This does not fix compilation of all of those functions, those will be done in follow ups. Does torch.stft as a start.

Fixes #21478

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

[ghstack-poisoned]
eellison pushed a commit that referenced this pull request Feb 24, 2020
ghstack-source-id: bfc3f3eb0c57b9d6f894531f5c927caf01eb7558
Pull Request resolved: #33504
…compilation of torch.stft"


Fix resolution fo functions that are bound onto torch in torch/functional.py. This does not fix compilation of all of those functions, those will be done in follow ups. Does torch.stft as a start.

Fixes #21478

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

[ghstack-poisoned]
…compilation of torch.stft"


Fix resolution fo functions that are bound onto torch in torch/functional.py. This does not fix compilation of all of those functions, those will be done in follow ups. Does torch.stft as a start.

Fixes #21478

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

[ghstack-poisoned]
eellison added 3 commits February 26, 2020 10:34
…compilation of torch.stft"


Fix resolution fo functions that are bound onto torch in torch/functional.py. This does not fix compilation of all of those functions, those will be done in follow ups. Does torch.stft as a start.

Fixes #21478

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

[ghstack-poisoned]
…compilation of torch.stft"


Fix resolution fo functions that are bound onto torch in torch/functional.py. This does not fix compilation of all of those functions, those will be done in follow ups. Does torch.stft as a start.

Fixes #21478

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

[ghstack-poisoned]
…compilation of torch.stft"


Fix resolution fo functions that are bound onto torch in torch/functional.py. This does not fix compilation of all of those functions, those will be done in follow ups. Does torch.stft as a start.

Fixes #21478

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

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

@eellison merged this pull request in fddf732.

hczhu pushed a commit that referenced this pull request Feb 28, 2020
… of torch.stft (#33504)

Summary:
Pull Request resolved: #33504

Fix resolution fo functions that are bound onto torch in torch/functional.py. This does not fix compilation of all of those functions, those will be done in follow ups. Does torch.stft as a start.

Fixes #21478

Test Plan: Imported from OSS

Differential Revision: D20014591

Pulled By: eellison

fbshipit-source-id: bb362f1b5479adbb890e72a54111ef716679d127
@facebook-github-bot facebook-github-bot deleted the gh/eellison/54/head branch March 1, 2020 15:17
ttumiel pushed a commit to ttumiel/pytorch that referenced this pull request Mar 4, 2020
… of torch.stft (pytorch#33504)

Summary:
Pull Request resolved: pytorch#33504

Fix resolution fo functions that are bound onto torch in torch/functional.py. This does not fix compilation of all of those functions, those will be done in follow ups. Does torch.stft as a start.

Fixes pytorch#21478

Test Plan: Imported from OSS

Differential Revision: D20014591

Pulled By: eellison

fbshipit-source-id: bb362f1b5479adbb890e72a54111ef716679d127
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.

None yet

4 participants