nnet-precondition-online-test.cc File Reference
Include dependency graph for nnet-precondition-online-test.cc:

Go to the source code of this file.

Classes

class  OnlinePreconditionerSimple
 

Namespaces

 kaldi
 This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for mispronunciations detection tasks, the reference:
 
 kaldi::nnet2
 

Functions

void UnitTestPreconditionDirectionsOnline ()
 
int main ()
 

Function Documentation

◆ main()

int main ( )

Definition at line 327 of file nnet-precondition-online-test.cc.

References rnnlm::i, and kaldi::nnet2::UnitTestPreconditionDirectionsOnline().

327  {
328  using namespace kaldi;
329  using namespace kaldi::nnet2;
330  for (int32 loop = 0; loop < 2; loop++) {
331 #if HAVE_CUDA == 1
332  CuDevice::Instantiate().SetDebugStrideMode(true);
333  if (loop == 0)
334  CuDevice::Instantiate().SelectGpuId("no"); // -1 means no GPU
335  else
336  CuDevice::Instantiate().SelectGpuId("optional"); // -2 .. automatic selection
337 #endif
338  for (int32 i = 0; i < 10; i++) {
340  }
341  }
342 }
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
Definition: chain.dox:20
kaldi::int32 int32