NnetDiscriminativeExample is like NnetExample, but specialized for sequence training. More...
#include <nnet-discriminative-example.h>
Public Member Functions | |
void | Write (std::ostream &os, bool binary) const |
void | Read (std::istream &is, bool binary) |
void | Swap (NnetDiscriminativeExample *other) |
void | Compress () |
NnetDiscriminativeExample () | |
NnetDiscriminativeExample (const NnetDiscriminativeExample &other) | |
bool | operator== (const NnetDiscriminativeExample &other) const |
Public Attributes | |
std::vector< NnetIo > | inputs |
'inputs' contains the input to the network– normally just it has just one element called "input", but there may be others (e.g. More... | |
std::vector< NnetDiscriminativeSupervision > | outputs |
'outputs' contains the sequence output supervision. More... | |
NnetDiscriminativeExample is like NnetExample, but specialized for sequence training.
Definition at line 103 of file nnet-discriminative-example.h.
|
inline |
Definition at line 123 of file nnet-discriminative-example.h.
NnetDiscriminativeExample | ( | const NnetDiscriminativeExample & | other | ) |
Definition at line 182 of file nnet-discriminative-example.cc.
void Compress | ( | ) |
Definition at line 175 of file nnet-discriminative-example.cc.
Referenced by kaldi::nnet3::ProcessFile().
|
inline |
Definition at line 127 of file nnet-discriminative-example.h.
References NnetDiscriminativeExample::inputs, and NnetDiscriminativeExample::outputs.
void Read | ( | std::istream & | is, |
bool | binary | ||
) |
Definition at line 150 of file nnet-discriminative-example.cc.
References kaldi::nnet3::ExpectToken(), rnnlm::i, KALDI_ERR, NnetDiscriminativeSupervision::Read(), and kaldi::ReadBasicType().
void Swap | ( | NnetDiscriminativeExample * | other | ) |
Definition at line 170 of file nnet-discriminative-example.cc.
References NnetDiscriminativeExample::inputs, and NnetDiscriminativeExample::outputs.
void Write | ( | std::ostream & | os, |
bool | binary | ||
) | const |
Definition at line 125 of file nnet-discriminative-example.cc.
References rnnlm::i, KALDI_ASSERT, kaldi::WriteBasicType(), and kaldi::WriteToken().
std::vector<NnetIo> inputs |
'inputs' contains the input to the network– normally just it has just one element called "input", but there may be others (e.g.
one called "ivector")... this depends on the setup.
Definition at line 108 of file nnet-discriminative-example.h.
Referenced by NnetDiscriminativeComputeObjf::Compute(), kaldi::nnet3::GetDiscriminativeComputationRequest(), kaldi::nnet3::GetNnetDiscriminativeExampleSize(), main(), kaldi::nnet3::MergeDiscriminativeExamples(), NnetDiscriminativeExampleStructureCompare::operator()(), NnetDiscriminativeExample::operator==(), kaldi::nnet3::ProcessFile(), kaldi::nnet3::ShiftDiscriminativeExampleTimes(), NnetDiscriminativeExample::Swap(), and NnetDiscriminativeTrainer::Train().
std::vector<NnetDiscriminativeSupervision> outputs |
'outputs' contains the sequence output supervision.
There will normally be just one member with name == "output".
Definition at line 112 of file nnet-discriminative-example.h.
Referenced by kaldi::nnet3::GetDiscriminativeComputationRequest(), kaldi::nnet3::GetNnetDiscriminativeExampleSize(), main(), kaldi::nnet3::MergeDiscriminativeExamples(), NnetDiscriminativeExampleStructureCompare::operator()(), NnetDiscriminativeExample::operator==(), kaldi::nnet3::ProcessFile(), NnetDiscriminativeComputeObjf::ProcessOutputs(), NnetDiscriminativeTrainer::ProcessOutputs(), kaldi::nnet3::ShiftDiscriminativeExampleTimes(), and NnetDiscriminativeExample::Swap().