#include <nnet-optimize.h>
Public Member Functions | |
NnetOptimizeOptions () | |
void | Register (OptionsItf *opts) |
void | Read (std::istream &is, bool binary) |
void | Write (std::ostream &os, bool binary) const |
bool | operator== (const NnetOptimizeOptions &other) const |
Definition at line 35 of file nnet-optimize.h.
|
inline |
Definition at line 62 of file nnet-optimize.h.
bool operator== | ( | const NnetOptimizeOptions & | other | ) | const |
Definition at line 128 of file nnet-optimize.cc.
References NnetOptimizeOptions::allocate_from_other, NnetOptimizeOptions::allow_left_merge, NnetOptimizeOptions::allow_right_merge, NnetOptimizeOptions::backprop_in_place, NnetOptimizeOptions::consolidate_model_update, NnetOptimizeOptions::convert_addition, NnetOptimizeOptions::initialize_undefined, NnetOptimizeOptions::max_deriv_time, NnetOptimizeOptions::max_deriv_time_relative, NnetOptimizeOptions::memory_compression_level, NnetOptimizeOptions::min_deriv_time, NnetOptimizeOptions::move_sizing_commands, NnetOptimizeOptions::optimize, NnetOptimizeOptions::optimize_row_ops, NnetOptimizeOptions::propagate_in_place, NnetOptimizeOptions::remove_assignments, NnetOptimizeOptions::snip_row_ops, and NnetOptimizeOptions::split_row_ops.
Referenced by NnetOptimizeOptions::Register().
void Read | ( | std::istream & | is, |
bool | binary | ||
) |
Definition at line 30 of file nnet-optimize.cc.
References NnetOptimizeOptions::allocate_from_other, NnetOptimizeOptions::allow_left_merge, NnetOptimizeOptions::allow_right_merge, NnetOptimizeOptions::backprop_in_place, NnetOptimizeOptions::consolidate_model_update, NnetOptimizeOptions::convert_addition, kaldi::nnet3::ExpectToken(), NnetOptimizeOptions::extend_matrices, NnetOptimizeOptions::initialize_undefined, NnetOptimizeOptions::max_deriv_time, NnetOptimizeOptions::max_deriv_time_relative, NnetOptimizeOptions::memory_compression_level, NnetOptimizeOptions::min_deriv_time, NnetOptimizeOptions::move_sizing_commands, NnetOptimizeOptions::optimize, NnetOptimizeOptions::optimize_row_ops, kaldi::PeekToken(), NnetOptimizeOptions::propagate_in_place, kaldi::ReadBasicType(), NnetOptimizeOptions::remove_assignments, NnetOptimizeOptions::snip_row_ops, and NnetOptimizeOptions::split_row_ops.
Referenced by CachingOptimizingCompiler::ReadCache(), and NnetOptimizeOptions::Register().
|
inline |
Definition at line 84 of file nnet-optimize.h.
References kaldi::nnet3::MaxOutputTimeInRequest(), NnetOptimizeOptions::operator==(), kaldi::nnet3::Optimize(), NnetOptimizeOptions::Read(), OptionsItf::Register(), and NnetOptimizeOptions::Write().
Referenced by BatchedXvectorComputerOptions::Register(), NnetTrainerOptions::Register(), NnetSimpleLoopedComputationOptions::Register(), NnetSimpleComputationOptions::Register(), and NnetComputeProbOptions::Register().
void Write | ( | std::ostream & | os, |
bool | binary | ||
) | const |
Definition at line 85 of file nnet-optimize.cc.
References NnetOptimizeOptions::allocate_from_other, NnetOptimizeOptions::allow_left_merge, NnetOptimizeOptions::allow_right_merge, NnetOptimizeOptions::backprop_in_place, NnetOptimizeOptions::consolidate_model_update, NnetOptimizeOptions::convert_addition, NnetOptimizeOptions::extend_matrices, NnetOptimizeOptions::initialize_undefined, NnetOptimizeOptions::max_deriv_time, NnetOptimizeOptions::max_deriv_time_relative, NnetOptimizeOptions::memory_compression_level, NnetOptimizeOptions::min_deriv_time, NnetOptimizeOptions::move_sizing_commands, NnetOptimizeOptions::optimize, NnetOptimizeOptions::optimize_row_ops, NnetOptimizeOptions::propagate_in_place, NnetOptimizeOptions::remove_assignments, NnetOptimizeOptions::snip_row_ops, NnetOptimizeOptions::split_row_ops, kaldi::WriteBasicType(), and kaldi::WriteToken().
Referenced by NnetOptimizeOptions::Register(), and CachingOptimizingCompiler::WriteCache().
bool allocate_from_other |
Definition at line 51 of file nnet-optimize.h.
Referenced by NnetOptimizeOptions::operator==(), kaldi::nnet3::Optimize(), NnetOptimizeOptions::Read(), kaldi::nnet3::UnitTestNnetOptimizeInternal(), and NnetOptimizeOptions::Write().
bool allow_left_merge |
Definition at line 47 of file nnet-optimize.h.
Referenced by VariableMergingOptimizer::MayBeMerged(), NnetOptimizeOptions::operator==(), NnetOptimizeOptions::Read(), and NnetOptimizeOptions::Write().
bool allow_right_merge |
Definition at line 48 of file nnet-optimize.h.
Referenced by VariableMergingOptimizer::MayBeMerged(), NnetOptimizeOptions::operator==(), NnetOptimizeOptions::Read(), and NnetOptimizeOptions::Write().
bool backprop_in_place |
Definition at line 41 of file nnet-optimize.h.
Referenced by VariableMergingOptimizer::MergeVariables(), NnetOptimizeOptions::operator==(), kaldi::nnet3::Optimize(), NnetOptimizeOptions::Read(), kaldi::nnet3::UnitTestNnetOptimizeInternal(), and NnetOptimizeOptions::Write().
bool consolidate_model_update |
Definition at line 39 of file nnet-optimize.h.
Referenced by NnetOptimizeOptions::operator==(), kaldi::nnet3::Optimize(), NnetOptimizeOptions::Read(), and NnetOptimizeOptions::Write().
bool convert_addition |
Definition at line 45 of file nnet-optimize.h.
Referenced by NnetOptimizeOptions::operator==(), kaldi::nnet3::Optimize(), NnetOptimizeOptions::Read(), kaldi::nnet3::UnitTestNnetOptimizeInternal(), and NnetOptimizeOptions::Write().
bool extend_matrices |
Definition at line 44 of file nnet-optimize.h.
Referenced by kaldi::nnet3::Optimize(), NnetOptimizeOptions::Read(), and NnetOptimizeOptions::Write().
bool initialize_undefined |
Definition at line 49 of file nnet-optimize.h.
Referenced by NnetOptimizeOptions::operator==(), kaldi::nnet3::Optimize(), NnetOptimizeOptions::Read(), kaldi::nnet3::UnitTestNnetOptimizeInternal(), and NnetOptimizeOptions::Write().
int32 max_deriv_time |
Definition at line 53 of file nnet-optimize.h.
Referenced by NnetOptimizeOptions::operator==(), kaldi::nnet3::Optimize(), NnetOptimizeOptions::Read(), kaldi::nnet3::SetDerivTimesOptions(), kaldi::nnet3::UnitTestNnetOptimizeInternal(), and NnetOptimizeOptions::Write().
int32 max_deriv_time_relative |
Definition at line 54 of file nnet-optimize.h.
Referenced by NnetOptimizeOptions::operator==(), kaldi::nnet3::Optimize(), NnetOptimizeOptions::Read(), kaldi::nnet3::UnitTestNnetOptimizeInternal(), and NnetOptimizeOptions::Write().
int32 memory_compression_level |
Definition at line 56 of file nnet-optimize.h.
Referenced by NnetOptimizeOptions::operator==(), kaldi::nnet3::Optimize(), NnetOptimizeOptions::Read(), and NnetOptimizeOptions::Write().
int32 min_deriv_time |
Definition at line 52 of file nnet-optimize.h.
Referenced by NnetOptimizeOptions::operator==(), kaldi::nnet3::Optimize(), NnetOptimizeOptions::Read(), kaldi::nnet3::SetDerivTimesOptions(), kaldi::nnet3::UnitTestNnetOptimizeInternal(), and NnetOptimizeOptions::Write().
bool move_sizing_commands |
Definition at line 50 of file nnet-optimize.h.
Referenced by NnetOptimizeOptions::operator==(), kaldi::nnet3::Optimize(), NnetOptimizeOptions::Read(), kaldi::nnet3::UnitTestNnetOptimizeInternal(), and NnetOptimizeOptions::Write().
bool optimize |
Definition at line 38 of file nnet-optimize.h.
Referenced by VariableMergingOptimizer::MergeVariables(), NnetOptimizeOptions::operator==(), kaldi::nnet3::Optimize(), NnetOptimizeOptions::Read(), and NnetOptimizeOptions::Write().
bool optimize_looped_computation |
Definition at line 60 of file nnet-optimize.h.
Referenced by kaldi::nnet3::CompileLoopedInternal(), and kaldi::nnet3::Optimize().
bool optimize_row_ops |
Definition at line 42 of file nnet-optimize.h.
Referenced by NnetOptimizeOptions::operator==(), kaldi::nnet3::Optimize(), NnetOptimizeOptions::Read(), kaldi::nnet3::UnitTestNnetOptimizeInternal(), and NnetOptimizeOptions::Write().
bool propagate_in_place |
Definition at line 40 of file nnet-optimize.h.
Referenced by VariableMergingOptimizer::MergeVariables(), NnetOptimizeOptions::operator==(), kaldi::nnet3::Optimize(), NnetOptimizeOptions::Read(), kaldi::nnet3::UnitTestNnetOptimizeInternal(), and NnetOptimizeOptions::Write().
bool remove_assignments |
Definition at line 46 of file nnet-optimize.h.
Referenced by VariableMergingOptimizer::MergeVariables(), NnetOptimizeOptions::operator==(), kaldi::nnet3::Optimize(), NnetOptimizeOptions::Read(), kaldi::nnet3::UnitTestNnetOptimizeInternal(), and NnetOptimizeOptions::Write().
bool snip_row_ops |
Definition at line 55 of file nnet-optimize.h.
Referenced by NnetOptimizeOptions::operator==(), kaldi::nnet3::Optimize(), NnetOptimizeOptions::Read(), kaldi::nnet3::UnitTestNnetOptimizeInternal(), and NnetOptimizeOptions::Write().
bool split_row_ops |
Definition at line 43 of file nnet-optimize.h.
Referenced by NnetOptimizeOptions::operator==(), kaldi::nnet3::Optimize(), NnetOptimizeOptions::Read(), and NnetOptimizeOptions::Write().