code: public synchronized INDArray[] output(boolean train, boolean clearInputs, INDArray... input){
          boolean detachedInputs = !clearInputs;  //If !clearInputs, then inputs should be detached (otherwise: will be out of scope)
          try {
              return outputOfLayersDetached(train, FwdPassType.STANDARD, getOutputLayerIndices(), input, null, null, clearInputs, detachedInputs, null);
          } catch (OutOfMemoryError e){
              CrashReportingUtil.writeMemoryCrashDump(this, e);
              throw e;
          }
      }
docs: An output method for the network, with optional clearing of the layer inputs.<br>
  Note: most users should use {@link #output(boolean, INDArray...)} or similar methods, unless they are doing
  non-standard operations (like providing the input arrays externally)
  
  @param train       If true: output during training. False: output during testing. Affects some things such as
  dropout
  @param clearInputs If true: clear the input arrays for all layers. False: leave the input arrays as-is - which
  can be useful for "external errors" (no output layer) backprop use cases
  @param input       Input to the network
  @return            Output from the network