functorch
functorch copied to clipboard
added list clearing FX codegen for backwards in AOTAutograd.
Note: I've currently not bothered to land this PR, as Torchscript seems to keep all of the input activations alive.
We've verified that this reduces memory usage as expected if the graph isn't compiled with Torchscript: https://github.com/albanD/subclass_zoo/pull/41
