From 19e11f36494667bbcd9fb453205496ad5d2f0917 Mon Sep 17 00:00:00 2001 From: soulitzer Date: Wed, 16 Nov 2022 11:22:58 -0500 Subject: [PATCH] Update base for Update on "Prevent module full_backward_hook from erroring in double backward" See https://docs.google.com/document/d/1tFZKYdsSzRBJ7Di7SWt8X8fSg-E3eiUPwomMF10UyhM/edit for more details regarding the question: 'should module full_backward_hooks be called every time the gradients wrt module inputs are called, or should module full_backward_hooks only be called when the "backward for the module" have been computed?' Fixes https://github.com/pytorch/pytorch/issues/88312 [ghstack-poisoned]