Class LogitsProcessorList

java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<LogitsProcessor>
chat.octet.model.components.processor.LogitsProcessorList
All Implemented Interfaces:
LogitsProcessor, Serializable, Cloneable, Iterable<LogitsProcessor>, Collection<LogitsProcessor>, List<LogitsProcessor>, RandomAccess

public final class LogitsProcessorList extends ArrayList<LogitsProcessor> implements LogitsProcessor
Stopping criteria list
Author:
William
See Also:
  • Constructor Details

    • LogitsProcessorList

      public LogitsProcessorList()
    • LogitsProcessorList

      public LogitsProcessorList(Collection<? extends LogitsProcessor> c)
  • Method Details

    • processor

      public float[] processor(@Nullable int[] inputTokenIds, @Nonnull float[] scores, Object... args)
      Description copied from interface: LogitsProcessor
      Logits processor
      Specified by:
      processor in interface LogitsProcessor
      Parameters:
      inputTokenIds - Indices of input sequence tokens in the vocabulary.
      scores - Prediction scores of a language modeling head. These can be logits for each vocabulary.
      args - Specific args to a logits processor.
      Returns:
      float[] The processed prediction scores.