src/lstm/lstm.cpp
int LSTM::RemapOutputs(int old_no, const std::vector<int> &code_map) {
  if (softmax_ != nullptr) {
    num_weights_ -= softmax_->num_weights();
    num_weights_ += softmax_->RemapOutputs(old_no, code_map);
  }
  return num_weights_;
}
// Recursively searches the network for softmaxes with old_no outputs,
// and remaps their outputs according to code_map. See network.h for details.
Recursively searches the network for softmaxes with old_no outputs,
and remaps their outputs according to code_map.
Recursively searches the network for softmaxes with old_no outputs and remaps their outputs according to code_map .
int LSTM::RemapOutputs(int old_no, const std::vector<int> &code_map) {
  if (softmax_ != nullptr) {
    num_weights_ -= softmax_->num_weights();
    num_weights_ += softmax_->RemapOutputs(old_no, code_map);
  }
  return num_weights_;
}
int LSTM :: RemapOutputs ( int old_no , const std :: vector < int > & code_map ) { if ( softmax_ != nullptr ) { num_weights_ -= softmax_ -> num_weights ( ) ; num_weights_ += softmax_ -> RemapOutputs ( old_no , code_map ) ; } return num_weights_ ; }
Recursively searches the network for softmaxes with old_no outputs,
and remaps their outputs according to code_map.
Recursively searches the network for softmaxes with old_no outputs and remaps their outputs according to code_map .