src/lstm/lstm.cpp
void LSTM::ConvertToInt() {
  for (int w = 0; w < WT_COUNT; ++w) {
    if (w == GFS && !Is2D()) {
      continue;
    }
    gate_weights_[w].ConvertToInt();
  }
  if (softmax_ != nullptr) {
    softmax_->ConvertToInt();
  }
}
// Converts a float network to an int network.
Converts a float network to an int network.
Converts a float network to an int network .
void LSTM::ConvertToInt() {
  for (int w = 0; w < WT_COUNT; ++w) {
    if (w == GFS && !Is2D()) {
      continue;
    }
    gate_weights_[w].ConvertToInt();
  }
  if (softmax_ != nullptr) {
    softmax_->ConvertToInt();
  }
}
void LSTM :: ConvertToInt ( ) { for ( int w = 0 ; w < WT_COUNT ; ++ w ) { if ( w == GFS && ! Is2D ( ) ) { continue ; } gate_weights_ [ w ] . ConvertToInt ( ) ; } if ( softmax_ != nullptr ) { softmax_ -> ConvertToInt ( ) ; } }
Converts a float network to an int network.
Converts a float network to an int network .