src/lstm/fullyconnected.cpp
int FullyConnected::RemapOutputs(int old_no, const std::vector<int> &code_map) {
  if (type_ == NT_SOFTMAX && no_ == old_no) {
    num_weights_ = weights_.RemapOutputs(code_map);
    no_ = code_map.size();
  }
  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 FullyConnected::RemapOutputs(int old_no, const std::vector<int> &code_map) {
  if (type_ == NT_SOFTMAX && no_ == old_no) {
    num_weights_ = weights_.RemapOutputs(code_map);
    no_ = code_map.size();
  }
  return num_weights_;
}
int FullyConnected :: RemapOutputs ( int old_no , const std :: vector < int > & code_map ) { if ( type_ == NT_SOFTMAX && no_ == old_no ) { num_weights_ = weights_ . RemapOutputs ( code_map ) ; no_ = code_map . size ( ) ; } 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 .