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

Go to the source code of this file.

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 UnitTestNnetComputationIo (NnetComputation *computation)
 
void UnitTestComputationRequestIo (ComputationRequest *request)
 
void TestNnetDecodable (Nnet *nnet)
 
void UnitTestNnetCompute ()
 
int main ()
 

Function Documentation

◆ main()

int main ( )

Definition at line 282 of file nnet-compute-test.cc.

References KALDI_LOG, and kaldi::nnet3::UnitTestNnetCompute().

282  {
283  using namespace kaldi;
284  using namespace kaldi::nnet3;
285  // uncommenting the following activates extra checks during optimization, that
286  // can help narrow down the source of problems.
287  //SetVerboseLevel(4);
288 
289 
290  for (kaldi::int32 loop = 0; loop < 2; loop++) {
291 #if HAVE_CUDA == 1
292  CuDevice::Instantiate().SetDebugStrideMode(true);
293  if (loop == 0)
294  CuDevice::Instantiate().SelectGpuId("no");
295  else
296  CuDevice::Instantiate().SelectGpuId("yes");
297 #endif
299  }
300 
301  KALDI_LOG << "Nnet tests succeeded.";
302 
303  return 0;
304 }
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
Definition: chain.dox:20
kaldi::int32 int32
void UnitTestNnetCompute()
#define KALDI_LOG
Definition: kaldi-error.h:153