forked from Samsung/ONE
-
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.
[onert] Fix deallocation bug (Samsung#6271)
* [onert] Fix deallocation bug Fix deallocation bug that was introduced by Samsung#5926 . As there was no way to deallocate a dynamic tensor memory of tensors defined by other backends, dynamic tensor deallocation part needs to be changed. - Do not deallocate in FunctionSequence - Introduce `ITensor::deallocBuffer` which deallocates the buffer - Introduce `DeallocFunction` class for deallocation of tensors that are no longer used(only for Linear Executor) - `IDynamicTensorManager`'s method `planDealloc` and `deallocInput` are no longer used Plus, it now deallocates all tensors correctly, even between backend boundaries. ONE-DCO-1.0-Signed-off-by: Hanjoung Lee <[email protected]> * Update runtime/onert/core/src/exec/DynamicShapeInferer.cc Co-authored-by: Hyun Sik Yoon <[email protected]> Co-authored-by: Hyun Sik Yoon <[email protected]>
- Loading branch information
1 parent
47461ee
commit 44ae2a8
Showing
9 changed files
with
116 additions
and
20 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
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
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