public class AsyncMultiDataSetIterator
extends java.lang.Object
implements org.nd4j.linalg.dataset.api.iterator.MultiDataSetIterator
PLEASE NOTE: If used together with CUDA backend, please use it with caution.
Constructor and Description |
---|
AsyncMultiDataSetIterator(org.nd4j.linalg.dataset.api.iterator.MultiDataSetIterator iterator,
int queueLength) |
Modifier and Type | Method and Description |
---|---|
boolean |
asyncSupported() |
boolean |
hasNext() |
org.nd4j.linalg.dataset.api.MultiDataSet |
next() |
org.nd4j.linalg.dataset.api.MultiDataSet |
next(int num) |
void |
remove() |
void |
reset() |
boolean |
resetSupported() |
void |
setPreProcessor(org.nd4j.linalg.dataset.api.MultiDataSetPreProcessor preProcessor) |
void |
shutdown()
Shut down the async data set iterator thread
This is not typically necessary if using a single AsyncDataSetIterator
(thread is a daemon thread and so shouldn't block the JVM from exiting)
Behaviour of next(), hasNext() etc methods after shutdown of async iterator is undefined
|
public AsyncMultiDataSetIterator(org.nd4j.linalg.dataset.api.iterator.MultiDataSetIterator iterator, int queueLength)
public org.nd4j.linalg.dataset.api.MultiDataSet next(int num)
next
in interface org.nd4j.linalg.dataset.api.iterator.MultiDataSetIterator
public void setPreProcessor(org.nd4j.linalg.dataset.api.MultiDataSetPreProcessor preProcessor)
setPreProcessor
in interface org.nd4j.linalg.dataset.api.iterator.MultiDataSetIterator
public boolean resetSupported()
resetSupported
in interface org.nd4j.linalg.dataset.api.iterator.MultiDataSetIterator
public boolean asyncSupported()
asyncSupported
in interface org.nd4j.linalg.dataset.api.iterator.MultiDataSetIterator
public void reset()
reset
in interface org.nd4j.linalg.dataset.api.iterator.MultiDataSetIterator
public boolean hasNext()
hasNext
in interface java.util.Iterator<org.nd4j.linalg.dataset.api.MultiDataSet>
public org.nd4j.linalg.dataset.api.MultiDataSet next()
next
in interface java.util.Iterator<org.nd4j.linalg.dataset.api.MultiDataSet>
public void remove()
remove
in interface java.util.Iterator<org.nd4j.linalg.dataset.api.MultiDataSet>
public void shutdown()