forked from pytorch/glow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hoist QuantizationProfile instructions right after the last node that…
… updates their inputs to shorten lifetimes of buffers (pytorch#2698) Summary: The implementation of this optimization is very similar to hoistDealloc. It runs right before hoistDealloc and helps hoistDealloc to do a better job later. As a result, the peak memory consumption in the quantization profile collection mode is greatly reduced. Fixes pytorch#2697 Pull Request resolved: pytorch#2698 Differential Revision: D15297832 Pulled By: opti-mix fbshipit-source-id: 8874a72e7fb25e8be1f895677d3293000e00c990
- Loading branch information
1 parent
36e709c
commit 3abdf8d
Showing
2 changed files
with
87 additions
and
11 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