Skip to content
This repository has been archived by the owner on Sep 8, 2021. It is now read-only.

The in-place multiplication may cause error in the attribution by excitation-backprop #20

Open
shinkyo0513 opened this issue Oct 19, 2020 · 0 comments

Comments

@shinkyo0513
Copy link

shinkyo0513 commented Oct 19, 2020

Hi, I found an error when I use the excitation-backprop method to attribute my Resnet.

The program raises an error when backprop by the excitation-backprop rule when it comes to the pooling layer.
The error is 'diff_view_meta->creation_meta == CreationMeta::DEFAULT INTERNAL ASSERT FAILED at /opt/conda/conda-bld/pytorch_1591914838379/work/torch/csrc/autograd/variable.cpp:82, please report a bug to PyTorch.'

I found this is because the _patch_pool's backward function contains the in-place multiplication, which has been suggested by PyTorch not to use with autograd.


I changed the in-place operation to out-of-place, and the error disappeared.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant