#include <nnet-example-utils.h>
Public Member Functions | |
ExampleGenerationConfig () | |
void | ComputeDerived () |
This function decodes 'num_frames_str' into 'num_frames', and ensures that the members of 'num_frames' are multiples of 'frame_subsampling_factor'. More... | |
void | Register (OptionsItf *po) |
Public Attributes | |
int32 | left_context |
int32 | right_context |
int32 | left_context_initial |
int32 | right_context_final |
int32 | num_frames_overlap |
int32 | frame_subsampling_factor |
std::string | num_frames_str |
std::vector< int32 > | num_frames |
Definition at line 82 of file nnet-example-utils.h.
|
inline |
Definition at line 100 of file nnet-example-utils.h.
References ExampleGenerationConfig::ComputeDerived().
void ComputeDerived | ( | ) |
This function decodes 'num_frames_str' into 'num_frames', and ensures that the members of 'num_frames' are multiples of 'frame_subsampling_factor'.
Definition at line 302 of file nnet-example-utils.cc.
References ExampleGenerationConfig::frame_subsampling_factor, rnnlm::i, KALDI_ERR, KALDI_LOG, ExampleGenerationConfig::num_frames, ExampleGenerationConfig::num_frames_str, and kaldi::SplitStringToIntegers().
Referenced by ExampleGenerationConfig::ExampleGenerationConfig(), main(), and ExampleMergingConfig::Register().
|
inline |
Definition at line 110 of file nnet-example-utils.h.
References OptionsItf::Register().
Referenced by main().
int32 frame_subsampling_factor |
Definition at line 88 of file nnet-example-utils.h.
Referenced by ExampleGenerationConfig::ComputeDerived(), UtteranceSplitter::GetChunksForUtterance(), UtteranceSplitter::GetGapSizes(), UtteranceSplitter::LengthsMatch(), kaldi::nnet3::ProcessFile(), and UtteranceSplitter::SetOutputWeights().
int32 left_context |
Definition at line 83 of file nnet-example-utils.h.
Referenced by UtteranceSplitter::GetChunksForUtterance().
int32 left_context_initial |
Definition at line 85 of file nnet-example-utils.h.
Referenced by UtteranceSplitter::GetChunksForUtterance().
std::vector<int32> num_frames |
Definition at line 98 of file nnet-example-utils.h.
Referenced by ExampleGenerationConfig::ComputeDerived(), UtteranceSplitter::DefaultDurationOfSplit(), UtteranceSplitter::GetChunkSizesForUtterance(), UtteranceSplitter::InitSplits(), UtteranceSplitter::MaxUtteranceLength(), and UtteranceSplitter::UtteranceSplitter().
int32 num_frames_overlap |
Definition at line 87 of file nnet-example-utils.h.
Referenced by UtteranceSplitter::DefaultDurationOfSplit(), and UtteranceSplitter::GetChunkSizesForUtterance().
std::string num_frames_str |
Definition at line 89 of file nnet-example-utils.h.
Referenced by ExampleGenerationConfig::ComputeDerived(), UtteranceSplitter::GetChunksForUtterance(), and UtteranceSplitter::UtteranceSplitter().
int32 right_context |
Definition at line 84 of file nnet-example-utils.h.
Referenced by UtteranceSplitter::GetChunksForUtterance().
int32 right_context_final |
Definition at line 86 of file nnet-example-utils.h.
Referenced by UtteranceSplitter::GetChunksForUtterance().