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

Go to the source code of this file.

Classes

struct  ComparePair
 
struct  PairIsEqualComparator
 

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 PrintVectorVectorPair (std::vector< std::vector< std::pair< int32, int32 > > > vec_vec_pair)
 
void UnitTestSplitLocationsBackward (bool verbose)
 
void UnitTestHasContiguousProperty ()
 
void UnitTestEnsureContiguousProperty ()
 
void UnitTestSplitLocations (bool verbose)
 
int main ()
 

Function Documentation

◆ main()

int main ( )

Definition at line 363 of file nnet-compile-utils-test.cc.

References KALDI_LOG, kaldi::nnet3::UnitTestEnsureContiguousProperty(), kaldi::nnet3::UnitTestHasContiguousProperty(), kaldi::nnet3::UnitTestSplitLocations(), and kaldi::nnet3::UnitTestSplitLocationsBackward().

363  {
364  using namespace kaldi;
365  using namespace kaldi::nnet3;
366  bool verbose = false;
367  for (int32 loop = 0; loop < 10; loop++) {
368  UnitTestSplitLocations(verbose);
372  }
373  KALDI_LOG << "Tests passed.";
374  return 0;
375 }
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
Definition: chain.dox:20
kaldi::int32 int32
void UnitTestSplitLocations(bool verbose)
void UnitTestSplitLocationsBackward(bool verbose)
void UnitTestEnsureContiguousProperty()
#define KALDI_LOG
Definition: kaldi-error.h:153