This struct exists to set up various pieces of analysis; it helps avoid the repetition of code where we compute all these things in sequence. More...
#include <nnet-analyze.h>
Public Member Functions | |
void | Init (const Nnet &nnet, const NnetComputation &computation) |
Public Attributes | |
ComputationVariables | variables |
std::vector< CommandAttributes > | command_attributes |
std::vector< std::vector< Access > > | variable_accesses |
std::vector< MatrixAccesses > | matrix_accesses |
This struct exists to set up various pieces of analysis; it helps avoid the repetition of code where we compute all these things in sequence.
Definition at line 294 of file nnet-analyze.h.
void Init | ( | const Nnet & | nnet, |
const NnetComputation & | computation | ||
) |
Definition at line 1421 of file nnet-analyze.cc.
References kaldi::nnet3::ComputeCommandAttributes(), kaldi::nnet3::ComputeMatrixAccesses(), and kaldi::nnet3::ComputeVariableAccesses().
Referenced by ComputationChecker::Check(), kaldi::nnet3::ConvertAdditionToAssignment(), DerivativeTimeLimiter::PruneMatrices(), kaldi::nnet3::RemoveUnnecessaryZeroing(), kaldi::nnet3::UnitTestNnetAnalyze(), and VariableMergingOptimizer::VariableMergingOptimizer().
std::vector<CommandAttributes> command_attributes |
Definition at line 296 of file nnet-analyze.h.
Referenced by kaldi::nnet3::ConvertAdditionToAssignment().
std::vector<MatrixAccesses> matrix_accesses |
Definition at line 298 of file nnet-analyze.h.
Referenced by ComputationChecker::CheckComputationCompression(), ComputationChecker::CheckComputationMatrixAccesses(), VariableMergingOptimizer::DoMerge(), kaldi::nnet3::MatrixIsUnused(), VariableMergingOptimizer::MayBeMerged(), DerivativeTimeLimiter::PruneMatrices(), kaldi::nnet3::RemoveCommandsForUnusedMatrix(), and kaldi::nnet3::RemoveUnnecessaryZeroing().
std::vector<std::vector<Access> > variable_accesses |
Definition at line 297 of file nnet-analyze.h.
Referenced by DerivativeTimeLimiter::CanLimitMatrix(), ComputationChecker::CheckComputationRewrite(), ComputationChecker::CheckComputationUndefined(), and kaldi::nnet3::RemoveUnnecessaryZeroing().
ComputationVariables variables |
Definition at line 295 of file nnet-analyze.h.
Referenced by DerivativeTimeLimiter::CanLimitMatrix(), ComputationChecker::CheckComputationRewrite(), ComputationChecker::CheckComputationUndefined(), VariableMergingOptimizer::MarkAsDirty(), VariableMergingOptimizer::MayBeMerged(), kaldi::nnet3::RemoveUnnecessaryZeroing(), and VariableMergingOptimizer::VariableMergingOptimizer().