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

Fix potential memory leak issue #111

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

limdongjin
Copy link

@limdongjin limdongjin commented Apr 6, 2023

The "BeamSearchDecoderCTC" code has potential memory leaks. Even though the decoder object was removed (by calling "__del__" function), memory deallocation may not be achieved neatly, and I have experienced this issue.
To deallocate memory for the decoder, the "cleanup" function must be explicitly called. Instead, when the "__del__" function is called, it seems natural to have the "cleanup" function also called.

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