-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a predict method to DecomonModel for single batch numpy arrays
The idea is to avoid calling predict() which is known to be not designed for small arrays, and leads to memory leaks when used in loops. See https://keras.io/api/models/model_training_apis/#predict-method and tensorflow/tensorflow#44711 Use it in wrapper instead of predict().
- Loading branch information
Showing
2 changed files
with
30 additions
and
6 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