Interface ParallelMultiDataSetIterator
-
- All Superinterfaces:
Iterator<MultiDataSet>
,MultiDataSetIterator
,Serializable
public interface ParallelMultiDataSetIterator extends MultiDataSetIterator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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() mechanicsboolean
hasNextFor()
Returns true, if attached producer has something in queue, false otherwiseboolean
hasNextFor(int consumer)
Returns true, if attached producer has something in queue, false otherwiseMultiDataSet
nextFor()
Returns next DataSet for attached consumerMultiDataSet
nextFor(int consumer)
Returns next DataSet for given consumer-
Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, remove
-
Methods inherited from interface org.nd4j.linalg.dataset.api.iterator.MultiDataSetIterator
asyncSupported, getPreProcessor, next, reset, resetSupported, setPreProcessor
-
-
-
-
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
MultiDataSet nextFor(int consumer)
Returns next DataSet for given consumer- Parameters:
consumer
-- Returns:
-
nextFor
MultiDataSet nextFor()
Returns next DataSet for attached consumer- Returns:
-
-