Class TrainingListener.BatchData

java.lang.Object
ai.djl.training.listener.TrainingListener.BatchData
Enclosing interface:
TrainingListener

public static class TrainingListener.BatchData extends Object
A class to pass data from the batch into the training listeners.
  • Constructor Details

  • Method Details

    • getBatch

      public Batch getBatch()
      Returns the original batch.
      Returns:
      the original batch
    • getLabels

      public Map<Device,NDList> getLabels()
      Returns the labels for each device.
      Returns:
      the labels for each device
    • getPredictions

      public Map<Device,NDList> getPredictions()
      Returns the predictions for each device.
      Returns:
      the predictions for each device