68 int32 max_to_count = 10000, tot = 0;
76 int32 max_to_count = 10000, tot = 0;
86 done_(false), i_(i), vec_(vec) { }
108 if (
Rand() % 2 == 1 )
113 std::vector<int32> task_output;
116 for (
int32 i = 0;
i < num_tasks;
i++) {
120 KALDI_ASSERT(task_output.size() ==
static_cast<size_t>(num_tasks));
121 for (
int32 i = 0;
i < num_tasks;
i++)
129 using namespace kaldi;
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
void Run(C *c)
This function takes ownership of the pointer "c", and will delete it in the same sequence as Run was ...
MyThreadClass(int32 max_to_count, int32 *i)
MyThreadClass(const MyThreadClass &other)
MyTaskClass(int32 i, std::vector< int32 > *vec)
void RunMultiThreaded(const C &c_in)
Here, class C should inherit from MultiThreadable.
std::vector< int32 > * vec_
int Rand(struct RandomState *state)
#define KALDI_ASSERT(cond)