src/lstm/fullyconnected.cpp
int FullyConnected::InitWeights(float range, TRand *randomizer) {
  Network::SetRandomizer(randomizer);
  num_weights_ = weights_.InitWeightsFloat(no_, ni_ + 1, TestFlag(NF_ADAM), 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`.
Sets up the network for training. Initializes weights using weights of
scale `range` picked according to the random number generator `randomizer`.
Sets up the network for training . Initializes weights using weights of scale ` range ` picked according to the random number generator ` randomizer ` .
int FullyConnected::InitWeights(float range, TRand *randomizer) {
  Network::SetRandomizer(randomizer);
  num_weights_ = weights_.InitWeightsFloat(no_, ni_ + 1, TestFlag(NF_ADAM), range, randomizer);
  return num_weights_;
}
int FullyConnected :: InitWeights ( float range , TRand * randomizer ) { Network :: SetRandomizer ( randomizer ) ; num_weights_ = weights_ . InitWeightsFloat ( no_ , ni_ + 1 , TestFlag ( NF_ADAM ) , range , randomizer ) ; return num_weights_ ; }
Sets up the network for training.
Sets up the network for training .