pytorch
4fad8d1a - Update the default detach semantic for forward mode AD (#57820)

Commit
3 years ago
Update the default detach semantic for forward mode AD (#57820) Summary: This makes detach both forward and backward non-differentiable by default. You can pass the `only_backward_mode=True` argument to make it forward differentiable but backward non-differentiable. The important side effect of this change is that, by default, detach is not tracking any view information. Pull Request resolved: https://github.com/pytorch/pytorch/pull/57820 Reviewed By: ezyang Differential Revision: D28287633 Pulled By: albanD fbshipit-source-id: bdc4726fcd05889f6ac84e5a3a3ef71b2ec41015
Author
Parents
Loading