public class AsyncShieldMultiDataSetIterator extends Object implements org.nd4j.linalg.dataset.api.iterator.MultiDataSetIterator
| Constructor and Description |
|---|
AsyncShieldMultiDataSetIterator(org.nd4j.linalg.dataset.api.iterator.MultiDataSetIterator iterator) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
asyncSupported()
/**
Does this DataSetIterator support asynchronous prefetching of multiple DataSet objects?
PLEASE NOTE: This iterator ALWAYS returns FALSE
|
org.nd4j.linalg.dataset.api.MultiDataSetPreProcessor |
getPreProcessor() |
boolean |
hasNext()
Returns
true if the iteration has more elements. |
org.nd4j.linalg.dataset.api.MultiDataSet |
next()
Returns the next element in the iteration.
|
org.nd4j.linalg.dataset.api.MultiDataSet |
next(int num)
Fetch the next 'num' examples.
|
void |
remove()
Removes from the underlying collection the last element returned
by this iterator (optional operation).
|
void |
reset()
Resets the iterator back to the beginning
|
boolean |
resetSupported()
Is resetting supported by this DataSetIterator? Many DataSetIterators do support resetting,
but some don't
|
void |
setPreProcessor(org.nd4j.linalg.dataset.api.MultiDataSetPreProcessor preProcessor)
Set the preprocessor to be applied to each MultiDataSet, before each MultiDataSet is returned.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic AsyncShieldMultiDataSetIterator(@NonNull
org.nd4j.linalg.dataset.api.iterator.MultiDataSetIterator iterator)
public org.nd4j.linalg.dataset.api.MultiDataSet next(int num)
next in interface org.nd4j.linalg.dataset.api.iterator.MultiDataSetIteratornum - Number of examples to fetchpublic void setPreProcessor(org.nd4j.linalg.dataset.api.MultiDataSetPreProcessor preProcessor)
setPreProcessor in interface org.nd4j.linalg.dataset.api.iterator.MultiDataSetIteratorpreProcessor - MultiDataSetPreProcessor. May be null.public org.nd4j.linalg.dataset.api.MultiDataSetPreProcessor getPreProcessor()
getPreProcessor 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()
true if the iteration has more elements.
(In other words, returns true if next(int) would
return an element rather than throwing an exception.)public org.nd4j.linalg.dataset.api.MultiDataSet next()
public void remove()
next(int). The behavior of an iterator
is unspecified if the underlying collection is modified while the
iteration is in progress in any way other than by calling this
method.remove in interface Iterator<org.nd4j.linalg.dataset.api.MultiDataSet>UnsupportedOperationException - if the remove
operation is not supported by this iteratorIllegalStateException - if the next method has not
yet been called, or the remove method has already
been called after the last call to the next
methodCopyright © 2017. All rights reserved.