code: @Override
      public void fit(DataSetIterator iterator) {
          try{
              fitHelper(iterator);
          } catch (OutOfMemoryError e){
              CrashReportingUtil.writeMemoryCrashDump(this, e);
              throw e;
          }
      }
docs: Perform minibatch training on all minibatches in the DataSetIterator for 1 epoch.<br>
  Note that this method does not do layerwise  pretraining.<br>
  For pretraining use method pretrain.. {@link #pretrain(DataSetIterator)}<br>
  @param iterator Training data (DataSetIterator)