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

Run LSTM recognition in multiple threads #4275

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Commits on Jun 27, 2024

  1. Run LSTM recognition in multiple threads

    Init time option lstm_num_threads should be used to set the number of LSTM threads
    jkarthic committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    6a2e239 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b7d6739 View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2024

  1. Fix the crash issue in LSTM multithreading

    Changed the WERD_RES linked link to use shared pointers instead of raw pointers.
    This is needed so that even if one thread deletes a WERD_RES object, other thread's which needs to iterate thru them can still access it safely.
    In terms of LSTM processing, only one threads processes one WERD_RES. This change is needed as all the threads can iterate thru due to single linked list data structure.
    jkarthic committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    d1eed6a View commit details
    Browse the repository at this point in the history