Package com.itextpdf.pdfocr.onnxtr.util
Class BatchProcessingGeneratorR>
java.lang.Object
com.itextpdf.pdfocr.onnxtr.util.BatchProcessingGeneratorR>
- Type Parameters:
-
T
- input type -
R
- output type
- All Implemented Interfaces:
-
Iterator
Generator with batch processing. It goes over and processes input values in batches and results are cached. This is useful for use in ML-models, where you want to process stuff in batches instead of one-by-ine.
-
Constructor Summary
ConstructorsConstructorDescriptionBatchProcessingGenerator
(Iterator<List<T>> batchIterator, IBatchProcessor<T, R> batchProcessor) Creates a new generator with the provided batch iterator and processor. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
Method Details