Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize LSTM code for builds without OpenMP
The constant value kNumThreads is not only used to configure the number of threads but also to allocate vectors used in those threads. There is only a single thread without OpenMP, so it is sufficient to allocate vectors with only one element in that case. Replace also the upper limit in the for loops by the known vector size. Signed-off-by: Stefan Weil <sw@weilnetz.de>
- Loading branch information