src/lstm/lstm.cpp
StaticShape LSTM::OutputShape(const StaticShape &input_shape) const {
  StaticShape result = input_shape;
  result.set_depth(no_);
  if (type_ == NT_LSTM_SUMMARY) {
    result.set_width(1);
  }
  if (softmax_ != nullptr) {
    return softmax_->OutputShape(result);
  }
  return result;
}
// Returns the shape output from the network given an input shape (which may
// be partially unknown ie zero).
Returns the shape output from the network given an input shape (which may
be partially unknown ie zero).
Returns the shape output from the network given an input shape ( which may be partially unknown ie zero ) .
StaticShape LSTM::OutputShape(const StaticShape &input_shape) const {
  StaticShape result = input_shape;
  result.set_depth(no_);
  if (type_ == NT_LSTM_SUMMARY) {
    result.set_width(1);
  }
  if (softmax_ != nullptr) {
    return softmax_->OutputShape(result);
  }
  return result;
}
StaticShape LSTM :: OutputShape ( const StaticShape & input_shape ) const { StaticShape result = input_shape ; result . set_depth ( no_ ) ; if ( type_ == NT_LSTM_SUMMARY ) { result . set_width ( 1 ) ; } if ( softmax_ != nullptr ) { return softmax_ -> OutputShape ( result ) ; } return result ; }
Returns the shape output from the network given an input shape (which may
be partially unknown ie zero).
Returns the shape output from the network given an input shape ( which may be partially unknown ie zero ) .