#include <nnet-stats.h>
Classes | |
struct | StatsElement |
Public Member Functions | |
NnetStats (int32 affine_component_index, BaseFloat bucket_width) | |
void | AddStats (BaseFloat avg_deriv, BaseFloat avg_value) |
void | AddStatsFromNnet (const Nnet &nnet) |
void | PrintStats (std::ostream &os) |
Private Member Functions | |
int32 | BucketFor (BaseFloat avg_deriv) |
Private Attributes | |
int32 | affine_component_index_ |
BaseFloat | bucket_width_ |
std::vector< StatsElement > | buckets_ |
StatsElement | global_ |
Definition at line 44 of file nnet-stats.h.
Definition at line 46 of file nnet-stats.h.
Referenced by kaldi::nnet2::GetNnetStats().
Definition at line 58 of file nnet-stats.cc.
References NnetStats::StatsElement::AddStats(), NnetStats::BucketFor(), NnetStats::buckets_, and NnetStats::global_.
void AddStatsFromNnet | ( | const Nnet & | nnet | ) |
Definition at line 63 of file nnet-stats.cc.
References NnetStats::StatsElement::AddStats(), NnetStats::affine_component_index_, NnetStats::StatsElement::count, NonlinearComponent::Count(), NnetStats::StatsElement::deriv_sum, NonlinearComponent::DerivSum(), CuVectorBase< Real >::Dim(), Nnet::GetComponent(), rnnlm::i, KALDI_ASSERT, KALDI_ERR, KALDI_WARN, and NonlinearComponent::ValueSum().
Definition at line 47 of file nnet-stats.cc.
References NnetStats::bucket_width_, NnetStats::buckets_, KALDI_ASSERT, and NnetStats::StatsElement::StatsElement().
Referenced by NnetStats::AddStats().
void PrintStats | ( | std::ostream & | os | ) |
Definition at line 88 of file nnet-stats.cc.
References NnetStats::buckets_, NnetStats::global_, rnnlm::i, and NnetStats::StatsElement::PrintStats().
|
private |
Definition at line 80 of file nnet-stats.h.
Referenced by NnetStats::AddStatsFromNnet().
|
private |
Definition at line 82 of file nnet-stats.h.
Referenced by NnetStats::BucketFor().
|
private |
Definition at line 84 of file nnet-stats.h.
Referenced by NnetStats::AddStats(), NnetStats::BucketFor(), and NnetStats::PrintStats().
|
private |
Definition at line 85 of file nnet-stats.h.
Referenced by NnetStats::AddStats(), and NnetStats::PrintStats().