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

Member Function Documentation

◆ Init()

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().

1421  {
1422  variables.Init(computation);
1426  &matrix_accesses);
1427 }
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:296
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:297
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:298
ComputationVariables variables
Definition: nnet-analyze.h:295

Member Data Documentation

◆ command_attributes

std::vector<CommandAttributes> command_attributes

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

Referenced by kaldi::nnet3::ConvertAdditionToAssignment().

◆ matrix_accesses

◆ variable_accesses

◆ variables


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