src/lstm/plumbing.cpp
int Plumbing::InitWeights(float range, TRand *randomizer) {
  num_weights_ = 0;
  for (auto &i : stack_) {
    num_weights_ += i->InitWeights(range, randomizer);
  }
  return num_weights_;
}
// Sets up the network for training. Initializes weights using weights of
// scale `range` picked according to the random number generator `randomizer`.
// Note that randomizer is a borrowed pointer that should outlive the network
// and should not be deleted by any of the networks.
// Returns the number of weights initialized.
Sets up the network for training. Initializes weights using weights of
scale `range` picked according to the random number generator `randomizer`.
Note that randomizer is a borrowed pointer that should outlive the network
and should not be deleted by any of the networks.
Returns the number of weights initialized.
Sets up the network for training . Initializes weights using weights of scale ` range ` picked according to the random number generator ` randomizer ` . Note that randomizer is a borrowed pointer that should outlive the network and should not be deleted by any of the networks . Returns the number of weights initialized .
int Plumbing::InitWeights(float range, TRand *randomizer) {
  num_weights_ = 0;
  for (auto &i : stack_) {
    num_weights_ += i->InitWeights(range, randomizer);
  }
  return num_weights_;
}
int Plumbing :: InitWeights ( float range , TRand * randomizer ) { num_weights_ = 0 ; for ( auto & i : stack_ ) { num_weights_ += i -> InitWeights ( range , randomizer ) ; } return num_weights_ ; }
Sets up the network for training.
Sets up the network for training .