LRP tutorial merge requestshttps://git.tu-berlin.de/gmontavon/lrp-tutorial/-/merge_requests2021-11-28T11:42:03Zhttps://git.tu-berlin.de/gmontavon/lrp-tutorial/-/merge_requests/2PyTorch: Migrate deprecated Tensor .data to .detach()2021-11-28T11:42:03ZrodrigobdzPyTorch: Migrate deprecated Tensor .data to .detach()The attribute `.data` was deprecated in PyTorch version [v0.4.0](https://github.com/pytorch/pytorch/releases/tag/v0.4.0) (see quoted changelog below), `.detach()` should be used instead.
> .data was the primary way to get the underlying...The attribute `.data` was deprecated in PyTorch version [v0.4.0](https://github.com/pytorch/pytorch/releases/tag/v0.4.0) (see quoted changelog below), `.detach()` should be used instead.
> .data was the primary way to get the underlying Tensor from a Variable. [...] However, **.data can be unsafe** in some cases. Any changes on x.data wouldn't be tracked by autograd, and the computed gradients would be incorrect if x is needed in a backward pass.
>
> **A safer alternative is to use x.detach()**, which also returns a Tensor that shares data with requires_grad=False, but will have its in-place changes reported by autograd if x is needed in backward.
Additionally, `.data` is not officially documented, whereas [`.detach()`](https://pytorch.org/docs/stable/generated/torch.Tensor.detach.html) is, and can break in future releases.https://git.tu-berlin.de/gmontavon/lrp-tutorial/-/merge_requests/1Fix typos in readme and notebook2021-11-26T13:00:16ZrodrigobdzFix typos in readme and notebookTypos:
- ~~ot~~ to
- ~~examplary~~ exemplary
- ~~incrementation~~ incrementTypos:
- ~~ot~~ to
- ~~examplary~~ exemplary
- ~~incrementation~~ increment