Hi Brandon,
Hm. We should have made clear that is an old interface earlier - the “new” Function interface has been that way since PyTorch 0.2, so it is bad that you’re surprised…



 bamos:

And here are others that I have updated that I’ve done quite messily by passing all of the attributes into the forward method and putting them back into the context – a hack to get nearly the same functionality as the old interface. Is returning None in the backward pass for all of the additional flags the right thing to do?


I think both are the right thing to do.
If you’re in for a hack, you can make  good use of closures 5 to eliminate the administration overhead. If things go well, that will also make it easier to script-enable your functions.
Best regards
Thomas