Skip to content

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

Closed
eellison wants to merge 12 commits intogh/eellison/54/basefrom
gh/eellison/54/head
Closed

[JIT] fix resolving of functions in torch/functional. fix compilation of torch.stft#33504
eellison wants to merge 12 commits intogh/eellison/54/basefrom
gh/eellison/54/head

Conversation

@eellison
Copy link
Copy Markdown
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 requested a review from apaszke as a code owner February 19, 2020 18:36
@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: ec658b6
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 requested a review from driazati February 19, 2020 18:40
@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
Copy Markdown

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: fe824a5
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
Copy Markdown
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

Comment thread torch/functional.py Outdated
Comment thread torch/jit/_builtins.py Outdated
(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
Copy Markdown
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
Copy Markdown
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: 23bd174
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: bfc3f3e
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
Copy Markdown
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
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
… 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.

4 participants