I still don’t understand the difference between detach() and detach_(). They both do not create a copy and thus I don’t quite understand why we need an in-place version of detach(). Can you clarify the difference between them?
Also, can you clarify why “Views cannot be detached in-place”?
https://pytorch.org/docs/stable/generated/torch.Tensor.detach_.html#torch.Tensor.detach_ 1
Thanks!