Describe the bug
When running the google colab version Part 4. Visualize Saliency Maps throws up the following error
RuntimeError Traceback (most recent call last)
in ()
9 # Ready to roll!
10
---> 11 backprop.visualize(owl, target_class, guided=True, use_gpu=True)
1 frames
/usr/local/lib/python3.6/dist-packages/flashtorch/utils/init.py in denormalize(tensor)
117
118 for channel, mean, std in zip(denormalized[0], means, stds):
--> 119 channel.mul_(std).add_(mean)
120
121 return denormalized
RuntimeError: Output 0 of UnbindBackward is a view and is being modified inplace. This view is the output of a function that returns multiple views. Such functions do not allow the output views to be modified inplace. You should replace the inplace operation by an out-of-place one.
To Reproduce
Steps to reproduce the behavior:
- Go to https://colab.research.google.com/github/MisaOgura/flashtorch/blob/master/examples/visualize_saliency_with_backprop_colab.ipynb
- Click on 'Run all'
- Scroll down to 'Section 4'
- See error
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
- OS: [e.g. iOS]
- Python version: [e.g. 3.6]
- FlashTorch version: [e.g. 0.1.0]
Additional context
Add any other context about the problem here.
Describe the bug
When running the google colab version Part 4. Visualize Saliency Maps throws up the following error
RuntimeError Traceback (most recent call last)
in ()
9 # Ready to roll!
10
---> 11 backprop.visualize(owl, target_class, guided=True, use_gpu=True)
1 frames
/usr/local/lib/python3.6/dist-packages/flashtorch/utils/init.py in denormalize(tensor)
117
118 for channel, mean, std in zip(denormalized[0], means, stds):
--> 119 channel.mul_(std).add_(mean)
120
121 return denormalized
RuntimeError: Output 0 of UnbindBackward is a view and is being modified inplace. This view is the output of a function that returns multiple views. Such functions do not allow the output views to be modified inplace. You should replace the inplace operation by an out-of-place one.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
Additional context
Add any other context about the problem here.