natural-gradient-online-test.cc File Reference
Include dependency graph for natural-gradient-online-test.cc:

Go to the source code of this file.

Classes

class  OnlineNaturalGradientSimple
 

Namespaces

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

Functions

void UnitTestPreconditionDirectionsOnline ()
 
int main ()
 

Function Documentation

◆ main()

int main ( )

Definition at line 326 of file natural-gradient-online-test.cc.

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

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