Interface ParallelDataSetIterator
-
- All Superinterfaces:
DataSetIterator,Iterator<DataSet>,Serializable
public interface ParallelDataSetIterator extends DataSetIterator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidattachThread(int producer)This method sets consumer affinity to specific producer PLEASE NOTE: this method is optional, and it'll change only nextFor()/hasNextFor() mechanicsbooleanhasNextFor()Returns true, if attached producer has something in queue, false otherwisebooleanhasNextFor(int consumer)Returns true, if attached producer has something in queue, false otherwiseDataSetnextFor()Returns next DataSet for attached consumerDataSetnextFor(int consumer)Returns next DataSet for given consumer-
Methods inherited from interface org.nd4j.linalg.dataset.api.iterator.DataSetIterator
asyncSupported, batch, getLabels, getPreProcessor, inputColumns, next, reset, resetSupported, setPreProcessor, totalOutcomes
-
Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, remove
-
-
-
-
Method Detail
-
attachThread
void attachThread(int producer)
This method sets consumer affinity to specific producer PLEASE NOTE: this method is optional, and it'll change only nextFor()/hasNextFor() mechanics
-
hasNextFor
boolean hasNextFor()
Returns true, if attached producer has something in queue, false otherwise- Returns:
-
hasNextFor
boolean hasNextFor(int consumer)
Returns true, if attached producer has something in queue, false otherwise- Parameters:
consumer-- Returns:
-
nextFor
DataSet nextFor(int consumer)
Returns next DataSet for given consumer- Parameters:
consumer-- Returns:
-
nextFor
DataSet nextFor()
Returns next DataSet for attached consumer- Returns:
-
-