nnet-optimize-test.cc File Reference
Include dependency graph for nnet-optimize-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
 

Macros

#define KALDI_SUCCFAIL(b)   ((b) ? "SUCCESS" : "FAILURE")
 

Functions

static bool UnitTestNnetOptimizeWithOptions (int32 srand_seed, NnetOptimizeOptions opt_config, CachingOptimizingCompilerOptions compiler_config)
 
static void UnitTestNnetOptimizeInternal (int32 srand_seed)
 
static void UnitTestNnetOptimize ()
 
int main ()
 

Macro Definition Documentation

◆ KALDI_SUCCFAIL

#define KALDI_SUCCFAIL (   b)    ((b) ? "SUCCESS" : "FAILURE")

Function Documentation

◆ main()

int main ( )

Definition at line 308 of file nnet-optimize-test.cc.

References KALDI_LOG, kaldi::SetVerboseLevel(), and kaldi::nnet3::UnitTestNnetOptimize().

308  {
309  using namespace kaldi;
310  using namespace kaldi::nnet3;
311  SetVerboseLevel(3);
312 
313 #if HAVE_CUDA == 1
314  CuDevice::Instantiate().SetDebugStrideMode(true);
315  CuDevice::Instantiate().SelectGpuId("no");
317  CuDevice::Instantiate().SelectGpuId("yes");
318 #endif
320 
321  KALDI_LOG << "Nnet tests succeeded.";
322 
323  return 0;
324 }
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
Definition: chain.dox:20
void SetVerboseLevel(int32 i)
This should be rarely used, except by programs using Kaldi as library; command-line programs set the ...
Definition: kaldi-error.h:64
static void UnitTestNnetOptimize()
#define KALDI_LOG
Definition: kaldi-error.h:153