#include <cu-common.h>
Public Member Functions | |
void | SeedGpu () |
void | RandUniform (CuMatrixBase< Real > *tgt) |
Fill with uniform [0..1] floats,. More... | |
void | RandUniform (CuMatrix< Real > *tgt) |
void | RandUniform (CuVectorBase< Real > *tgt) |
void | RandGaussian (CuMatrixBase< Real > *tgt) |
Fill with Normal random numbers,. More... | |
void | RandGaussian (CuMatrix< Real > *tgt) |
void | RandGaussian (CuVectorBase< Real > *tgt) |
void | BinarizeProbs (const CuMatrix< Real > &probs, CuMatrix< Real > *states) |
align probabilities to discrete 0/1 states (use uniform sampling), More... | |
void | AddGaussNoise (CuMatrix< Real > *tgt, Real gscale=1.0) |
add gaussian noise to each element, More... | |
Definition at line 152 of file cu-common.h.
void AddGaussNoise | ( | CuMatrix< Real > * | tgt, |
Real | gscale = 1.0 |
||
) |
add gaussian noise to each element,
add gaussian noise to each element
Definition at line 211 of file cu-rand.cc.
Referenced by main(), and CuRand< float >::SeedGpu().
align probabilities to discrete 0/1 states (use uniform sampling),
convert probabilities binary values,
Definition at line 201 of file cu-rand.cc.
Referenced by main(), and CuRand< float >::SeedGpu().
void RandGaussian | ( | CuMatrixBase< Real > * | tgt | ) |
Fill with Normal random numbers,.
Definition at line 116 of file cu-rand.cc.
Referenced by kaldi::CuRandGaussianMatrixBaseSpeedTest(), kaldi::CuRandGaussianMatrixSpeedTest(), kaldi::CuRandGaussianVectorSpeedTest(), CuRand< float >::SeedGpu(), CuPackedMatrix< Real >::SetRandn(), CuVectorBase< float >::SetRandn(), and CuMatrixBase< float >::SetRandn().
void RandGaussian | ( | CuMatrix< Real > * | tgt | ) |
Definition at line 143 of file cu-rand.cc.
void RandGaussian | ( | CuVectorBase< Real > * | tgt | ) |
Definition at line 173 of file cu-rand.cc.
void RandUniform | ( | CuMatrixBase< Real > * | tgt | ) |
Fill with uniform [0..1] floats,.
Definition at line 60 of file cu-rand.cc.
Referenced by kaldi::CuRandUniformMatrixBaseSpeedTest(), kaldi::CuRandUniformMatrixSpeedTest(), kaldi::CuRandUniformVectorSpeedTest(), CuRand< float >::SeedGpu(), CuVectorBase< float >::SetRandUniform(), and CuMatrixBase< float >::SetRandUniform().
void RandUniform | ( | CuMatrix< Real > * | tgt | ) |
Definition at line 84 of file cu-rand.cc.
void RandUniform | ( | CuVectorBase< Real > * | tgt | ) |
Definition at line 101 of file cu-rand.cc.
|
inline |