Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to use simplified DnnModel interface #9

Merged
merged 2 commits into from
Nov 15, 2023

Conversation

petebankhead
Copy link
Member

This makes memory management much easier, since there is no need for resources (NDList) to be accessible outside of the predict method. Appears to reduce memory leaks with TensorFlow + GPU.

For use with qupath/qupath#1422
The purpose is to simplify wrapping around a `Predictor` and achieve better memory management. Using `NDList` proved more complicated than expected, since things are easier when using a `Translator` - see https://github.com/deepjavalibrary/djl/blob/v0.24.0/docs/development/memory_management.md#inference-use-case
@petebankhead petebankhead merged commit 1e698ee into qupath:main Nov 15, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant