public class TestDataSetConsumer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
logger |
Constructor and Description |
---|
TestDataSetConsumer(org.nd4j.linalg.dataset.api.iterator.DataSetIterator iterator,
long delay) |
TestDataSetConsumer(long delay) |
Modifier and Type | Method and Description |
---|---|
long |
consumeOnce(org.nd4j.linalg.dataset.DataSet dataSet,
boolean consumeWithSleep)
This method consumes single DataSet, and spends delay time simulating execution of this dataset
|
long |
consumeWhileHasNext(boolean consumeWithSleep)
This method cycles through iterator, whie iterator.hasNext() returns true.
|
long |
getCount() |
public TestDataSetConsumer(long delay)
public TestDataSetConsumer(@NonNull org.nd4j.linalg.dataset.api.iterator.DataSetIterator iterator, long delay)
public long consumeWhileHasNext(boolean consumeWithSleep)
consumeWithSleep
- public long consumeOnce(@NonNull org.nd4j.linalg.dataset.DataSet dataSet, boolean consumeWithSleep)
dataSet
- consumeWithSleep
- public long getCount()