Skip to content
Snippets Groups Projects
Unverified Commit b2efe2fc authored by emailweixu's avatar emailweixu Committed by GitHub
Browse files

lean_function (#908)

Wrap a function to save memory for backward. The returned function performs same
computation as ``func``, but save memory by discarding intermediate results.
It calculates the gradient by recomputing ``func`` using the same input during backward.
parent bf93b593
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment