matrix-lib-speed-test.cc File Reference
#include "matrix/matrix-lib.h"
#include "base/timer.h"
#include <numeric>
Include dependency graph for matrix-lib-speed-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:
 

Functions

template<typename Real >
std::string NameOf ()
 
template<typename Real >
static void CsvResult (std::string test, int dim, BaseFloat measure, std::string units)
 
template<typename Real >
static void UnitTestRealFftSpeed ()
 
template<typename Real >
static void UnitTestSplitRadixRealFftSpeed ()
 
template<typename Real >
static void UnitTestSvdSpeed ()
 
template<typename Real >
static void UnitTestAddMatMatSpeed ()
 
template<typename Real >
static void UnitTestAddRowSumMatSpeed ()
 
template<typename Real >
static void UnitTestAddColSumMatSpeed ()
 
template<typename Real >
static void UnitTestAddVecToRowsSpeed ()
 
template<typename Real >
static void UnitTestAddVecToColsSpeed ()
 
template<typename Real >
static void MatrixUnitSpeedTest ()
 
int main ()
 

Function Documentation

◆ main()

int main ( )

Definition at line 270 of file matrix-lib-speed-test.cc.

References Timer::Elapsed(), and KALDI_LOG.

270  {
271  using namespace kaldi;
272  Timer t;
273  KALDI_LOG << "Starting, Single precision";
274  kaldi::MatrixUnitSpeedTest<float>();
275  KALDI_LOG << "Starting, Double precision";
276  kaldi::MatrixUnitSpeedTest<double>();
277  KALDI_LOG << "Tests succeeded, total duration " << t.Elapsed() << " seconds.";
278 }
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
Definition: chain.dox:20
#define KALDI_LOG
Definition: kaldi-error.h:153
double Elapsed() const
Returns time in seconds.
Definition: timer.h:74