Skip to content

Make nonzero non differentiable as it supposed to be#26980

Closed
VitalyFedyunin wants to merge 2 commits intopytorch:masterfrom
VitalyFedyunin:set_nonzero_as_non_diff
Closed

Make nonzero non differentiable as it supposed to be#26980
VitalyFedyunin wants to merge 2 commits intopytorch:masterfrom
VitalyFedyunin:set_nonzero_as_non_diff

Conversation

@VitalyFedyunin
Copy link
Contributor

@VitalyFedyunin VitalyFedyunin commented Sep 27, 2019

Fixes: #26038

Somewhere between v1.1 and master nonzero become abstract and was marked as differentiable (by mistake) we need to but them into TH section of tools/autograd/derivatives.yaml to fix it.

@pytorchbot pytorchbot added the module: internals Related to internal abstractions in c10 and ATen label Sep 27, 2019
Copy link
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.

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

@facebook-github-bot
Copy link
Contributor

@VitalyFedyunin merged this pull request in 275e0c1.

soumith pushed a commit that referenced this pull request Oct 4, 2019
Summary:
Fixes: #26038

Somewhere between v1.1 and master `nonzero` become `abstract` and was marked as differentiable (by mistake) we need to but them into TH section of `tools/autograd/derivatives.yaml ` to fix it.
Pull Request resolved: #26980

Differential Revision: D17632276

Pulled By: VitalyFedyunin

fbshipit-source-id: d6cabcc53348af6148cea5a1bd1af2ef12547373
pdlive215 pushed a commit to pdlive215/pytorch that referenced this pull request Nov 27, 2019
Summary:
Fixes: pytorch#26038

Somewhere between v1.1 and master `nonzero` become `abstract` and was marked as differentiable (by mistake) we need to but them into TH section of `tools/autograd/derivatives.yaml ` to fix it.
Pull Request resolved: pytorch#26980

Differential Revision: D17632276

Pulled By: VitalyFedyunin

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

Labels

Merged module: internals Related to internal abstractions in c10 and ATen

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Torch.nonzero() leads to crash in PyTorch 1.2

5 participants