I used to have a torch.autograd.Function that had self variables that could be modified both within the forward and backward calls, and outside the function and the values would carry over correctly.  Now I instead have created a new class that just stores these values.  I can pass them all into the forward function, save them with  ctx.save_for_backward, and use them in backward.  However it looks like if I change them outside the function (especially between forward and backward) the values seen in backward don’t change and if I change them within backward the values outside backward don’t change.  Is there a recommended method for something like this now that torch.autograd.Function are meant to be static?