#include <online-feat-input.h>
Public Member Functions | |
OnlineDeltaInput (const DeltaFeaturesOptions &delta_opts, OnlineFeatInputItf *input) | |
virtual bool | Compute (Matrix< BaseFloat > *output) |
virtual int32 | Dim () const |
Public Member Functions inherited from OnlineFeatInputItf | |
virtual | ~OnlineFeatInputItf () |
Private Member Functions | |
int32 | Context () const |
void | DeltaComputation (const MatrixBase< BaseFloat > &input, Matrix< BaseFloat > *output, Matrix< BaseFloat > *remainder) const |
KALDI_DISALLOW_COPY_AND_ASSIGN (OnlineDeltaInput) | |
Static Private Member Functions | |
static void | AppendFrames (const MatrixBase< BaseFloat > &input1, const MatrixBase< BaseFloat > &input2, const MatrixBase< BaseFloat > &input3, Matrix< BaseFloat > *output) |
Private Attributes | |
OnlineFeatInputItf * | input_ |
DeltaFeaturesOptions | opts_ |
const int32 | input_dim_ |
Matrix< BaseFloat > | remainder_ |
Definition at line 232 of file online-feat-input.h.
OnlineDeltaInput | ( | const DeltaFeaturesOptions & | delta_opts, |
OnlineFeatInputItf * | input | ||
) |
Definition at line 365 of file online-feat-input.cc.
|
staticprivate |
Definition at line 371 of file online-feat-input.cc.
References MatrixBase< Real >::NumCols(), MatrixBase< Real >::NumRows(), MatrixBase< Real >::Range(), and Matrix< Real >::Resize().
Referenced by OnlineDeltaInput::Compute().
Implements OnlineFeatInputItf.
Definition at line 422 of file online-feat-input.cc.
References OnlineDeltaInput::AppendFrames(), OnlineFeatInputItf::Compute(), OnlineDeltaInput::Context(), OnlineDeltaInput::DeltaComputation(), OnlineDeltaInput::Dim(), rnnlm::i, OnlineDeltaInput::input_, OnlineDeltaInput::input_dim_, KALDI_ASSERT, MatrixBase< Real >::NumCols(), MatrixBase< Real >::NumRows(), OnlineDeltaInput::remainder_, Matrix< Real >::Resize(), and MatrixBase< Real >::Row().
|
inlineprivate |
Definition at line 251 of file online-feat-input.h.
Referenced by OnlineDeltaInput::Compute(), and OnlineDeltaInput::DeltaComputation().
|
private |
Definition at line 394 of file online-feat-input.cc.
References OnlineDeltaInput::Context(), MatrixBase< Real >::CopyFromMat(), OnlineDeltaInput::Dim(), OnlineDeltaInput::input_dim_, MatrixBase< Real >::NumRows(), OnlineDeltaInput::opts_, DeltaFeatures::Process(), MatrixBase< Real >::Range(), and Matrix< Real >::Resize().
Referenced by OnlineDeltaInput::Compute().
|
inlinevirtual |
Implements OnlineFeatInputItf.
Definition at line 239 of file online-feat-input.h.
Referenced by OnlineDeltaInput::Compute(), and OnlineDeltaInput::DeltaComputation().
|
private |
|
private |
Definition at line 260 of file online-feat-input.h.
Referenced by OnlineDeltaInput::Compute(), and OnlineFeatureMatrix::GetNextFeatures().
|
private |
Definition at line 262 of file online-feat-input.h.
Referenced by OnlineDeltaInput::Compute(), and OnlineDeltaInput::DeltaComputation().
|
private |
Definition at line 261 of file online-feat-input.h.
Referenced by OnlineDeltaInput::DeltaComputation(), and OnlineFeatureMatrix::GetNextFeatures().
Definition at line 263 of file online-feat-input.h.
Referenced by OnlineDeltaInput::Compute().