
Go to the source code of this file.
Functions | |
| template<class Real > | |
| static void | InitRand (VectorBase< Real > *v) | 
| template<class Real > | |
| static void | InitRand (MatrixBase< Real > *M) | 
| template<class Real > | |
| static void | AssertEqual (const VectorBase< Real > &A, const VectorBase< Real > &B, float tol=0.001) | 
| template<class RandomAccessIterator > | |
| static void | AssertEqual (RandomAccessIterator begin1, RandomAccessIterator end1, RandomAccessIterator begin2, RandomAccessIterator end2) | 
| void | UnitTestRandomizerMask () | 
| void | UnitTestMatrixRandomizer () | 
| void | UnitTestVectorRandomizer () | 
| void | UnitTestStdVectorRandomizer () | 
| int | main () | 
      
  | 
  static | 
Definition at line 48 of file nnet-randomizer-test.cc.
References VectorBase< Real >::Dim(), rnnlm::i, and KALDI_ASSERT.
      
  | 
  static | 
      
  | 
  static | 
Definition at line 32 of file nnet-randomizer-test.cc.
References VectorBase< Real >::Dim(), rnnlm::i, and kaldi::nnet1::RandGauss().
      
  | 
  static | 
Definition at line 38 of file nnet-randomizer-test.cc.
References MatrixBase< Real >::Cond(), rnnlm::i, rnnlm::j, MatrixBase< Real >::NumCols(), MatrixBase< Real >::NumRows(), and kaldi::nnet1::RandGauss().
| int main | ( | ) | 
Definition at line 232 of file nnet-randomizer-test.cc.
References UnitTestMatrixRandomizer(), UnitTestRandomizerMask(), UnitTestStdVectorRandomizer(), and UnitTestVectorRandomizer().
| void UnitTestMatrixRandomizer | ( | ) | 
Definition at line 81 of file nnet-randomizer-test.cc.
References MatrixRandomizer::AddData(), kaldi::AssertEqual(), CuMatrixBase< Real >::CopyToMat(), MatrixRandomizer::Done(), rnnlm::i, MatrixRandomizer::Init(), kaldi::InitRand(), MatrixRandomizer::IsFull(), KALDI_ASSERT, KALDI_LOG, NnetDataRandomizerOptions::minibatch_size, MatrixRandomizer::Next(), CuMatrixBase< Real >::NumCols(), MatrixRandomizer::NumFrames(), CuMatrixBase< Real >::NumRows(), MatrixRandomizer::Randomize(), NnetDataRandomizerOptions::randomizer_size, MatrixBase< Real >::RowRange(), and MatrixRandomizer::Value().
Referenced by main().
| void UnitTestRandomizerMask | ( | ) | 
Definition at line 71 of file nnet-randomizer-test.cc.
References RandomizerMask::Generate(), RandomizerMask::Init(), and KALDI_ASSERT.
Referenced by main().
| void UnitTestStdVectorRandomizer | ( | ) | 
Definition at line 178 of file nnet-randomizer-test.cc.
References StdVectorRandomizer< T >::AddData(), kaldi::AssertEqual(), StdVectorRandomizer< T >::Done(), rnnlm::i, StdVectorRandomizer< T >::Init(), StdVectorRandomizer< T >::IsFull(), KALDI_ASSERT, KALDI_LOG, StdVectorRandomizer< T >::Next(), StdVectorRandomizer< T >::NumFrames(), StdVectorRandomizer< T >::Randomize(), NnetDataRandomizerOptions::randomizer_size, and StdVectorRandomizer< T >::Value().
Referenced by main().
| void UnitTestVectorRandomizer | ( | ) | 
Definition at line 132 of file nnet-randomizer-test.cc.
References VectorRandomizer::AddData(), kaldi::AssertEqual(), VectorRandomizer::Done(), rnnlm::i, VectorRandomizer::Init(), kaldi::InitRand(), VectorRandomizer::IsFull(), KALDI_ASSERT, KALDI_LOG, NnetDataRandomizerOptions::minibatch_size, VectorRandomizer::Next(), VectorRandomizer::NumFrames(), VectorRandomizer::Randomize(), NnetDataRandomizerOptions::randomizer_size, VectorBase< Real >::Range(), and VectorRandomizer::Value().
Referenced by main().