
Public Types | |
| typedef NnetComputation::SubMatrixInfo | SubMatrixInfo | 
| typedef NnetComputation::MatrixInfo | MatrixInfo | 
Public Member Functions | |
| MatrixExtender (NnetComputation *computation) | |
| void | ExtendMatrices () | 
Private Member Functions | |
| bool | CanBeExtended (int32 dest_submatrix_index, int32 src_submatrix_index) | 
| void | Extend (int32 *dest_submatrix_index, int32 *src_submatrix_index) | 
| void | FixComputation () | 
| void | FixDebugInfo () | 
Private Attributes | |
| BaseFloat | min_proportion_ | 
| NnetComputation * | computation_ | 
| std::vector< int32 > | orig_num_rows_ | 
| std::vector< bool > | is_input_or_output_ | 
Definition at line 1019 of file nnet-optimize-utils.cc.
Definition at line 1022 of file nnet-optimize-utils.cc.
Definition at line 1021 of file nnet-optimize-utils.cc.
| MatrixExtender | ( | NnetComputation * | computation | ) | 
Definition at line 1067 of file nnet-optimize-utils.cc.
References NnetComputation::Command::arg1, NnetComputation::Command::command_type, NnetComputation::commands, MatrixExtender::computation_, MatrixExtender::is_input_or_output_, kaldi::nnet3::kAcceptInput, KALDI_ASSERT, kaldi::nnet3::kProvideOutput, kaldi::nnet3::kSwapMatrix, NnetComputation::matrices, MatrixExtender::orig_num_rows_, and NnetComputation::submatrices.
Definition at line 1099 of file nnet-optimize-utils.cc.
References NnetComputation::SubMatrixInfo::col_offset, MatrixExtender::computation_, MatrixExtender::is_input_or_output_, NnetComputation::matrices, NnetComputation::SubMatrixInfo::matrix_index, MatrixExtender::min_proportion_, NnetComputation::MatrixInfo::num_cols, NnetComputation::SubMatrixInfo::num_cols, NnetComputation::MatrixInfo::num_rows, NnetComputation::SubMatrixInfo::num_rows, MatrixExtender::orig_num_rows_, NnetComputation::SubMatrixInfo::row_offset, and NnetComputation::submatrices.
Referenced by MatrixExtender::ExtendMatrices().
Definition at line 1132 of file nnet-optimize-utils.cc.
References MatrixExtender::computation_, NnetComputation::matrices, NnetComputation::SubMatrixInfo::matrix_index, NnetComputation::MatrixInfo::num_cols, NnetComputation::MatrixInfo::num_rows, and NnetComputation::submatrices.
Referenced by MatrixExtender::ExtendMatrices().
| void ExtendMatrices | ( | ) | 
Definition at line 1174 of file nnet-optimize-utils.cc.
References NnetComputation::Command::alpha, NnetComputation::Command::arg1, NnetComputation::Command::arg2, MatrixExtender::CanBeExtended(), NnetComputation::Command::command_type, NnetComputation::commands, MatrixExtender::computation_, MatrixExtender::Extend(), MatrixExtender::FixComputation(), and kaldi::nnet3::kMatrixCopy.
Referenced by kaldi::nnet3::ExtendMatrices().
      
  | 
  private | 
Definition at line 1195 of file nnet-optimize-utils.cc.
References NnetComputation::Command::alpha, NnetComputation::Command::arg1, NnetComputation::SubMatrixInfo::col_offset, NnetComputation::Command::command_type, NnetComputation::commands, MatrixExtender::computation_, MatrixExtender::FixDebugInfo(), NnetComputation::GetWholeSubmatrices(), KALDI_ASSERT, kaldi::nnet3::kAllocMatrix, kaldi::nnet3::kDeallocMatrix, kaldi::nnet3::kSetConst, NnetComputation::matrices, NnetComputation::matrix_debug_info, NnetComputation::SubMatrixInfo::matrix_index, NnetComputation::MatrixInfo::num_cols, NnetComputation::SubMatrixInfo::num_cols, NnetComputation::SubMatrixInfo::num_rows, MatrixExtender::orig_num_rows_, kaldi::nnet3::RenumberComputation(), NnetComputation::SubMatrixInfo::row_offset, and NnetComputation::submatrices.
Referenced by MatrixExtender::ExtendMatrices().
      
  | 
  private | 
Definition at line 1246 of file nnet-optimize-utils.cc.
References NnetComputation::MatrixDebugInfo::cindexes, MatrixExtender::computation_, KALDI_ASSERT, kaldi::nnet3::kNoTime, NnetComputation::matrices, and NnetComputation::matrix_debug_info.
Referenced by MatrixExtender::FixComputation().
      
  | 
  private | 
Definition at line 1052 of file nnet-optimize-utils.cc.
Referenced by ModelUpdateConsolidator::AddCommandsToComputation(), ModelUpdateConsolidator::AppendDebugInfoForSubmatrix(), MatrixExtender::CanBeExtended(), ModelUpdateConsolidator::ConsolidateSubmatrices(), ModelUpdateConsolidator::ConsolidateUpdateForComponent(), MatrixExtender::Extend(), MatrixExtender::ExtendMatrices(), MatrixExtender::FixComputation(), MatrixExtender::FixDebugInfo(), and MatrixExtender::MatrixExtender().
      
  | 
  private | 
Definition at line 1061 of file nnet-optimize-utils.cc.
Referenced by MatrixExtender::CanBeExtended(), and MatrixExtender::MatrixExtender().
      
  | 
  private | 
Definition at line 1050 of file nnet-optimize-utils.cc.
Referenced by MatrixExtender::CanBeExtended().
      
  | 
  private | 
Definition at line 1057 of file nnet-optimize-utils.cc.
Referenced by MatrixExtender::CanBeExtended(), MatrixExtender::FixComputation(), and MatrixExtender::MatrixExtender().