-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a bug where in original implementation (cira 2014) we assumed
destination node is terminal no question asked. That assumption is broken since then and we fixed various places hold that assumption and break the program. However, this particular issue is that no destination node will continue to propagate its dependencies, making memory allocator conservative on which region can be reused (because it receives incomplete dependency information). The fix is simply to remove the shortcut. It should have minimal impact on inference as during inference, very few nodes is the destination node. It will require more RAM / time to do the allocation during backward propagation time (because now it builds a more complete dependency graph). But in return, it now acts much more aggressively for memory reuse thus much less RAM during training.
- Loading branch information
Showing
3 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters