Generates randomly ordered vector of indices,. More...
#include <nnet-randomizer.h>
Public Member Functions | |
RandomizerMask () | |
RandomizerMask (const NnetDataRandomizerOptions &conf) | |
void | Init (const NnetDataRandomizerOptions &conf) |
Init, call srand,. More... | |
const std::vector< int32 > & | Generate (int32 mask_size) |
Generate randomly ordered vector of integers 0..[mask_size -1],. More... | |
Private Attributes | |
std::vector< int32 > | mask_ |
Generates randomly ordered vector of indices,.
Definition at line 64 of file nnet-randomizer.h.
|
inline |
Definition at line 66 of file nnet-randomizer.h.
|
inlineexplicit |
Definition at line 69 of file nnet-randomizer.h.
Generate randomly ordered vector of integers 0..[mask_size -1],.
Definition at line 36 of file nnet-randomizer.cc.
References rnnlm::i, and RandomizerMask::mask_.
Referenced by main(), and UnitTestRandomizerMask().
void Init | ( | const NnetDataRandomizerOptions & | conf | ) |
Init, call srand,.
Definition at line 31 of file nnet-randomizer.cc.
References KALDI_LOG, and NnetDataRandomizerOptions::randomizer_seed.
Referenced by UnitTestRandomizerMask().
|
private |
Definition at line 80 of file nnet-randomizer.h.
Referenced by RandomizerMask::Generate().