-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce memory usage in
ConvertSavedModelToJson
Improved memory management in `ConvertSavedModelToJson` for handling large SavedModel. Refactored the initial proto loading into a dedicated function. This function extracts the required information and then immediately releases the proto from memory, preventing unnecessary memory occupation during subsequent operations. PiperOrigin-RevId: 655218370
- Loading branch information
1 parent
e0b60aa
commit 1fa883a
Showing
1 changed file
with
27 additions
and
24 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