src/lstm/reconfig.cpp
StaticShape Reconfig::OutputShape(const StaticShape &input_shape) const {
  StaticShape result = input_shape;
  result.set_height(result.height() / y_scale_);
  result.set_width(result.width() / x_scale_);
  if (type_ != NT_MAXPOOL) {
    result.set_depth(result.depth() * y_scale_ * x_scale_);
  }
  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 Reconfig::OutputShape(const StaticShape &input_shape) const {
  StaticShape result = input_shape;
  result.set_height(result.height() / y_scale_);
  result.set_width(result.width() / x_scale_);
  if (type_ != NT_MAXPOOL) {
    result.set_depth(result.depth() * y_scale_ * x_scale_);
  }
  return result;
}
StaticShape Reconfig :: OutputShape ( const StaticShape & input_shape ) const { StaticShape result = input_shape ; result . set_height ( result . height ( ) / y_scale_ ) ; result . set_width ( result . width ( ) / x_scale_ ) ; if ( type_ != NT_MAXPOOL ) { result . set_depth ( result . depth ( ) * y_scale_ * x_scale_ ) ; } 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 ) .