docs: public synchronized INDArray output(INDArray input, boolean train, INDArray featuresMask, INDArray labelsMask, MemoryWorkspace outputWorkspace) {
          try {
              return outputOfLayerDetached(train, FwdPassType.STANDARD, layers.length - 1, input, featuresMask, labelsMask, outputWorkspace);
          } catch (OutOfMemoryError e) {
              CrashReportingUtil.writeMemoryCrashDump(this, e);
              throw e;
          }
      }