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

[BUG] Memory leaks - Decoder in thread #37

Open
madkote opened this issue Dec 6, 2019 · 0 comments
Open

[BUG] Memory leaks - Decoder in thread #37

madkote opened this issue Dec 6, 2019 · 0 comments

Comments

@madkote
Copy link

madkote commented Dec 6, 2019

Similar issue as with the model (#36).

Scenario

decoder n files in a list with

  • option A - use same decoder
decoder = KaldiNNet3OnlineDecoder(model)
try:
    for filename in [...]:
        decode(decoder, filename)
finally:
    del decoder
  • option B - create a new decoder for each file
def decode(filename):
  decoder = KaldiNNet3OnlineDecoder(model)
  try:
     ...
  finally:
    del decoder

for filename in [...]:
    decode(filename)
  • option C - when running option A and B in separate thread, the memory usage increases by ~10mb for each file, even del decoder is used. Deleting the model has not effect, since it leaving much bigger leak in the memory (see [BUG] Memory leaks - Model #36)
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

No branches or pull requests

1 participant