code: public <T> T output(@NonNull ModelAdapter<T> adapter,INDArray[] input, INDArray[] inputMasks) {
          throw new ND4JIllegalStateException("Adapted mode requires Inplace inference mode");
      }
docs: This method does forward pass and returns output provided by OutputAdapter
  
  @param adapter
  @param input
  @param inputMasks
  @param <T>
  @return