#include <unistd.h>
#include <limits>
#include <string>
Go to the source code of this file.
Classes | |
class | KaldiCompileTimeAssert< B > |
class | KaldiCompileTimeAssert< true > |
Namespaces | |
kaldi | |
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for mispronunciations detection tasks, the reference: | |
Macros | |
#define | KALDI_MEMALIGN(align, size, pp_orig) (!posix_memalign(pp_orig, align, size) ? *(pp_orig) : NULL) |
#define | KALDI_MEMALIGN_FREE(x) free(x) |
#define | KALDI_SWAP8(a) |
#define | KALDI_SWAP4(a) |
#define | KALDI_SWAP2(a) |
#define | KALDI_DISALLOW_COPY_AND_ASSIGN(type) |
#define | KALDI_COMPILE_TIME_ASSERT(b) KaldiCompileTimeAssert<(b)>::Check() |
#define | KALDI_ASSERT_IS_INTEGER_TYPE(I) |
#define | KALDI_ASSERT_IS_FLOATING_TYPE(F) |
#define | KALDI_STRCASECMP strcasecmp |
#define | KALDI_STRTOLL(cur_cstr, end_cstr) strtoll(cur_cstr, end_cstr, 10); |
Functions | |
std::string | CharToString (const char &c) |
int | MachineIsLittleEndian () |
void | Sleep (float seconds) |
#define KALDI_ASSERT_IS_FLOATING_TYPE | ( | F | ) |
Definition at line 137 of file kaldi-utils.h.
Referenced by MatrixBase< float >::MatrixBase(), kaldi::ReadHtk(), and VectorBase< float >::VectorBase().
#define KALDI_ASSERT_IS_INTEGER_TYPE | ( | I | ) |
Definition at line 133 of file kaldi-utils.h.
Referenced by kaldi::ConvertStringToInteger(), fst::CreateFactorFst(), fst::CreateMapFst(), fst::ExpandInputSequences(), fst::Factor(), fst::GetInputSymbols(), fst::GetOutputSymbols(), ConstIntegerSet< EventValueType >::InitInternal(), fst::MapInputSymbols(), MapInputSymbolsMapper< Arc, I >::MapInputSymbolsMapper(), kaldi::MergePairVectorSumming(), PairHasher< Int1, Int2 >::PairHasher(), kaldi::ReadBasicType(), kaldi::ReadIntegerPairVector(), kaldi::ReadIntegerVector(), fst::RemoveSomeInputSymbols(), RemoveSomeInputSymbolsMapper< Arc, I >::RemoveSomeInputSymbolsMapper(), kaldi::SplitStringToIntegers(), VectorHasher< Int >::VectorHasher(), kaldi::WriteBasicType(), kaldi::WriteIntegerPairVector(), and kaldi::WriteIntegerVector().
#define KALDI_COMPILE_TIME_ASSERT | ( | b | ) | KaldiCompileTimeAssert<(b)>::Check() |
Definition at line 131 of file kaldi-utils.h.
Referenced by CompressedMatrix::AllocateData(), CompressedMatrix::CompressedMatrix(), ContextDependency::Compute(), CompressedMatrix::ComputeGlobalHeader(), CompactLatticePusher< Weight, IntType >::ComputeShifts(), and kaldi::WithProb().
#define KALDI_DISALLOW_COPY_AND_ASSIGN | ( | type | ) |
Definition at line 121 of file kaldi-utils.h.
Referenced by AffineComponentPreconditionedOnline::AffineComponentPreconditionedOnline(), LatticeIncrementalDecoderTpl< FST, decoder::BackpointerToken >::AllocateNewTokenLabel(), SpliceComponent::BackpropNeedsOutput(), SpliceMaxComponent::BackpropNeedsOutput(), SumGroupComponent::BackpropNeedsOutput(), PermuteComponent::BackpropNeedsOutput(), BiglmFasterDecoder::ClearToks(), NnetBatchComputer::GetOptions(), DecodableNnetSimple::GetOutput(), DecodableNnetSimpleLooped::GetOutput(), OptimizeLbfgs< Real >::GetProposedValue(), DecodableAmNnetSimpleLooped::IsLastFrame(), DecodableAmNnetSimple::IsLastFrame(), OnlineNnet2FeaturePipelineInfo::IvectorDim(), AffineComponentPreconditioned::SetMaxChange(), TableWriterImplBase< Holder >::TableWriterImplBase(), BlockAffineComponentPreconditioned::Type(), Component::~Component(), and DecodableAmNnetSimpleParallel::~DecodableAmNnetSimpleParallel().
#define KALDI_MEMALIGN | ( | align, | |
size, | |||
pp_orig | |||
) | (!posix_memalign(pp_orig, align, size) ? *(pp_orig) : NULL) |
Definition at line 58 of file kaldi-utils.h.
Referenced by PackedMatrix< float >::Init(), Vector< float >::Init(), Matrix< BaseFloat >::Init(), SpMatrix< float >::Invert(), MatrixBase< float >::Invert(), and MatrixBase< float >::LapackGesvd().
#define KALDI_MEMALIGN_FREE | ( | x | ) | free(x) |
Definition at line 60 of file kaldi-utils.h.
Referenced by CuPackedMatrix< Real >::Destroy(), PackedMatrix< float >::Destroy(), CuVector< float >::Destroy(), Vector< float >::Destroy(), CuMatrix< float >::Destroy(), Matrix< BaseFloat >::Destroy(), SpMatrix< float >::Invert(), MatrixBase< float >::Invert(), and MatrixBase< float >::LapackGesvd().
#define KALDI_STRCASECMP strcasecmp |
Definition at line 147 of file kaldi-utils.h.
Referenced by PackedMatrix< float >::Read(), Vector< float >::Read(), and Matrix< BaseFloat >::Read().
#define KALDI_STRTOLL | ( | cur_cstr, | |
end_cstr | |||
) | strtoll(cur_cstr, end_cstr, 10); |
Definition at line 152 of file kaldi-utils.h.
Referenced by kaldi::ConvertStringToInteger(), and kaldi::SplitStringToIntegers().
#define KALDI_SWAP2 | ( | a | ) |
Definition at line 114 of file kaldi-utils.h.
Referenced by WaveData::Read(), kaldi::ReadHtk(), WaveHeaderReadGofer::ReadUint16(), WaveData::Write(), kaldi::WriteHtk(), and kaldi::WriteUint16().
#define KALDI_SWAP4 | ( | a | ) |
Definition at line 107 of file kaldi-utils.h.
Referenced by SphinxMatrixHolder< kFeatDim >::Read(), kaldi::ReadHtk(), WaveHeaderReadGofer::ReadUint32(), SphinxMatrixHolder< kFeatDim >::Write(), kaldi::WriteHtk(), kaldi::WriteSphinx(), and kaldi::WriteUint32().
#define KALDI_SWAP8 | ( | a | ) |
Definition at line 94 of file kaldi-utils.h.