code: @Override
      public InputType getOutputType(InputType... inputType) throws InvalidKerasConfigurationException {
          if (inputType.length > 1)
              throw new InvalidKerasConfigurationException(
                      "Keras Subsampling layer accepts only one input (received " + inputType.length + ")");
  
          /* Check whether layer requires a preprocessor for this InputType. */
          InputPreProcessor preprocessor = getInputPreprocessor(inputType[0]);
          if (preprocessor != null) {
              return this.getGlobalPoolingLayer().getOutputType(-1, preprocessor.getOutputType(inputType[0]));
          }
          return this.getGlobalPoolingLayer().getOutputType(-1, inputType[0]);
      }
docs: Get layer output type.
  
  @param inputType Array of InputTypes
  @return output type as InputType
  @throws InvalidKerasConfigurationException Invalid Keras config