All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Analyzer Struct Reference

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>

Collaboration diagram for Analyzer:

Public Member Functions

void Init (const Nnet &nnet, const NnetComputation &computation)
 

Public Attributes

ComputationVariables variables
 
std::vector< CommandAttributescommand_attributes
 
std::vector< std::vector
< Access > > 
variable_accesses
 
std::vector< MatrixAccessesmatrix_accesses
 

Detailed Description

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 292 of file nnet-analyze.h.

Member Function Documentation

void Init ( const Nnet nnet,
const NnetComputation computation 
)

Definition at line 1275 of file nnet-analyze.cc.

References Analyzer::command_attributes, kaldi::nnet3::ComputeCommandAttributes(), kaldi::nnet3::ComputeMatrixAccesses(), kaldi::nnet3::ComputeVariableAccesses(), ComputationVariables::Init(), Analyzer::matrix_accesses, Analyzer::variable_accesses, and Analyzer::variables.

Referenced by ComputationChecker::Check(), kaldi::nnet3::ConvertAdditionToAssignment(), ComputationLoopedOptimizer::Optimize(), DerivativeTimeLimiter::PruneMatrices(), kaldi::nnet3::RemoveUnnecessaryZeroing(), kaldi::nnet3::UnitTestNnetAnalyze(), and VariableMergingOptimizer::VariableMergingOptimizer().

1275  {
1276  variables.Init(computation);
1280  &matrix_accesses);
1281 }
void Init(const NnetComputation &computation)
void ComputeCommandAttributes(const Nnet &nnet, const NnetComputation &computation, const ComputationVariables &vars, std::vector< CommandAttributes > *attributes)
std::vector< CommandAttributes > command_attributes
Definition: nnet-analyze.h:294
void ComputeVariableAccesses(const ComputationVariables &variables, const std::vector< CommandAttributes > &command_attributes, std::vector< std::vector< Access > > *variable_accesses)
After the command-level attributes have been computed, this function organizes them per variable (see...
std::vector< std::vector< Access > > variable_accesses
Definition: nnet-analyze.h:295
void ComputeMatrixAccesses(const Nnet &nnet, const NnetComputation &computation, const ComputationVariables &variables, const std::vector< CommandAttributes > &command_attributes, std::vector< MatrixAccesses > *matrix_accesses)
This function organizes information in the CommandAttributes in a way that is convenient to access pe...
std::vector< MatrixAccesses > matrix_accesses
Definition: nnet-analyze.h:296
ComputationVariables variables
Definition: nnet-analyze.h:293

Member Data Documentation

std::vector<CommandAttributes> command_attributes

Definition at line 294 of file nnet-analyze.h.

Referenced by kaldi::nnet3::ConvertAdditionToAssignment(), and Analyzer::Init().


The documentation for this struct was generated from the following files: