src/lstm/plumbing.cpp
int Plumbing::RemapOutputs(int old_no, const std::vector<int> &code_map) {
  num_weights_ = 0;
  for (auto &i : stack_) {
    num_weights_ += i->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 Plumbing::RemapOutputs(int old_no, const std::vector<int> &code_map) {
  num_weights_ = 0;
  for (auto &i : stack_) {
    num_weights_ += i->RemapOutputs(old_no, code_map);
  }
  return num_weights_;
}
int Plumbing :: RemapOutputs ( int old_no , const std :: vector < int > & code_map ) { num_weights_ = 0 ; for ( auto & i : stack_ ) { num_weights_ += i -> 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 .