You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to this discussion, retain_graph=True will make a backward pass that does not delete intermediary results. The above two backward passes don't share the same sub-network. I think deleting intermediate results will not affect them. And setting retain_graph=False will further save more memory.
The text was updated successfully, but these errors were encountered:
When you do .backward(), you set retain_graph=True as follows:
minREV/rev.py
Line 252 in 4f32aca
minREV/rev.py
Line 283 in 4f32aca
According to this discussion, retain_graph=True will make a backward pass that does not delete intermediary results. The above two backward passes don't share the same sub-network. I think deleting intermediate results will not affect them. And setting retain_graph=False will further save more memory.
The text was updated successfully, but these errors were encountered: