NnetChainExample is like NnetExample, but specialized for lattice-free (chain) training. More...
#include <nnet-chain-example.h>
Public Member Functions | |
void | Write (std::ostream &os, bool binary) const |
void | Read (std::istream &is, bool binary) |
void | Swap (NnetChainExample *other) |
void | Compress () |
NnetChainExample () | |
NnetChainExample (const NnetChainExample &other) | |
bool | operator== (const NnetChainExample &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< NnetChainSupervision > | outputs |
'outputs' contains the chain output supervision. More... | |
NnetChainExample is like NnetExample, but specialized for lattice-free (chain) training.
Definition at line 110 of file nnet-chain-example.h.
|
inline |
Definition at line 129 of file nnet-chain-example.h.
NnetChainExample | ( | const NnetChainExample & | other | ) |
Definition at line 189 of file nnet-chain-example.cc.
void Compress | ( | ) |
Definition at line 182 of file nnet-chain-example.cc.
|
inline |
Definition at line 133 of file nnet-chain-example.h.
References NnetChainExample::inputs, and NnetChainExample::outputs.
void Read | ( | std::istream & | is, |
bool | binary | ||
) |
Definition at line 157 of file nnet-chain-example.cc.
References kaldi::nnet3::ExpectToken(), rnnlm::i, KALDI_ERR, NnetChainSupervision::Read(), and kaldi::ReadBasicType().
void Swap | ( | NnetChainExample * | other | ) |
Definition at line 177 of file nnet-chain-example.cc.
References NnetChainExample::inputs, and NnetChainExample::outputs.
void Write | ( | std::ostream & | os, |
bool | binary | ||
) | const |
Definition at line 132 of file nnet-chain-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 115 of file nnet-chain-example.h.
Referenced by NnetChainComputeProb::Compute(), kaldi::nnet3::GetChainComputationRequest(), kaldi::nnet3::GetNnetChainExampleSize(), kaldi::nnet3::MergeChainExamples(), NnetChainExampleStructureCompare::operator()(), NnetChainExample::operator==(), kaldi::nnet3::ShiftChainExampleTimes(), NnetChainExample::Swap(), NnetChainTrainer::TrainInternal(), and NnetChainTrainer::TrainInternalBackstitch().
std::vector<NnetChainSupervision> outputs |
'outputs' contains the chain output supervision.
There will normally be just one member with name == "output".
Definition at line 119 of file nnet-chain-example.h.
Referenced by kaldi::nnet3::GetChainComputationRequest(), kaldi::nnet3::GetNnetChainExampleSize(), kaldi::nnet3::MergeChainExamples(), NnetChainExampleStructureCompare::operator()(), NnetChainExample::operator==(), NnetChainTrainer::ProcessOutputs(), NnetChainComputeProb::ProcessOutputs(), kaldi::nnet3::ShiftChainExampleTimes(), and NnetChainExample::Swap().