Public Member Functions | |
FisherComputationClass (const Nnet &nnet, const std::vector< Nnet > &nnets, const std::vector< NnetExample > &egs, int32 minibatch_size, SpMatrix< double > *scatter) | |
FisherComputationClass (const FisherComputationClass &other) | |
void | operator() () |
~FisherComputationClass () | |
Public Member Functions inherited from MultiThreadable | |
virtual | ~MultiThreadable () |
Private Attributes | |
const Nnet & | nnet_ |
const std::vector< Nnet > & | nnets_ |
const std::vector< NnetExample > & | egs_ |
int32 | minibatch_size_ |
SpMatrix< double > * | scatter_ptr_ |
SpMatrix< double > | scatter_ |
Additional Inherited Members | |
Public Attributes inherited from MultiThreadable | |
int32 | thread_id_ |
int32 | num_threads_ |
Definition at line 31 of file combine-nnet-fast.cc.
|
inline |
Definition at line 33 of file combine-nnet-fast.cc.
|
inline |
Definition at line 43 of file combine-nnet-fast.cc.
References FisherComputationClass::nnet_, FisherComputationClass::nnets_, Nnet::NumUpdatableComponents(), SpMatrix< Real >::Resize(), and FisherComputationClass::scatter_.
|
inline |
Definition at line 82 of file combine-nnet-fast.cc.
References SpMatrix< Real >::AddSp(), PackedMatrix< Real >::NumRows(), SpMatrix< Real >::Resize(), FisherComputationClass::scatter_, and FisherComputationClass::scatter_ptr_.
|
inlinevirtual |
Implements MultiThreadable.
Definition at line 49 of file combine-nnet-fast.cc.
References SpMatrix< Real >::AddVec2(), VectorBase< Real >::Dim(), kaldi::nnet2::DoBackprop(), UpdatableComponent::DotProduct(), FisherComputationClass::egs_, Nnet::GetComponent(), rnnlm::i, KALDI_ASSERT, FisherComputationClass::minibatch_size_, rnnlm::n, FisherComputationClass::nnet_, FisherComputationClass::nnets_, MultiThreadable::num_threads_, Nnet::NumComponents(), Nnet::NumUpdatableComponents(), FisherComputationClass::scatter_, Nnet::SetZero(), and MultiThreadable::thread_id_.
|
private |
Definition at line 94 of file combine-nnet-fast.cc.
Referenced by FastNnetCombiner::ComputeObjfAndGradient(), FastNnetCombiner::ComputePreconditioner(), FastNnetCombiner::GetInitialParams(), and FisherComputationClass::operator()().
|
private |
Definition at line 95 of file combine-nnet-fast.cc.
Referenced by FisherComputationClass::operator()().
|
private |
Definition at line 91 of file combine-nnet-fast.cc.
Referenced by FisherComputationClass::FisherComputationClass(), and FisherComputationClass::operator()().
|
private |
Definition at line 92 of file combine-nnet-fast.cc.
Referenced by FastNnetCombiner::ComputeCurrentNnet(), FastNnetCombiner::ComputeObjfAndGradient(), FastNnetCombiner::ComputePreconditioner(), FisherComputationClass::FisherComputationClass(), FastNnetCombiner::GetInitialParams(), and FisherComputationClass::operator()().
|
private |
Definition at line 98 of file combine-nnet-fast.cc.
Referenced by FisherComputationClass::FisherComputationClass(), FisherComputationClass::operator()(), and FisherComputationClass::~FisherComputationClass().
|
private |
Definition at line 97 of file combine-nnet-fast.cc.
Referenced by FisherComputationClass::~FisherComputationClass().