code: public void pretrainLayer(String layerName, MultiDataSetIterator iter) {
          try{
              pretrainLayerHelper(layerName, iter, 1);
          } catch (OutOfMemoryError e){
              CrashReportingUtil.writeMemoryCrashDump(this, e);
              throw e;
          }
      }
docs: Pretrain a specified layer with the given MultiDataSetIterator
  
  @param layerName Layer name
  @param iter      Training data