You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature Request: Make beam_search_decoder use multiple CPU threads. #17136
Have I written custom code (as opposed to using a stock example script provided in TensorFlow): No
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 14.04
TensorFlow installed from (source or binary): source
TensorFlow version (use command below): 1.3.0
Python version: 2.7
Bazel version (if compiling from source):N.A.
GCC/Compiler version (if compiling from source):4.9.4
CUDA/cuDNN version: 8.0/6.0
GPU model and memory: GTX 1080Ti
Exact command to reproduce: N.A.
Describe the problem
Add multiple threads support for tf.nn.ctc_beam_search_decoder, for now the tf.nn.ctc_beam_search_decoder is using CPU and only run on 1 thread(although multiple threads has been provided), make it use several CPU threads to run would be very useful as the decoding process of the beam_search_decoder is now the bottleneck of the inference.
Source code / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached. Try to provide a reproducible test case that is the bare minimum necessary to generate the problem.
I use the nvidia-smi and htop to observe the CPU and GPU usage when running a test CTC decoding process, only 1 CPU thread is used and 0 GPU-Utilitiy has been observed during decoding.
changed the title [-]Make beam_search_decoder use multiple CPU threads.[/-][+]Feature Request: Make beam_search_decoder use multiple CPU threads.[/+]on Feb 20, 2018
@asimshankar ,Can you please check the PR and give feedback? If everything is okay, I will move to parallelize beam search and a GPU implementation of CTC. Thank you very much.
Reacted by George Fedoseev, Haotian Teng, Jeremy, kindernerd and andreselizondo-adestech
@asimshankar ,Can you please check the PR and give feedback? If everything is okay, I will move to parallelize beam search and a GPU implementation of CTC. Thank you very much.
Thx! By the way, is there a parallel CTC beam search decoder?
Activity
[-]Make beam_search_decoder use multiple CPU threads.[/-][+]Feature Request: Make beam_search_decoder use multiple CPU threads.[/+]asimshankar commentedon Feb 23, 2018
I don't believe we have anyone actively working on this, however, contributions are welcome.
The change would likely involve updating the C++ implementation of the operation in https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/kernels/ctc_decoder_ops.cc#L178 to utilize multiple threads.
tamimaddari82 commentedon Mar 17, 2018
@asimshankar , I would like to work on this issue.
tamimaddari82 commentedon Mar 25, 2018
@asimshankar ,Can you please check the PR and give feedback? If everything is okay, I will move to parallelize beam search and a GPU implementation of CTC. Thank you very much.
kindernerd commentedon Jan 2, 2020
Thx! By the way, is there a parallel CTC beam search decoder?
tilakrayal commentedon Sep 25, 2022
@haotianteng,
Respective PR's were merged and closed. Could you please take a look and let us know if the issue still persists. Thank you!
google-ml-butler commentedon Oct 2, 2022
This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you.
google-ml-butler commentedon Oct 9, 2022
Closing as stale. Please reopen if you'd like to work on this further.