22 #ifndef KALDI_CUDAMATRIX_CU_COMPRESSED_MATRIX_H_ 23 #define KALDI_CUDAMATRIX_CU_COMPRESSED_MATRIX_H_ 157 bool truncate =
true);
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
virtual MatrixIndexT NumRows() const
Class CuCompressedMatrix, templated on an integer type (expected to be one of: int8, uint8, int16, uint16), this provides a way to approximate a CuMatrix in a more memory-efficient format.
virtual MatrixIndexT NumCols() const
virtual void CopyFromMat(const CuMatrixBase< BaseFloat > &mat)=0
Sets *this to an appropriately compressed copy of 'mat', which includes resizing *this.
Matrix for CUDA computing.
virtual ~CuCompressedMatrix()
virtual ~CuCompressedMatrixBase()
Class CuCompressedMatrixBase is an abstract base class that allows you to compress a matrix of type C...
virtual int32 NumRows() const =0
CuCompressedMatrixBase * NewCuCompressedMatrix(CuCompressedMatrixType t, BaseFloat range, bool truncat)
This function allocates a new CuCompressedMatrix with type determined by t, and with the 'range' and ...
virtual int32 NumCols() const =0
virtual void CopyToMat(CuMatrixBase< BaseFloat > *mat) const =0
Copies the contents of *this to 'mat', which should be correctly sized beforehand.