public class AsyncMultiDataSetIterator extends 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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic 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.MultiDataSetIteratorpublic void setPreProcessor(org.nd4j.linalg.dataset.api.MultiDataSetPreProcessor preProcessor)
setPreProcessor in interface org.nd4j.linalg.dataset.api.iterator.MultiDataSetIteratorpublic boolean resetSupported()
resetSupported in interface org.nd4j.linalg.dataset.api.iterator.MultiDataSetIteratorpublic boolean asyncSupported()
asyncSupported in interface org.nd4j.linalg.dataset.api.iterator.MultiDataSetIteratorpublic void reset()
reset in interface org.nd4j.linalg.dataset.api.iterator.MultiDataSetIteratorpublic boolean hasNext()
public org.nd4j.linalg.dataset.api.MultiDataSet next()
public void remove()
public void shutdown()
Copyright © 2016. All Rights Reserved.