Closed fferrara closed 9 years ago
Closing as there is not enough information here to suggest a bug; how are you reading the gradient?
If there's still a problem you can reproduce with the latest Caffe master, feel free to open a new issue with instructions to recreate it; see https://github.com/BVLC/caffe/blob/master/CONTRIBUTING.md.
@fferrara Were you able to resolve it? I'm also facing the same error
Actually, I kind of gave up. I didn't try the latest master branch, because I can still use CPU for producing saliency maps.
I see. I also did give up earlier, but now have to look for a way to fix it since the CPU is getting too slow for me. I'll try this with the master branch and create a new issue there.
I'm working on generating saliency maps though gradient data, as in this famous paper.
It works well when using pycaffe in CPU mode. When in GPU mode, all the gradients computed by the backward pass are zeros.
I'm using Ubuntu 14.04, VGG Net without a Data Layer and I set force_backward : true.
This is the code that works
This works, indeed