#include <nnet-discriminative-example.h>
Public Member Functions | |
NnetDiscriminativeSupervision () | |
NnetDiscriminativeSupervision (const std::string &name, const discriminative::DiscriminativeSupervision &supervision, const VectorBase< BaseFloat > &deriv_weights, int32 first_frame, int32 frame_skip) | |
NnetDiscriminativeSupervision (const NnetDiscriminativeSupervision &other) | |
void | Write (std::ostream &os, bool binary) const |
void | Read (std::istream &is, bool binary) |
void | Swap (NnetDiscriminativeSupervision *other) |
void | CheckDim () const |
bool | operator== (const NnetDiscriminativeSupervision &other) const |
Public Attributes | |
std::string | name |
std::vector< Index > | indexes |
discriminative::DiscriminativeSupervision | supervision |
Vector< BaseFloat > | deriv_weights |
Definition at line 42 of file nnet-discriminative-example.h.
|
inline |
NnetDiscriminativeSupervision | ( | const std::string & | name, |
const discriminative::DiscriminativeSupervision & | supervision, | ||
const VectorBase< BaseFloat > & | deriv_weights, | ||
int32 | first_frame, | ||
int32 | frame_skip | ||
) |
Definition at line 91 of file nnet-discriminative-example.cc.
References NnetDiscriminativeSupervision::CheckDim(), DiscriminativeSupervision::frames_per_sequence, rnnlm::i, NnetDiscriminativeSupervision::indexes, rnnlm::j, KALDI_ASSERT, and DiscriminativeSupervision::num_sequences.
NnetDiscriminativeSupervision | ( | const NnetDiscriminativeSupervision & | other | ) |
Definition at line 85 of file nnet-discriminative-example.cc.
References NnetDiscriminativeSupervision::CheckDim().
void CheckDim | ( | ) | const |
Definition at line 57 of file nnet-discriminative-example.cc.
References NnetDiscriminativeSupervision::deriv_weights, DiscriminativeSupervision::frames_per_sequence, rnnlm::i, NnetDiscriminativeSupervision::indexes, rnnlm::j, KALDI_ASSERT, rnnlm::n, DiscriminativeSupervision::num_sequences, and NnetDiscriminativeSupervision::supervision.
Referenced by kaldi::nnet3::MergeSupervision(), NnetDiscriminativeSupervision::NnetDiscriminativeSupervision(), NnetDiscriminativeSupervision::Read(), NnetDiscriminativeSupervision::Swap(), and NnetDiscriminativeSupervision::Write().
bool operator== | ( | const NnetDiscriminativeSupervision & | other | ) | const |
Definition at line 39 of file nnet-discriminative-example.cc.
References NnetDiscriminativeSupervision::deriv_weights, NnetDiscriminativeSupervision::indexes, NnetDiscriminativeSupervision::name, and NnetDiscriminativeSupervision::supervision.
Referenced by NnetDiscriminativeSupervision::NnetDiscriminativeSupervision().
void Read | ( | std::istream & | is, |
bool | binary | ||
) |
Definition at line 45 of file nnet-discriminative-example.cc.
References NnetDiscriminativeSupervision::CheckDim(), NnetDiscriminativeSupervision::deriv_weights, kaldi::nnet3::ExpectToken(), NnetDiscriminativeSupervision::indexes, NnetDiscriminativeSupervision::name, DiscriminativeSupervision::Read(), kaldi::nnet3::ReadIndexVector(), kaldi::ReadToken(), kaldi::nnet3::ReadVectorAsChar(), and NnetDiscriminativeSupervision::supervision.
Referenced by NnetDiscriminativeSupervision::NnetDiscriminativeSupervision(), and NnetDiscriminativeExample::Read().
void Swap | ( | NnetDiscriminativeSupervision * | other | ) |
Definition at line 115 of file nnet-discriminative-example.cc.
References NnetDiscriminativeSupervision::CheckDim(), NnetDiscriminativeSupervision::deriv_weights, NnetDiscriminativeSupervision::indexes, NnetDiscriminativeSupervision::name, kaldi::RandInt(), NnetDiscriminativeSupervision::supervision, and DiscriminativeSupervision::Swap().
Referenced by NnetDiscriminativeSupervision::NnetDiscriminativeSupervision().
void Write | ( | std::ostream & | os, |
bool | binary | ||
) | const |
Definition at line 28 of file nnet-discriminative-example.cc.
References NnetDiscriminativeSupervision::CheckDim(), NnetDiscriminativeSupervision::deriv_weights, NnetDiscriminativeSupervision::indexes, NnetDiscriminativeSupervision::name, NnetDiscriminativeSupervision::supervision, DiscriminativeSupervision::Write(), kaldi::nnet3::WriteIndexVector(), kaldi::WriteToken(), and kaldi::nnet3::WriteVectorAsChar().
Referenced by NnetDiscriminativeSupervision::NnetDiscriminativeSupervision().
Definition at line 71 of file nnet-discriminative-example.h.
Referenced by NnetDiscriminativeSupervision::CheckDim(), kaldi::nnet3::MergeSupervision(), NnetDiscriminativeSupervision::operator==(), NnetDiscriminativeTrainer::ProcessOutputs(), NnetDiscriminativeSupervision::Read(), NnetDiscriminativeSupervision::Swap(), and NnetDiscriminativeSupervision::Write().
std::vector<Index> indexes |
Definition at line 54 of file nnet-discriminative-example.h.
Referenced by NnetDiscriminativeSupervision::CheckDim(), kaldi::nnet3::GetDiscriminativeComputationRequest(), kaldi::nnet3::MergeSupervision(), NnetDiscriminativeSupervision::NnetDiscriminativeSupervision(), NnetDiscriminativeExampleStructureHasher::operator()(), NnetDiscriminativeSupervision::operator==(), NnetDiscriminativeSupervision::Read(), NnetDiscriminativeSupervision::Swap(), and NnetDiscriminativeSupervision::Write().
std::string name |
Definition at line 45 of file nnet-discriminative-example.h.
Referenced by kaldi::nnet3::GetDiscriminativeComputationRequest(), kaldi::nnet3::MergeSupervision(), NnetDiscriminativeExampleStructureHasher::operator()(), NnetDiscriminativeSupervision::operator==(), NnetDiscriminativeComputeObjf::ProcessOutputs(), NnetDiscriminativeTrainer::ProcessOutputs(), NnetDiscriminativeSupervision::Read(), NnetDiscriminativeSupervision::Swap(), and NnetDiscriminativeSupervision::Write().
discriminative::DiscriminativeSupervision supervision |
Definition at line 58 of file nnet-discriminative-example.h.
Referenced by NnetDiscriminativeSupervision::CheckDim(), kaldi::nnet3::MergeSupervision(), NnetDiscriminativeSupervision::operator==(), NnetDiscriminativeComputeObjf::ProcessOutputs(), NnetDiscriminativeTrainer::ProcessOutputs(), NnetDiscriminativeSupervision::Read(), NnetDiscriminativeSupervision::Swap(), and NnetDiscriminativeSupervision::Write().