You can indeed do store = store.detach() to avoid this.

the ‘logical’ stuff would be to have the first branch of the autograd graph removed, am I wrong ?

While this is true if you change the whole Tensor, it is not if you replace only a subset of it in the case where store is a view of a bigger Tensor. So it is not that simple I’m afraid.