It saves memory by removing a tensor from the computation graph, allowing you to manipulate it without affecting gradients
torch.Tensor.detach()
Creator
Creator
Seonglae ChoCreated
Created
2024 Sep 12 23:6Editor
Editor
Seonglae ChoEdited
Edited
2024 Sep 12 23:7Refs
Refs
torch.no_grad()