20 #ifndef KALDI_CUDAMATRIX_CU_RAND_H_ 21 #define KALDI_CUDAMATRIX_CU_RAND_H_ 30 template<
typename Real>
36 CuDevice::Instantiate().SeedGpu();
66 #endif // KALDI_CUDAMATRIX_CU_RAND_H_ This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
void RandUniform(CuMatrixBase< Real > *tgt)
Fill with uniform [0..1] floats,.
void BinarizeProbs(const CuMatrix< Real > &probs, CuMatrix< Real > *states)
align probabilities to discrete 0/1 states (use uniform sampling),
This class represents a matrix that's stored on the GPU if we have one, and in memory if not...
void AddGaussNoise(CuMatrix< Real > *tgt, Real gscale=1.0)
add gaussian noise to each element,
void RandGaussian(CuMatrixBase< Real > *tgt)
Fill with Normal random numbers,.
Matrix for CUDA computing.
Vector for CUDA computing.