mirror of
https://github.com/mozilla/DeepSpeech.git
synced 2025-10-26 11:19:39 +00:00
Flatten structure to avoid nested STL structures which are awkward to wrap with SWIG and slower at runtime.
16 lines
341 B
C++
16 lines
341 B
C++
#ifndef OUTPUT_H_
|
|
#define OUTPUT_H_
|
|
|
|
#include <vector>
|
|
|
|
/* Struct for the beam search output, containing the tokens based on the vocabulary indices, and the timesteps
|
|
* for each token in the beam search output
|
|
*/
|
|
struct Output {
|
|
double probability;
|
|
std::vector<int> tokens;
|
|
std::vector<int> timesteps;
|
|
};
|
|
|
|
#endif // OUTPUT_H_
|