#include <nnet-computation.h>
Public Member Functions | |
Command (CommandType command_type=kNoOperationMarker, int32 arg1=-1, int32 arg2=-1, int32 arg3=-1, int32 arg4=-1, int32 arg5=-1, int32 arg6=-1, int32 arg7=-1) | |
Command (BaseFloat alpha, CommandType command_type=kNoOperationMarker, int32 arg1=-1, int32 arg2=-1, int32 arg3=-1, int32 arg4=-1, int32 arg5=-1, int32 arg6=-1, int32 arg7=-1) | |
void | Read (std::istream &istream, bool binary) |
void | Write (std::ostream &ostream, bool binary) const |
Public Attributes | |
CommandType | command_type |
BaseFloat | alpha |
int32 | arg1 |
int32 | arg2 |
int32 | arg3 |
int32 | arg4 |
int32 | arg5 |
int32 | arg6 |
int32 | arg7 |
Definition at line 338 of file nnet-computation.h.
|
inline |
Definition at line 350 of file nnet-computation.h.
|
inline |
Definition at line 357 of file nnet-computation.h.
void Read | ( | std::istream & | istream, |
bool | binary | ||
) |
Definition at line 236 of file nnet-computation.cc.
References kaldi::nnet3::ExpectToken(), kaldi::nnet3::kAcceptInput, kaldi::nnet3::kAddRowRanges, kaldi::nnet3::kAddRows, kaldi::nnet3::kAddRowsMulti, kaldi::nnet3::kAddToRowsMulti, KALDI_ERR, kaldi::nnet3::kAllocMatrix, kaldi::nnet3::kBackprop, kaldi::nnet3::kBackpropNoModelUpdate, kaldi::nnet3::kCompressMatrix, kaldi::nnet3::kCopyRows, kaldi::nnet3::kCopyRowsMulti, kaldi::nnet3::kCopyToRowsMulti, kaldi::nnet3::kDeallocMatrix, kaldi::nnet3::kDecompressMatrix, kaldi::nnet3::kGotoLabel, kaldi::nnet3::kMatrixAdd, kaldi::nnet3::kMatrixCopy, kaldi::nnet3::kNoOperation, kaldi::nnet3::kNoOperationLabel, kaldi::nnet3::kNoOperationMarker, kaldi::nnet3::kNoOperationPermanent, kaldi::nnet3::kPropagate, kaldi::nnet3::kProvideOutput, kaldi::nnet3::kSetConst, kaldi::nnet3::kSwapMatrix, kaldi::ReadBasicType(), and kaldi::ReadIntegerVector().
void Write | ( | std::ostream & | ostream, |
bool | binary | ||
) | const |
Definition at line 320 of file nnet-computation.cc.
References kaldi::nnet3::kAcceptInput, kaldi::nnet3::kAddRowRanges, kaldi::nnet3::kAddRows, kaldi::nnet3::kAddRowsMulti, kaldi::nnet3::kAddToRowsMulti, KALDI_ERR, kaldi::nnet3::kAllocMatrix, kaldi::nnet3::kBackprop, kaldi::nnet3::kBackpropNoModelUpdate, kaldi::nnet3::kCompressMatrix, kaldi::nnet3::kCopyRows, kaldi::nnet3::kCopyRowsMulti, kaldi::nnet3::kCopyToRowsMulti, kaldi::nnet3::kDeallocMatrix, kaldi::nnet3::kDecompressMatrix, kaldi::nnet3::kGotoLabel, kaldi::nnet3::kMatrixAdd, kaldi::nnet3::kMatrixCopy, kaldi::nnet3::kNoOperation, kaldi::nnet3::kNoOperationLabel, kaldi::nnet3::kNoOperationMarker, kaldi::nnet3::kNoOperationPermanent, kaldi::nnet3::kPropagate, kaldi::nnet3::kProvideOutput, kaldi::nnet3::kSetConst, kaldi::nnet3::kSwapMatrix, kaldi::WriteBasicType(), kaldi::WriteIntegerVector(), and kaldi::WriteToken().
BaseFloat alpha |
Definition at line 340 of file nnet-computation.h.
Referenced by ComputationChecker::CheckComputationCompression(), ComputationChecker::CheckComputationIndexes(), kaldi::nnet3::ConvertAdditionToAssignment(), VariableMergingOptimizer::DoMerge(), NnetComputer::ExecuteCommand(), ComputationExpander::ExpandRowsCommand(), MatrixExtender::ExtendMatrices(), ComputationAnalysis::FirstNontrivialAccess(), ComputationAnalysis::FirstNontrivialMatrixAccess(), MatrixExtender::FixComputation(), kaldi::nnet3::PrintCommand(), kaldi::nnet3::RemoveUnnecessaryZeroing(), and RowOpsSplitter::SplitCommand().
int32 arg1 |
Definition at line 341 of file nnet-computation.h.
Referenced by ComputationChecker::CheckComputationCompression(), ComputationChecker::CheckComputationIndexes(), kaldi::nnet3::ComputeCommandAttributes(), kaldi::nnet3::ComputeMatrixAccesses(), ComputationExpander::ComputePrecomputedIndexes(), ModelUpdateConsolidator::ConsolidateModelUpdate(), NnetComputer::DebugAfterExecute(), NnetComputer::DebugBeforeExecute(), VariableMergingOptimizer::DoMerge(), NnetComputer::ExecuteCommand(), ComputationExpander::ExpandRowRangesCommand(), ComputationExpander::ExpandRowsCommand(), ComputationExpander::ExpandRowsMultiCommand(), MatrixExtender::ExtendMatrices(), ComputationLoopedOptimizer::FindTimeShift(), MatrixExtender::FixComputation(), kaldi::nnet3::GetMaxMemoryUse(), kaldi::nnet3::IdentifySubmatrixArgs(), DerivativeTimeLimiter::MapAddRowRangesCommand(), DerivativeTimeLimiter::MapIndexesCommand(), DerivativeTimeLimiter::MapIndexesMultiCommand(), DerivativeTimeLimiter::MapSimpleMatrixCommand(), MatrixExtender::MatrixExtender(), VariableMergingOptimizer::MergeVariables(), DerivativeTimeLimiter::ModifyCommand(), kaldi::nnet3::PrintCommand(), MemoryCompressionOptimizer::ProcessMatrix(), kaldi::nnet3::RemoveUnnecessaryAllocation(), kaldi::nnet3::ReplaceRowWithMatrixOps(), kaldi::nnet3::SnipMultiRowOp(), kaldi::nnet3::SnipRangesRowOp(), kaldi::nnet3::SnipSingleRowOp(), and RowOpsSplitter::SplitCommand().
int32 arg2 |
Definition at line 342 of file nnet-computation.h.
Referenced by ComputationChecker::CheckComputationCompression(), ComputationChecker::CheckComputationIndexes(), kaldi::nnet3::ComputeCommandAttributes(), kaldi::nnet3::ComputeMatrixAccesses(), ComputationExpander::ComputePrecomputedIndexes(), ModelUpdateConsolidator::ConsolidateUpdateForComponent(), VariableMergingOptimizer::DoMerge(), NnetComputer::ExecuteCommand(), ComputationExpander::ExpandRowRangesCommand(), ComputationExpander::ExpandRowsCommand(), ComputationExpander::ExpandRowsMultiCommand(), MatrixExtender::ExtendMatrices(), ComputationLoopedOptimizer::FindTimeShift(), kaldi::nnet3::GetMaxMemoryUse(), kaldi::nnet3::IdentifyIndexesMultiArgs(), kaldi::nnet3::IdentifySubmatrixArgs(), DerivativeTimeLimiter::MapAddRowRangesCommand(), DerivativeTimeLimiter::MapIndexesCommand(), DerivativeTimeLimiter::MapIndexesMultiCommand(), DerivativeTimeLimiter::MapSimpleMatrixCommand(), VariableMergingOptimizer::MergeVariables(), kaldi::nnet3::PrintCommand(), kaldi::nnet3::ReplaceRowWithMatrixOps(), kaldi::nnet3::SnipMultiRowOp(), and RowOpsSplitter::SplitCommand().
int32 arg3 |
Definition at line 343 of file nnet-computation.h.
Referenced by ComputationChecker::CheckComputationIndexes(), kaldi::nnet3::ComputeCommandAttributes(), ModelUpdateConsolidator::ConsolidateUpdateForComponent(), NnetComputer::ExecuteCommand(), ComputationExpander::ExpandRowRangesCommand(), ComputationExpander::ExpandRowsCommand(), kaldi::nnet3::IdentifyIndexesArgs(), kaldi::nnet3::IdentifyIndexesRangesArgs(), kaldi::nnet3::IdentifySubmatrixArgs(), DerivativeTimeLimiter::MapAddRowRangesCommand(), DerivativeTimeLimiter::MapIndexesCommand(), VariableMergingOptimizer::MergeVariables(), DerivativeTimeLimiter::ModifyCommand(), kaldi::nnet3::PrintCommand(), kaldi::nnet3::ReplaceRowWithMatrixOps(), kaldi::nnet3::SnipRangesRowOp(), kaldi::nnet3::SnipSingleRowOp(), and RowOpsSplitter::SplitCommand().
int32 arg4 |
Definition at line 344 of file nnet-computation.h.
Referenced by ComputationChecker::CheckComputationIndexes(), kaldi::nnet3::ComputeCommandAttributes(), ModelUpdateConsolidator::ConsolidateUpdateForComponent(), NnetComputer::ExecuteCommand(), kaldi::nnet3::IdentifySubmatrixArgs(), VariableMergingOptimizer::MergeVariables(), DerivativeTimeLimiter::ModifyCommand(), and kaldi::nnet3::PrintCommand().
int32 arg5 |
Definition at line 345 of file nnet-computation.h.
Referenced by ComputationChecker::CheckComputationIndexes(), kaldi::nnet3::ComputeCommandAttributes(), ModelUpdateConsolidator::ConsolidateUpdateForComponent(), NnetComputer::ExecuteCommand(), kaldi::nnet3::IdentifySubmatrixArgs(), VariableMergingOptimizer::MergeVariables(), DerivativeTimeLimiter::ModifyCommand(), kaldi::nnet3::PrintCommand(), DerivativeTimeLimiter::RemoveUnusedMemos(), and ComputationRenumberer::RenumberMemos().
int32 arg6 |
Definition at line 346 of file nnet-computation.h.
Referenced by ComputationChecker::CheckComputationIndexes(), kaldi::nnet3::ComputeCommandAttributes(), NnetComputer::ExecuteCommand(), kaldi::nnet3::IdentifySubmatrixArgs(), VariableMergingOptimizer::MergeVariables(), DerivativeTimeLimiter::ModifyCommand(), and kaldi::nnet3::PrintCommand().
int32 arg7 |
Definition at line 347 of file nnet-computation.h.
Referenced by ComputationChecker::CheckComputationIndexes(), NnetComputer::ExecuteCommand(), DerivativeTimeLimiter::ModifyCommand(), and ComputationRenumberer::RenumberMemos().
CommandType command_type |
Definition at line 339 of file nnet-computation.h.
Referenced by ComputationLoopedOptimizer::AddMatrixSwapCommands(), DerivativeTimeLimiter::CanLimitMatrix(), ComputationChecker::CheckComputationCompression(), ComputationChecker::CheckComputationIndexes(), kaldi::nnet3::ComputeCommandAttributes(), ComputationExpander::ComputeCommands(), kaldi::nnet3::ComputeMatrixAccesses(), ComputationExpander::ComputePrecomputedIndexes(), ModelUpdateConsolidator::ConsolidateModelUpdate(), ModelUpdateConsolidator::ConsolidateUpdateForComponent(), kaldi::nnet3::ConvertAdditionToAssignment(), NnetComputer::DebugAfterExecute(), NnetComputer::DebugBeforeExecute(), VariableMergingOptimizer::DoMerge(), NnetComputer::ExecuteCommand(), MatrixExtender::ExtendMatrices(), ComputationAnalysis::FirstNontrivialAccess(), ComputationAnalysis::FirstNontrivialMatrixAccess(), MatrixExtender::FixComputation(), kaldi::nnet3::GetMaxMemoryUse(), kaldi::nnet3::IdentifyIndexesArgs(), kaldi::nnet3::IdentifyIndexesMultiArgs(), kaldi::nnet3::IdentifyIndexesRangesArgs(), kaldi::nnet3::IdentifySubmatrixArgs(), kaldi::nnet3::IsNoop(), DerivativeTimeLimiter::MapAddRowRangesCommand(), DerivativeTimeLimiter::MapIndexesCommand(), DerivativeTimeLimiter::MapIndexesMultiCommand(), DerivativeTimeLimiter::MapSimpleMatrixCommand(), MatrixExtender::MatrixExtender(), kaldi::nnet3::MatrixIsUnused(), VariableMergingOptimizer::MergeVariables(), DerivativeTimeLimiter::ModifyCommand(), kaldi::nnet3::MoveSizingCommands(), kaldi::nnet3::PrintCommand(), MemoryCompressionOptimizer::ProcessMatrix(), kaldi::nnet3::RemoveCommandsForUnusedMatrix(), kaldi::nnet3::RemoveUnnecessaryAllocation(), kaldi::nnet3::RemoveUnnecessaryZeroing(), DerivativeTimeLimiter::RemoveUnusedMemos(), ComputationRenumberer::RenumberMemos(), kaldi::nnet3::ReplaceRowWithMatrixOps(), kaldi::nnet3::SnipRowOps(), and RowOpsSplitter::SplitCommand().